/* ==========================================================================
   danipostma.nl — a hand-written personal site
   1. Fonts          5. Hero            9. Contact
   2. Tokens         6. Ticker         10. Footer
   3. Base           7. Sections       11. Motion
   4. Header         8. Work / About   12. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  --bg: #f7f4ee;
  --bg-elev: #efeade;
  --fg: #171510;
  --fg-muted: #6d6657;
  --line: rgba(23, 21, 16, 0.14);
  --line-soft: rgba(23, 21, 16, 0.07);
  --accent: #a8432a;
  --accent-fg: #fffaf5;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, Times, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0d0b;
  --bg-elev: #1a1815;
  --fg: #f3eee3;
  --fg-muted: #a49c8b;
  --line: rgba(243, 238, 227, 0.16);
  --line-soft: rgba(243, 238, 227, 0.08);
  --accent: #e08a63;
  --accent-fg: #14110d;
}

/* 3. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Paper grain — very quiet, fixed, no animation cost. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.045; }

/* 4. Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 74px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.wordmark-dot { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.25rem);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.site-nav a {
  position: relative;
  color: var(--fg-muted);
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--fg); transform: rotate(-12deg); }
.theme-toggle .icon { width: 16px; height: 16px; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* 5. Hero ----------------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 11vh, 8rem) clamp(2.5rem, 7vh, 5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow .sep { opacity: 0.45; }

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 3.2s ease-out infinite;
}

.display {
  margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 14.5vw, 11.5rem);
  line-height: 0.84;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.display .line > span { display: inline-block; }
.display em {
  font-style: italic;
  letter-spacing: -0.012em;
  color: var(--fg);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: clamp(1.5rem, 3vh, 2rem);
  border-top: 1px solid var(--line);
}

.lede {
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow:hover { color: var(--fg); border-bottom-color: var(--line); }

/* 6. Ticker --------------------------------------------------------------- */

