/* Klein Finds: shared styles for inner pages (About, Contact, Terms, Privacy).
   Mirrors the homepage design (Instrument Serif + Inter, warm paper, gold accent). */
:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --surface: #ffffff;
  --ink: #111110;
  --muted: #75746e;
  --line: rgba(17, 17, 16, .09);
  --gold: #b08d57;
  --gold-hi: #e3bd6a;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 243, 239, .75); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; }
.monogram { height: 34px; width: 34px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--gold-hi); border-radius: 50%; font: 21px/1 var(--serif); padding-bottom: 1px; transition: transform .6s var(--ease); }
.brand:hover .monogram { transform: rotate(-360deg); }
.brand-name { font-size: 21px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.brand-name sup { font-size: 10px; font-weight: 500; top: -.9em; }
.nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(17, 17, 16, .07); }
.nav a { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #3a3a37; transition: background .3s, box-shadow .3s, color .3s; }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .07), 0 0 0 1px rgba(0, 0, 0, .04); }

/* Page hero */
.page-hero { padding: 110px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(17, 17, 16, .09) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(60% 80% at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 30% 40%, #000, transparent 75%); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.kicker::before { content: ""; display: block; width: 28px; height: 3px; background: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; margin-top: 0; }
h1 { font-size: clamp(56px, 8vw, 120px); line-height: .95; letter-spacing: -.04em; margin: 26px 0 24px; animation: rise 1s var(--ease) both; }
.lede { max-width: 620px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--muted); margin: 0; animation: rise 1s .12s var(--ease) both; }
.updated { margin-top: 22px; font-size: 12px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Prose */
.prose { padding: 0 0 100px; }
.prose-inner { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(32px, 5vw, 64px); animation: rise 1s .2s var(--ease) both; }
.prose h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.03em; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #4a4945; font-size: 16px; line-height: 1.8; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li::marker { color: var(--gold); }
.prose a { text-decoration: none; background-image: linear-gradient(var(--gold-hi), var(--gold-hi)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; transition: background-size .4s var(--ease); }
.prose a:hover { background-size: 100% 100%; }
.email-big { display: inline-block; font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; padding-bottom: 6px; overflow-wrap: anywhere; background-size: 100% 2px !important; }
.email-big:hover { background-size: 100% 100% !important; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; }
footer small { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { min-height: 68px; }
  .brand-name { font-size: 18px; }
  .nav a { padding: 8px 12px; font-size: 13px; }
  .page-hero { padding: 70px 0 48px; }
  .prose { padding-bottom: 64px; }
  .prose-inner { border-radius: 24px; }
  .prose p, .prose li { font-size: 15px; }
  .footer-row { flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 16px; }
  .nav a { padding: 7px 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
