/* ==========================================================================
   Ayşe Sucu — tasarım sistemi
   Tailwind ölçeğine yakın token'lar + Bootstrap 5 grid/offcanvas
   ========================================================================== */

:root {
  --bg: #faf7f2;
  --bg-tint: #f3eee6;
  --surface: #ffffff;
  --ink: #1f1b16;
  --ink-2: #3a342d;
  --muted: #6f675d;
  --line: #e8e1d6;
  --line-2: #ddd4c6;

  --clay: #a3532f;
  --clay-soft: #f4e4d9;
  --sage: #56664f;
  --sage-soft: #e3e8dc;
  --sand: #c9a86a;
  --sand-soft: #f3ead7;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-xs: 0 1px 2px rgb(31 27 22 / .05);
  --shadow-sm: 0 1px 2px rgb(31 27 22 / .04), 0 4px 12px -4px rgb(31 27 22 / .08);
  --shadow-md: 0 2px 4px rgb(31 27 22 / .04), 0 18px 40px -16px rgb(31 27 22 / .18);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--clay); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); }

.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.container-xl { max-width: 1200px; padding-inline: 20px; }

/* ---------- Typography ---------- */
.display-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 18px 0 22px;
  font-variation-settings: "opsz" 72;
}
.display-title em, .h-title em { font-style: italic; color: var(--clay); }

.h-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.lead-soft { font-size: 1.15rem; line-height: 1.65; color: var(--ink-2); max-width: 38rem; }
.text-muted-soft { color: var(--muted); }
.text-light-soft { color: rgb(250 247 242 / .65); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 500; letter-spacing: .01em;
  padding: 6px 14px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 0 rgb(86 102 79 / .5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgb(86 102 79 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(86 102 79 / 0); }
}

.section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-feature-settings: "tnum";
}
.section-label--light { color: rgb(250 247 242 / .5); }

.link-u {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .4s var(--ease-out);
  padding-bottom: 1px;
}
.link-u:hover { background-size: 100% 1px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--ink);
}
.link-arrow .ico { transition: transform .35s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }

.link-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; color: var(--muted);
  transition: color .2s, gap .3s var(--ease-out);
}
.link-back:hover { color: var(--ink); gap: 10px; }