.ticker {
  border-block: 1px solid var(--line-soft);
  padding-block: 0.9rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
  animation-delay: -14s; /* start mid-scroll so the first frame is not clipped */
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.tick { color: var(--accent); opacity: 0.8; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* 7. Sections ------------------------------------------------------------- */

.section {
  padding-block: clamp(4rem, 10vh, 8rem);
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.label-idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* 8. Work ----------------------------------------------------------------- */

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  border-bottom: 1px solid var(--line);
}
.work-item > a,
.work-item > div {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1.45fr) minmax(0, 0.5fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.6rem, 3.4vh, 2.4rem) clamp(0.5rem, 1.2vw, 1rem);
  margin-inline: clamp(-0.5rem, -1.2vw, -1rem);
  border-radius: 6px;
  transition: background-color 0.35s var(--ease), transform 0.4s var(--ease);
}
.work-item > a:hover {
  background: var(--bg-elev);
  transform: translateX(4px);
}
.work-item > a:hover .work-title { color: var(--accent); }
.work-title { transition: color 0.35s var(--ease); }
.work-item > a:hover .work-desc { color: var(--fg); }

.work-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.work-arrow {
  font-family: var(--sans);
  font-size: 0.7em;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-item > a:hover .work-arrow { opacity: 1; transform: none; }

.work-desc {
  margin-top: 0.7rem;
  max-width: 58ch;
  transition: color 0.35s var(--ease);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.45rem;
  text-align: right;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.work-year { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.work-tags { letter-spacing: 0.01em; opacity: 0.85; }

/* About ------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}
.section-head--side { margin-bottom: 0; }

.about-body { max-width: 62ch; }

.pull {
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.prose {
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--fg-muted);
}
.prose p { max-width: 60ch; text-wrap: pretty; }

/* 9. Contact -------------------------------------------------------------- */

.section--contact { padding-block: clamp(4.5rem, 12vh, 9rem); }

.contact-lead {
  max-width: 30ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.contact-lead .muted { display: block; margin-top: 0.6rem; font-size: 0.62em; line-height: 1.3; }

.email {
  display: inline-block;
  margin-top: clamp(2rem, 5vh, 3rem);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease);
  padding-bottom: 0.06em;
  word-break: break-word;
}
.email:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* 10. Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.25rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.colophon {
  font-size: 0.76rem;
  color: var(--fg-muted);
}
.colophon--mid { flex: 1 1 auto; text-align: center; }
.colophon--end { display: flex; gap: 1.1rem; }
.colophon--end a { transition: color 0.25s var(--ease); }
.colophon--end a:hover { color: var(--fg); }

/* 11. Motion -------------------------------------------------------------- */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes rise {
  from { transform: translate3d(0, 108%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

.js .display .line > span {
  animation: rise 1s var(--ease) both;
}
.js .display .line:nth-child(2) > span { animation-delay: 0.09s; }

.js .eyebrow { animation: fade-up 0.7s var(--ease) 0.1s both; }
.js .hero-foot { animation: fade-up 0.8s var(--ease) 0.3s both; }
.js .ticker { animation: fade-up 0.8s var(--ease) 0.45s both; }

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .ticker-track { animation: none; }
  .js .display .line > span,
  .js .eyebrow,
  .js .hero-foot,
  .js .ticker { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* 12. Responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; align-items: start; gap: 1.75rem; }
  .lede { max-width: 40ch; }
  .work-item > a,
  .work-item > div { grid-template-columns: 1fr; gap: 0.9rem; }
  .work-meta { flex-direction: row; gap: 0.9rem; text-align: left; padding-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .colophon--mid { text-align: left; }
}

@media (max-width: 520px) {
  .header-inner { height: 64px; }
  .site-nav { gap: 1rem; font-size: 0.78rem; }
  .display { font-size: clamp(3.4rem, 19vw, 5rem); }
  .hero { padding-top: 2.75rem; }
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.13em; }
  .colophon--end { gap: 0.9rem; }
}

@media print {
  .grain, .site-header, .ticker, .theme-toggle, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .section { border-color: #ddd; }
}

/* Anchor targets clear the sticky header. */
section[id] { scroll-margin-top: 92px; }

/* Hero: secondary "currently" line ---------------------------------------- */
.hero-copy { max-width: 40ch; }
.now {
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fg-muted);
  text-wrap: pretty;
}
.now a {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.now a:hover { color: var(--accent); }

/* Very small phones: keep the header from colliding. */
@media (max-width: 380px) {
  .header-inner { height: 58px; gap: 0.75rem; }
  .wordmark { font-size: 1.06rem; }
  .site-nav { gap: 0.8rem; font-size: 0.72rem; }
  .theme-toggle { width: 32px; height: 32px; flex: 0 0 auto; }
  .theme-toggle .icon { width: 14px; height: 14px; }
}

/* Work rows: index rail + kind label ------------------------------------- */
.work-idx {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  opacity: 0.6;
  padding-top: 0.55rem;
  font-variant-numeric: tabular-nums;
}
.work-kind {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.63rem;
  color: var(--accent);
}
.nowrap { white-space: nowrap; }

@media (max-width: 860px) {
  .work-idx { display: none; }
  .work-meta { gap: 0.75rem; }
  .work-kind { display: none; }
}

/* Project proof line ------------------------------------------------------ */
.work-proof {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
  opacity: 0.8;
}

/* Receipts ---------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: clamp(1.5rem, 3vh, 2rem);
  border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column; gap: 0.3rem; }
.stats dt {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats dd {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--fg-muted);
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}

/* ==========================================================================
   Multi-page additions (v2)
   ========================================================================== */

.site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.page-head {
  padding-top: clamp(3rem, 9vh, 6.5rem);
  padding-bottom: clamp(1.75rem, 4vh, 3rem);
}
.page-title {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-lede {
  margin-top: clamp(1.25rem, 3vh, 1.75rem);
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.5;
  color: var(--fg-muted);
  text-wrap: pretty;
}
.section--flush { border-top: 0; padding-top: clamp(1rem, 2vh, 1.5rem); }

/* Featured project -------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(1.5rem, 3vh, 2.25rem);
  border-top: 1px solid var(--line);
}
.feature-title {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.feature-lede {
  margin-top: 1.25rem;
  max-width: 54ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.feature-body {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--fg-muted);
  text-wrap: pretty;
}
.feature-side {
  align-self: start;
  padding-left: clamp(0rem, 2vw, 1.75rem);
  border-left: 1px solid var(--line-soft);
}
.facts { display: grid; gap: 1.1rem; margin: 0 0 1.5rem; }
.facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.facts dd { margin: 0.25rem 0 0; font-size: 0.92rem; }
.btn--small { padding: 0.65rem 1.05rem; font-size: 0.78rem; }

/* Plain lists ------------------------------------------------------------- */
.plain-list {
  list-style: none;
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.plain-list li {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.plain-term { font-size: 0.9rem; font-weight: 500; }
.plain-desc { font-size: 0.92rem; line-height: 1.55; color: var(--fg-muted); }
.plain-list--tight { border-top: 0; margin-top: 1rem; }
.plain-list--tight li { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.45rem 0; border-bottom: 0; }

.private-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}
.more-link { margin-top: 1.75rem; }

/* About extras ------------------------------------------------------------ */
.section-title--small {
  margin-top: clamp(2.5rem, 6vh, 3.75rem);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.015em;
}
.stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.stack li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.76rem;
  color: var(--fg-muted);
}

/* Contact ----------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1rem, 2vh, 1.5rem);
}
.contact-card { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.contact-card .email { margin-top: 0.85rem; font-size: clamp(1.15rem, 2.4vw, 1.7rem); display: inline-block; }
.handle-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.7rem; }
.handle {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.handle--big { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.copy-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-muted);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: 500 0.7rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.copy-btn:hover { color: var(--fg); border-color: var(--fg); }
.copy-btn.is-copied { color: var(--accent); border-color: var(--accent); }
.contact-note { margin-top: 1rem; max-width: 32ch; font-size: 0.85rem; line-height: 1.5; color: var(--fg-muted); }
.contact-what { margin-top: clamp(3rem, 8vh, 4.5rem); max-width: 60ch; }
.contact-what .muted { margin-top: 0.75rem; font-size: 0.9rem; }
.contact-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(1.75rem, 4vh, 2.5rem); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
  .private-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .plain-list li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* Page body: a readable single column for About/Contact prose -------------- */
.page-body { max-width: 64ch; }
.page-body .stats { max-width: 100%; }
