:root {
  color-scheme: light;
  --ink: #1f2430;
  --muted: #667085;
  --paper: #fffaf1;
  --surface: #ffffff;
  --leaf: #3f7d58;
  --sky: #6a9ecf;
  --berry: #b34a62;
  --gold: #e2a838;
  --line: #e6dccb;
  --shadow: 0 18px 50px rgba(47, 42, 33, 0.13);
  font-family: "Segoe UI", "Noto Sans Georgian", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(106, 158, 207, 0.2), transparent 28rem),
    linear-gradient(180deg, #fffaf1 0%, #f6efe3 100%);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--berry);
  border-radius: 0.45rem;
  color: #fff;
  display: grid;
  font-size: 1.25rem;
  font-weight: 800;
  height: 2.5rem;
  place-items: center;
  width: 2.5rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.nav a {
  border-radius: 999px;
  color: #384052;
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.nav a:hover {
  background: #fff;
  box-shadow: 0 0 0 1px var(--line) inset;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(1rem, 4vw, 4rem);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  min-height: calc(100vh - 9rem);
  padding: 2rem 0 3rem;
}

.kicker {
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.9;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-copy p:not(.kicker),
.about p,
.submit-box p,
.story-reader p {
  color: #4e5666;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--leaf);
  color: #fff;
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
}

.hero-art {
  margin: 0;
}

.hero-art img {
  display: block;
  filter: drop-shadow(0 28px 30px rgba(62, 53, 39, 0.18));
  width: 100%;
}

.story-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 5rem;
  padding: 1.2rem 0;
}

.story-strip div {
  display: grid;
  gap: 0.25rem;
}

.story-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 3rem 0;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.story-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 320px minmax(0, 1fr);
}

.story-list {
  display: grid;
  gap: 0.7rem;
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 1rem;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  width: 100%;
}

.story-card:hover,
.story-card[aria-current="true"] {
  border-color: rgba(63, 125, 88, 0.45);
  box-shadow: 0 12px 28px rgba(47, 42, 33, 0.1);
  transform: translateY(-2px);
}

.story-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.story-card span {
  color: var(--muted);
  display: block;
  line-height: 1.5;
}

.story-reader {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  min-height: 26rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.story-body {
  color: #353d4d;
  font-size: 1.08rem;
  line-height: 1.9;
  white-space: pre-line;
}

.about {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.65fr 1fr;
}

.submit-box {
  background: #263245;
  border-radius: 0.5rem;
  color: #fff;
  margin: 2rem 0;
  padding: clamp(1.3rem, 4vw, 2rem);
}

.submit-box .kicker,
.submit-box p {
  color: #f7d88b;
}

.submit-box p {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .story-layout,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    max-width: 25rem;
  }

  .story-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main {
    padding: 1rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a {
    padding-left: 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