/* ---------- Buttons ---------- */
.btn-soft {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font: 500 .925rem/1 var(--font-sans);
  color: var(--b-fg); background: var(--b-bg);
  border: 1px solid var(--b-bd); border-radius: 999px;
  box-shadow: var(--shadow-xs);
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .2s, border-color .2s;
}
.btn-soft:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--muted); color: var(--b-fg); }
.btn-soft:active { transform: translateY(0) scale(.98); }
.btn-soft .ico { transition: transform .3s var(--ease-out); }
.btn-soft:hover .ico { transform: translateX(3px); }
.btn-soft--dark { --b-bg: var(--ink); --b-fg: var(--bg); --b-bd: var(--ink); }
.btn-soft--dark:hover { background: #000; border-color: #000; }
.btn-soft--accent { --b-bg: var(--clay); --b-fg: #fff; --b-bd: var(--clay); }
.btn-soft--accent:hover { background: #8e4626; border-color: #8e4626; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: background .2s, transform .25s var(--ease-out), border-color .2s;
  cursor: pointer;
}
.btn-icon:hover { background: var(--bg-tint); border-color: var(--line-2); transform: translateY(-1px); }
.btn-icon .ico { width: 18px; height: 18px; }

.chip {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 500;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-tint); color: var(--ink-2);
  border: 1px solid var(--line);
}
a.chip:hover { background: var(--clay-soft); border-color: transparent; color: var(--clay); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 1030;
  padding: 14px 0;
  transition: padding .35s var(--ease-out);
}
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .35s, border-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-nav.is-scrolled { padding: 10px 0; }
.site-nav.is-scrolled .site-nav__inner {
  background: rgb(255 255 255 / .72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-nav.is-hidden { transform: translateY(-110%); }
.site-nav { transition: transform .45s var(--ease-out), padding .35s var(--ease-out); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font: italic 400 1.2rem/1 var(--font-serif);
  padding-bottom: 3px;
  transition: transform .5s var(--ease-spring);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }

.nav-pills-soft {
  position: relative;
  list-style: none; margin: 0; padding: 4px;
  gap: 2px;
  background: rgb(243 238 230 / .7);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-pills-soft a {
  position: relative; z-index: 1;
  display: block; padding: 7px 16px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  border-radius: 999px;
  transition: color .25s;
}
.nav-pills-soft a:hover, .nav-pills-soft a.is-active { color: var(--ink); }
.nav-pills-soft__indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
  opacity: 0;
}

.mobile-nav { background: var(--bg); border-left: 1px solid var(--line) !important; }
.mobile-nav .offcanvas-header { padding: 20px; }
.mobile-nav__list { list-style: none; padding: 0; margin: 12px 0 0; }
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px;
  font: 400 1.75rem/1.2 var(--font-serif);
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list a.is-active { color: var(--clay); font-style: italic; }
.mobile-nav.show .mobile-nav__list li { animation: slideIn .5s var(--ease-out) both; }
.mobile-nav.show .mobile-nav__list li:nth-child(2) { animation-delay: .05s; }
.mobile-nav.show .mobile-nav__list li:nth-child(3) { animation-delay: .1s; }
.mobile-nav.show .mobile-nav__list li:nth-child(4) { animation-delay: .15s; }
.mobile-nav__foot { margin-top: 32px; color: var(--muted); font-size: .9rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--ink); color: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 64px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto auto; width: 60vw; height: 640px;
  background: radial-gradient(closest-side, rgb(244 228 217 / .9), transparent);
  pointer-events: none; z-index: -1;
}
.hero__lead { margin-bottom: 0; }

.portrait { position: relative; max-width: 420px; margin-inline: auto; perspective: 1000px; }
.portrait__frame {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 200px 200px var(--r-xl) var(--r-xl);
  background: linear-gradient(170deg, #e9dccd 0%, #dcc6b0 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgb(255 255 255 / .4);
  transition: transform .6s var(--ease-out);
  transform-style: preserve-3d;
}
.portrait__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait__lines path {
  fill: none; stroke: rgb(163 83 47 / .35); stroke-width: 1.2;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: draw 2.6s var(--ease-out) .6s forwards;
}
.portrait__lines path:nth-child(2) { animation-delay: .8s; }
.portrait__lines path:nth-child(3) { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.portrait__mono {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font: italic 300 clamp(7rem, 14vw, 10rem)/1 var(--font-serif);
  color: rgb(31 27 22 / .85);
  letter-spacing: -.06em;
}
.portrait__caption {
  position: absolute; left: 28px; bottom: 24px;
  font: italic 400 1rem var(--font-serif); color: rgb(31 27 22 / .6);
}
.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgb(255 255 255 / .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / .9);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: .82rem;
  animation: bob 6s ease-in-out infinite;
}
.float-chip--a { left: -36px; bottom: 22%; max-width: 230px; flex-direction: column; align-items: flex-start; gap: 2px; }
.float-chip--b { right: -20px; top: 14%; animation-delay: -3s; }
.float-chip__k { font: 500 1.4rem/1 var(--font-serif); color: var(--clay); }
.float-chip__v { color: var(--ink-2); line-height: 1.35; }
.float-chip .ico { color: var(--sage); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 72px 0 0;
  border-top: 1px solid var(--line);
}
.stats__item { padding: 28px 24px 0 0; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt {
  font: 400 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-serif);
  letter-spacing: -.02em; font-feature-settings: "tnum";
}
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: .9rem; max-width: 18ch; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 28px; width: max-content;
  font: italic 300 clamp(1.5rem, 3vw, 2.2rem)/1 var(--font-serif);
  color: var(--ink-2);
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__sep { color: var(--clay); font-style: normal; font-size: .6em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement {
  font: 400 clamp(1.6rem, 3vw, 2.35rem)/1.3 var(--font-serif);
  letter-spacing: -.015em;
  margin-bottom: 24px;
}
.hl {
  background: linear-gradient(transparent 62%, var(--clay-soft) 62%) no-repeat 0 0 / 0 100%;
  transition: background-size 1.1s var(--ease-out) .3s;
}
.is-visible .hl, .hl.is-visible { background-size: 100% 100%; }
.statement.is-visible .hl:nth-child(2) { transition-delay: .55s; }
.statement.is-visible .hl:nth-child(3) { transition-delay: .8s; }

/* ---------- Covers ---------- */
.cover {
  --c-bg: var(--clay-soft); --c-fg: var(--clay);
  position: relative; overflow: hidden;
  background: var(--c-bg); color: var(--c-fg);
  border-radius: var(--r-md);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 255 255 / .55), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgb(0 0 0 / .04) 27px 28px);
}
.cover__glyph {
  position: absolute; right: 6%; bottom: -18%;
  font: italic 300 13rem/1 var(--font-serif);
  opacity: .9;
  transition: transform .8s var(--ease-out);
}
.cover__label {
  position: absolute; left: 18px; top: 16px;
  font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.cover--sage { --c-bg: var(--sage-soft); --c-fg: var(--sage); }
.cover--sand { --c-bg: var(--sand-soft); --c-fg: #8d6f35; }
.cover--ink  { --c-bg: #2a251f; --c-fg: #e9dccd; }
.cover--ink::after { background: radial-gradient(circle at 85% 15%, rgb(255 255 255 / .08), transparent 40%), repeating-linear-gradient(0deg, transparent 0 27px, rgb(255 255 255 / .04) 27px 28px); }
.cover--lg { aspect-ratio: auto; height: 100%; min-height: 280px; }
.cover--lg .cover__glyph { font-size: 22rem; }
.cover--sm { aspect-ratio: 1; border-radius: var(--r-sm); }
.cover--sm .cover__glyph { font-size: 6rem; }
.cover--sm .cover__label { display: none; }
.cover--xl { aspect-ratio: 21 / 8; border-radius: var(--r-lg); }
.cover--xl .cover__glyph { font-size: clamp(14rem, 30vw, 26rem); right: 8%; bottom: -30%; }
.cover--xl .cover__label { left: 28px; top: 24px; }

/* ---------- Post cards ---------- */
.bento { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento .post-card--lg { grid-row: span 2; }

.post-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.post-card:hover .cover__glyph { transform: translateY(-10px) rotate(-4deg); }
.post-card__link { display: flex; flex-direction: column; height: 100%; }
.post-card--lg .post-card__link { display: grid; grid-template-rows: 1fr auto; }
.post-card__body { padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font: 400 1.45rem/1.2 var(--font-serif); letter-spacing: -.01em; margin: 0; }
.post-card--lg .post-card__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.post-card__excerpt { color: var(--muted); margin: 0; font-size: .95rem; }
.bento .post-card:not(.post-card--lg) .post-card__excerpt { display: none; }
.post-card__more {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 500;
}
.post-card__more .ico { transition: transform .35s var(--ease-out); }
.post-card:hover .post-card__more .ico { transform: translateX(4px); }

.bento .post-card:not(.post-card--lg) .post-card__link { flex-direction: row; gap: 4px; }
.bento .post-card:not(.post-card--lg) .cover { width: 42%; aspect-ratio: auto; flex-shrink: 0; }
.bento .post-card:not(.post-card--lg) .cover__glyph { font-size: 9rem; }

/* ---------- Horizontal timeline ---------- */
.h-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc((100vw - 1200px) / 2 + 20px)) 24px;
  scrollbar-width: none;
  cursor: grab;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.h-scroll.is-dragging * { user-select: none; pointer-events: none; }
.h-scroll__item {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: border-color .3s, transform .4s var(--ease-out);
}
.h-scroll__item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.h-scroll__year {
  display: inline-block;
  font: italic 400 1.9rem/1 var(--font-serif); color: var(--clay);
  margin-bottom: 18px;
}
.h-scroll__item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.h-scroll__item p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Bookshelf ---------- */
.shelf {
  display: flex; align-items: flex-end; gap: 10px;
  height: 360px; padding: 0 12px;
  border-bottom: 10px solid #3a332b;
  border-radius: 0 0 6px 6px;
  perspective: 900px;
}
.book {
  --b: var(--clay); --t: #fff;
  flex: 1; height: var(--h, 85%);
  background: var(--b);
  color: var(--t);
  border-radius: 4px 4px 2px 2px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 16px 0 12px;
  box-shadow: inset 3px 0 0 rgb(255 255 255 / .12), inset -3px 0 0 rgb(0 0 0 / .18);
  transform-origin: bottom center;
  transform: translateY(40px); opacity: 0;
  transition: transform .5s var(--ease-spring), opacity .5s, filter .3s;
  cursor: default;
}
.shelf.is-visible .book { transform: none; opacity: 1; transition-delay: calc(var(--i) * 70ms); }
.shelf.is-visible .book:hover, .shelf.is-visible .book:focus-visible {
  transform: translateY(-18px) rotateX(-6deg); transition-delay: 0s;
}
.shelf:hover .book:not(:hover) { filter: brightness(.82); }
.book__title {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 400 .98rem/1.1 var(--font-serif); letter-spacing: .01em;
  max-height: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.book__year { font-size: .7rem; opacity: .7; font-feature-settings: "tnum"; }
.book--clay { --b: #a3532f; }
.book--sage { --b: #56664f; }
.book--ink  { --b: #ece4d8; --t: var(--ink); }
.book--sand { --b: #c9a86a; --t: var(--ink); }

/* ---------- Quote ---------- */
.big-quote { text-align: center; max-width: 900px; margin: 0 auto; }
.big-quote blockquote {
  font: italic 300 clamp(2rem, 5vw, 3.75rem)/1.12 var(--font-serif);
  letter-spacing: -.02em; margin: 0 0 20px;
}
.big-quote blockquote::before { content: "“"; display: block; color: var(--clay); font-size: 1.6em; line-height: .6; }
.big-quote figcaption { color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sage-soft), transparent);
}
.newsletter > * { position: relative; }
.newsletter__form { display: flex; gap: 8px; min-width: min(420px, 100%); }
.newsletter__form .input-soft { border-radius: 999px; height: 44px; }
.newsletter__form.is-error .input-soft { border-color: var(--clay); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Forms ---------- */
.input-soft {
  width: 100%;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input-soft::placeholder { color: #a39a8e; }
.input-soft:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(31 27 22 / .06); }
.input-soft.is-invalid { border-color: var(--clay); box-shadow: 0 0 0 4px rgb(163 83 47 / .08); }
textarea.input-soft { resize: vertical; min-height: 140px; }
.label-soft { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field-error { display: block; font-size: .8rem; color: var(--clay); margin-top: 6px; min-height: 1em; }
.char-count { font-size: .78rem; color: var(--muted); margin-top: 6px; font-feature-settings: "tnum"; }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label {
  padding: 8px 14px; font-size: .88rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer; transition: all .2s;
}
.segmented label:hover { background: var(--bg-tint); }
.segmented .btn-check:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.segmented .btn-check:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }

.alert-soft { background: var(--clay-soft); color: var(--clay); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: .9rem; }

.success { text-align: center; padding: 24px 0; }
.success__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage); margin-bottom: 20px;
  animation: pop .6s var(--ease-spring);
}
.success__icon .ico { width: 28px; height: 28px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.contact-list .ico { color: var(--clay); }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.page-hero--compact { padding-bottom: 40px; }

/* ---------- About ---------- */
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; }
.toc__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc a {
  display: flex; gap: 12px; padding: 8px 12px; margin-left: -12px;
  font-size: .92rem; color: var(--muted); border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.toc a span { font-feature-settings: "tnum"; opacity: .6; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-xs); }
.toc a.is-active span { color: var(--clay); opacity: 1; }

.prose { font-size: 1.125rem; line-height: 1.8; color: var(--ink-2); }
.prose p { margin-bottom: 1.4em; }
.prose h2 { font: 400 clamp(1.6rem, 2.8vw, 2.1rem)/1.2 var(--font-serif); letter-spacing: -.015em; margin: 2em 0 .7em; color: var(--ink); }
.prose em { font-family: var(--font-serif); font-size: 1.08em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 28px;
  border-left: 2px solid var(--clay);
  font: italic 400 1.6rem/1.4 var(--font-serif); color: var(--ink);
}
.prose--story section { padding-bottom: 32px; }
.prose--story section + section { padding-top: 32px; border-top: 1px solid var(--line); }
.prose--story h2 { margin-top: 0; }
.dropcap::first-letter {
  float: left; font: 400 4.6rem/.8 var(--font-serif);
  margin: 8px 12px 0 0; color: var(--clay);
}

.value-card {
  height: 100%; padding: 32px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card__num { font-size: .8rem; color: var(--muted); font-feature-settings: "tnum"; }
.value-card h3 { font: italic 400 2.4rem/1 var(--font-serif); margin: 36px 0 14px; color: var(--clay); }
.value-card p { color: var(--muted); margin: 0; }

/* Vertical timeline */
.timeline { position: relative; list-style: none; padding: 0; margin: 0; }
.timeline__rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--clay); border-radius: 2px; transition: height .15s linear; }
.timeline__item { position: relative; width: 50%; padding: 0 48px 40px 0; }
.timeline__item.is-right { margin-left: 50%; padding: 0 0 40px 48px; }
.timeline__dot {
  position: absolute; top: 28px; right: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
  transition: border-color .4s, background .4s, transform .4s var(--ease-spring);
}
.timeline__item.is-right .timeline__dot { right: auto; left: -7px; }
.timeline__item.is-passed .timeline__dot { border-color: var(--clay); background: var(--clay); transform: scale(1.15); }
.timeline__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px; box-shadow: var(--shadow-xs);
}
.timeline__year { font: italic 400 1.6rem/1 var(--font-serif); color: var(--clay); }
.timeline__card h3 { font-size: 1.05rem; font-weight: 600; margin: 12px 0 6px; }
.timeline__card p { color: var(--muted); margin: 0; font-size: .95rem; }
.timeline__item[data-reveal] { transform: translateX(-24px); }
.timeline__item.is-right[data-reveal] { transform: translateX(24px); }
.timeline__item[data-reveal].is-visible { transform: none; }

.book-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); }
.book-list__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.book-list__row {
  display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease-out);
}
.book-list__row:last-child { border-bottom: 0; padding-bottom: 0; }
.book-list__row:hover { padding-left: 10px; }
.book-list__year { color: var(--muted); font-feature-settings: "tnum"; }
.book-list__title { font: 400 1.35rem/1.25 var(--font-serif); }
.book-list__swatch { width: 14px; height: 28px; border-radius: 3px; background: var(--b); justify-self: end; transition: transform .35s var(--ease-spring); }
.book-list__row:hover .book-list__swatch { transform: rotate(-12deg); }

/* ---------- Blog list ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs-soft { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; }
.tabs-soft a { padding: 7px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: all .25s; }
.tabs-soft a:hover { color: var(--ink); }
.tabs-soft a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.search-soft {
  position: relative; display: flex; align-items: center;
  width: min(320px, 100%);
}
.search-soft > .ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-soft input {
  width: 100%; height: 42px; padding: 0 40px 0 40px;
  font: inherit; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.search-soft input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(31 27 22 / .06); }
.search-soft kbd {
  position: absolute; right: 10px;
  font: 500 .72rem var(--font-sans); color: var(--muted);
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.search-soft input:focus ~ kbd { opacity: 0; }
.result-note { margin: 20px 0 0; color: var(--muted); font-size: .92rem; }

.post-row { border-bottom: 1px solid var(--line); }
.post-row__link {
  position: relative;
  display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: start;
  padding: 36px 0;
}
.post-row__date { color: var(--muted); font-size: .88rem; padding-top: 4px; font-feature-settings: "tnum"; }
.post-row__main { max-width: 640px; }
.post-row__title {
  font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--font-serif); letter-spacing: -.015em;
  margin: 12px 0 8px;
  transition: color .3s;
}
.post-row__excerpt { color: var(--muted); margin: 0; }
.post-row__side { display: flex; align-items: center; gap: 16px; padding-top: 4px; }
.post-row__time { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.post-row__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background .3s, color .3s, transform .45s var(--ease-out), border-color .3s;
}
.post-row__link:hover .post-row__arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }
.post-row__link:hover .post-row__title { color: var(--clay); }
.post-row__peek {
  position: absolute; right: 120px; top: 50%; width: 132px;
  opacity: 0; transform: translate(0, -50%) rotate(6deg) scale(.85);
  transition: opacity .35s, transform .5s var(--ease-out);
  pointer-events: none; box-shadow: var(--shadow-md); border-radius: var(--r-sm);
}
.post-row__link:hover .post-row__peek { opacity: 1; transform: translate(0, -50%) rotate(-3deg) scale(1); }

.empty-state { text-align: center; padding: 80px 0; }
.empty-state__glyph { display: block; font: italic 300 5rem/1 var(--font-serif); color: var(--clay); margin-bottom: 16px; }
.empty-state h2 { font: 400 1.8rem var(--font-serif); }

/* ---------- Article ---------- */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1040; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--clay); transform-origin: left; transform: scaleX(0); }

.article__head { padding: clamp(32px, 6vw, 72px) 0 48px; }
.article__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.article__cover { margin-bottom: 56px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.byline__avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(170deg, #e9dccd, #dcc6b0); font: italic 400 1rem var(--font-serif);
}
.byline strong { display: block; font-size: .95rem; }
.byline span { font-size: .85rem; color: var(--muted); }

.share { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 8px; }

.demo-callout {
  margin: 48px 0 0; padding: 16px 20px;
  background: var(--sand-soft); border-radius: var(--r-md);
  font-size: .9rem; color: #6d5628;
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager__item {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s, background .3s;
}
.pager__item:hover { border-color: var(--line-2); background: var(--surface); }
.pager__item span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.pager__item strong { font: 400 1.15rem/1.3 var(--font-serif); }
.pager__item--next { text-align: right; align-items: flex-end; grid-column: 2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: 88px 0 32px; }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgb(250 247 242 / .12); }
.site-footer__big { font: 300 clamp(2.2rem, 4.5vw, 3.6rem)/1.05 var(--font-serif); letter-spacing: -.02em; margin: 0; }
.site-footer__big em { color: #e0a98d; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer h6 { color: rgb(250 247 242 / .5); font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: rgb(250 247 242 / .85); font-size: .95rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .85rem; color: rgb(250 247 242 / .55); }
.demo-note { font-style: italic; }

/* ---------- Toast ---------- */
.toast-soft {
  position: fixed; left: 50%; bottom: 24px; z-index: 2000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-size: .9rem;
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease-spring), opacity .3s;
}
.toast-soft.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Motion: reveal + split ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w__i {
  display: inline-block; transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms + 80ms);
}
.is-split-in .w__i { transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .bento { grid-template-columns: 1fr; }
  .bento .post-card--lg { grid-row: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats__item { padding-bottom: 24px; }
  .newsletter { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .post-row__peek { display: none; }
  .float-chip--a { left: -8px; }
  .float-chip--b { right: -4px; }
}

@media (max-width: 767.98px) {
  .timeline__rail { left: 7px; }
  .timeline__item, .timeline__item.is-right { width: 100%; margin-left: 0; padding: 0 0 28px 36px; }
  .timeline__dot, .timeline__item.is-right .timeline__dot { left: 0; right: auto; }
  .timeline__item[data-reveal], .timeline__item.is-right[data-reveal] { transform: translateY(18px); }
  .timeline__item[data-reveal].is-visible { transform: none; }
  .post-row__link { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .post-row__side { display: none; }
  .bento .post-card:not(.post-card--lg) .post-card__link { flex-direction: column; }
  .bento .post-card:not(.post-card--lg) .cover { width: 100%; aspect-ratio: 16/9; }
  .shelf { height: 280px; gap: 6px; padding: 0 4px; }
  .book__title { font-size: .82rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .newsletter__form { flex-direction: column; min-width: 0; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager__item--next { grid-column: auto; }
  .cover--xl { aspect-ratio: 16 / 10; }
  .float-chip--a { max-width: 190px; bottom: 8%; }
}

@media (max-width: 575.98px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item + .stats__item { padding-left: 16px; }
  .stats__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-soft { width: 100%; }
  .tabs-soft { overflow-x: auto; flex-wrap: nowrap; }
  .tabs-soft a { white-space: nowrap; }
}
