:root {
  --ivory: #f4f0e6;
  --paper: #fbf8f0;
  --ink: #243026;
  --olive: #52604a;
  --sage: #9aa88d;
  --mist: #dbe2da;
  --terracotta: #a5694d;
  --sand: #d8c9ae;
  --line: rgba(36, 48, 38, 0.16);
  --shadow: 0 24px 80px rgba(27, 35, 27, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.25rem, 4vw, 4.5rem);
  color: white;
  transition: 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(244, 240, 230, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark { font-size: 1.7rem; transform: rotate(-9deg); }

nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.3rem); }
nav a { font-size: 0.84rem; text-decoration: none; letter-spacing: 0.06em; }
.nav-cta { padding: 0.7rem 1rem; border: 1px solid currentColor; border-radius: 100px; }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
}

.hero-image, .hero-scrim { position: absolute; inset: 0; }
.hero-image {
  background-image: url("/assets/yavas-yolda-hero.webp");
  background-position: 52% center;
  background-size: cover;
  transform: scale(1.015);
  animation: settle 1.7s cubic-bezier(.2,.7,.2,1) both;
}
.hero-scrim {
  background:
    linear-gradient(90deg, rgba(27, 34, 24, 0.58) 0%, rgba(27, 34, 24, 0.26) 43%, rgba(27, 34, 24, 0.03) 74%),
    linear-gradient(0deg, rgba(21, 28, 20, 0.28) 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 82vw);
  margin-left: clamp(1.3rem, 8vw, 9rem);
  padding-top: 5rem;
  animation: rise 1s 0.15s ease both;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.hero-copy { max-width: 530px; margin: 1.8rem 0 0; font-size: clamp(1rem, 1.55vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: rgba(251, 248, 240, 0.94); }
.button-dark { color: var(--paper); background: var(--ink); }
.text-link { font-size: 0.86rem; text-underline-offset: 0.25rem; }
.image-note { position: absolute; right: 2rem; bottom: 1.35rem; z-index: 2; margin: 0; font-size: 0.65rem; opacity: 0.78; }

.discover { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 6vw, 7rem); }
.section-intro { max-width: 760px; }
.section-intro h2, .journey h2, .article-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.section-intro > p:last-child { max-width: 630px; color: rgba(36, 48, 38, 0.72); font-size: 1.05rem; }

.path-picker { display: flex; gap: 0.7rem; margin-top: 3rem; overflow-x: auto; padding: 0.2rem 0 0.7rem; scrollbar-width: none; }
.path-picker::-webkit-scrollbar { display: none; }
.path-button {
  flex: 0 0 auto;
  padding: 0.8rem 1rem;
  color: var(--olive);
  background: transparent;
  border: 1px solid rgba(82, 96, 74, 0.34);
  border-radius: 100px;
  cursor: pointer;
  transition: 180ms ease;
}
.path-button:hover, .path-button.is-active { color: var(--paper); background: var(--olive); }
.selection-note { min-height: 1.5em; margin: 1.6rem 0 1rem; color: rgba(36, 48, 38, 0.62); font-family: var(--serif); font-style: italic; }

.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.story-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(251, 248, 240, 0.72);
  border: 1px solid rgba(36, 48, 38, 0.12);
  border-radius: 2px 2px 24px 2px;
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(36, 48, 38, 0.09); }
.story-card.is-hidden { display: none; }
.card-art { position: relative; height: 240px; overflow: hidden; }
.card-body { padding: 1.25rem 1.25rem 1.45rem; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--olive); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; }
.card-body h3 { min-height: 2.4em; margin: 0.85rem 0 0.6rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.card-body p { min-height: 4.5em; margin: 0; color: rgba(36, 48, 38, 0.66); font-size: 0.88rem; }
.card-link { margin-top: 1.25rem; padding: 0; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.8rem; }

.card-art-nature { background: linear-gradient(#c6d2c7 0 55%, #8b9b85 55% 57%, #617365 57%); }
.card-art-nature .sun { position: absolute; top: 34px; right: 38px; width: 64px; height: 64px; border-radius: 50%; background: rgba(247, 226, 177, 0.85); }
.card-art-nature .horizon { position: absolute; left: -5%; right: -5%; bottom: 62px; height: 70px; border-radius: 50% 50% 0 0; background: #71816b; transform: rotate(-4deg); }
.card-art-nature .bird { position: absolute; top: 70px; left: 50px; color: rgba(36, 48, 38, .65); font-size: 2rem; transform: rotate(-8deg); }
.card-art-simple { background: #d7cdb9; }
.card-art-simple .vase { position: absolute; bottom: 0; left: 38%; width: 90px; height: 124px; background: #9e725d; border-radius: 46% 46% 20% 20% / 24% 24% 12% 12%; }
.card-art-simple .branch { position: absolute; left: 52%; bottom: 100px; width: 2px; height: 118px; background: #53604c; transform: rotate(21deg); transform-origin: bottom; }
.card-art-simple .branch::before, .card-art-simple .branch::after { position: absolute; width: 34px; height: 15px; background: #697963; border-radius: 100% 0 100% 0; content: ""; }
.card-art-simple .branch::before { left: -31px; top: 30px; transform: rotate(20deg); }
.card-art-simple .branch::after { left: 0; top: 63px; transform: rotate(-28deg); }
.card-art-mother { background: #cab5a4; }
.card-art-mother .big-circle, .card-art-mother .small-circle { position: absolute; border: 2px solid rgba(64, 57, 48, .65); border-radius: 50%; }
.card-art-mother .big-circle { width: 132px; height: 132px; left: calc(50% - 66px); top: 53px; }
.card-art-mother .small-circle { width: 72px; height: 72px; left: calc(50% - 8px); top: 120px; background: rgba(244, 240, 230, .36); }
.card-art-mother .thread { position: absolute; bottom: 25px; left: 20%; width: 60%; height: 45px; border-bottom: 1px solid rgba(64, 57, 48, .55); border-radius: 50%; transform: rotate(-5deg); }
.card-art-create { background: #adb5a2; }
.card-art-create .paper { position: absolute; width: 110px; height: 148px; background: #ede7d9; box-shadow: 0 12px 30px rgba(36,48,38,.13); }
.card-art-create .paper-one { left: 26%; top: 45px; transform: rotate(-8deg); }
.card-art-create .paper-two { left: 43%; top: 57px; transform: rotate(8deg); background: #ddd3c0; }
.card-art-create .pencil { position: absolute; left: 52%; top: 42px; width: 9px; height: 164px; background: #855b46; transform: rotate(35deg); border-radius: 4px; }

.journey {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 720px;
  background: #c7d0c1;
}
.journey-copy { align-self: center; padding: clamp(4.5rem, 8vw, 9rem); }
.journey-copy > p:not(.eyebrow) { max-width: 640px; margin: 1.6rem 0 2rem; color: rgba(36,48,38,.75); font-size: 1.05rem; }
.journey-quote { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 6rem); color: #f3eee3; background: var(--olive); }
.journey-quote svg { width: min(100%, 360px); margin: 0 auto 2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.4; opacity: .7; }
.journey-quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.3vw, 3.7rem); font-weight: 400; line-height: 1.07; }
.journey-quote p { font-size: 0.75rem; letter-spacing: .1em; opacity: .7; }

footer { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 1.5rem; padding: 3rem clamp(1.25rem, 6vw, 7rem); background: #202a22; color: #e8e4d9; }
.footer-brand { grid-row: 1 / span 2; align-self: center; }
footer p { margin: 0; font-size: .78rem; opacity: .72; }
.footer-links { display: flex; gap: 1.3rem; font-size: .78rem; }
.copyright { text-align: right; }

.article-dialog {
  width: min(680px, calc(100vw - 2rem));
  max-height: min(780px, calc(100vh - 2rem));
  padding: clamp(2rem, 5vw, 4.5rem);
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 2px 2px 28px 2px;
  box-shadow: var(--shadow);
}
.article-dialog::backdrop { background: rgba(26, 34, 27, .66); backdrop-filter: blur(5px); }
.article-dialog .eyebrow { color: var(--terracotta); }
.article-dialog h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.dialog-copy { margin-top: 1.8rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.78; }
.dialog-copy p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--terracotta); font-size: 3.6em; line-height: .8; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid #dca878; outline-offset: 4px; }

@keyframes settle { from { opacity: 0; transform: scale(1.055); } to { opacity: 1; transform: scale(1.015); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: 1fr; }
  .journey-quote { min-height: 580px; }
}

@media (max-width: 680px) {
  .site-header { padding: .95rem 1.05rem; }
  nav > a:not(.nav-cta) { display: none; }
  .nav-cta { padding: .55rem .8rem; font-size: .72rem; }
  .brand { font-size: 1.05rem; }
  .brand-mark { font-size: 1.4rem; }
  .hero { min-height: 100svh; align-items: end; }
  .hero-image { background-position: 58% center; }
  .hero-scrim { background: linear-gradient(0deg, rgba(22,29,21,.78), rgba(22,29,21,.08) 80%); }
  .hero-content { width: auto; margin: 0; padding: 7rem 1.25rem 6rem; }
  .hero h1 { font-size: clamp(3.25rem, 15vw, 5.1rem); }
  .hero-copy { font-size: .98rem; }
  .image-note { display: none; }
  .discover { padding: 5.5rem 1.1rem; }
  .path-picker { margin-right: -1.1rem; padding-right: 1.1rem; }
  .story-grid { grid-template-columns: 1fr; }
  .card-art { height: 210px; }
  .card-body h3, .card-body p { min-height: 0; }
  .journey-copy { padding: 5rem 1.25rem; }
  .journey-quote { min-height: 560px; padding: 4rem 1.25rem; }
  footer { grid-template-columns: 1fr; align-items: start; padding: 3rem 1.25rem; }
  .footer-brand { grid-row: auto; }
  .copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
