/* Kroun Studio — krounstudio.com
   Warm paper, ink type, one gold crown. Fraunces for display, Instrument Sans
   for everything else — both self-hosted. No CDN, no analytics, no cookies. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrumentsans.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #F7F4EC;
  --bg-2: #EFEBDF;
  --card: #FFFFFF;
  --card-2: #FBF9F3;
  --ink: #17170F;
  --ink-2: #34332A;
  --muted: #64635A;
  --faint: #8A8879;
  --line: rgba(23, 23, 15, 0.10);
  --line-2: rgba(23, 23, 15, 0.22);
  --gold: #D3A445;
  --gold-deep: #B0842C;
  --gold-ink: #7A5B12;
  --gold-soft: rgba(211, 164, 69, 0.16);
  --olive: #262A19;
  --olive-2: #15170E;
  --olive-ink: #F4F1E4;
  --olive-muted: #B7BE99;
  --olive-accent: #C8D68C;
  --olive-line: rgba(200, 214, 140, 0.16);
  --shadow-lg: 0 40px 80px -30px rgba(23, 23, 15, 0.35);
  --nav-bg: rgba(247, 244, 236, 0.82);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121210;
    --bg-2: #181814;
    --card: #1D1D18;
    --card-2: #21211B;
    --ink: #F3F0E7;
    --ink-2: #DAD7CC;
    --muted: #A7A497;
    --faint: #82806F;
    --line: rgba(243, 240, 231, 0.10);
    --line-2: rgba(243, 240, 231, 0.24);
    --gold: #DDB259;
    --gold-deep: #C99C3F;
    --gold-ink: #E3C06E;
    --gold-soft: rgba(221, 178, 89, 0.14);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
    --nav-bg: rgba(18, 18, 16, 0.8);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: #17170F; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.display, h1, h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1.5px; background: var(--gold); border-radius: 2px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--olive-accent); color: #14160E; }
.btn-accent:hover { background: #E4EDBB; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }

/* ── Nav ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 21px; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  margin-top: 24px; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-ink); }
.hero .lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted);
  max-width: 30em; margin-top: 28px; text-wrap: pretty;
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 34px; font-size: 14px; font-weight: 500; color: var(--faint);
}
.hero .meta li { display: flex; align-items: center; gap: 14px; }
.hero .meta li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* The studio seal — a crown inside a slowly turning ring of text. */
.hero-seal { display: flex; justify-content: center; align-items: center; }
.seal { width: min(440px, 82vw); height: auto; overflow: visible; }
.seal .disc { fill: var(--card); stroke: var(--line); stroke-width: 1; }
.seal .halo { fill: var(--gold-soft); }
.seal .ring { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.seal .ring-dots { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 1 5; stroke-linecap: round; }
.seal .txt {
  fill: var(--muted);
  font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 3.3px;
}
.seal .crown { color: var(--gold); }
.seal-text { transform-origin: 200px 200px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal-text { animation: none; } }

/* ── Work / Sarge ──────────────────────────────────────────────────── */

.work {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -20%, #343A22 0%, var(--olive) 45%, var(--olive-2) 100%);
  color: var(--olive-ink);
  padding: 104px 0 120px;
}
.work::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(105deg, rgba(200, 214, 140, 0.035) 0 2px, transparent 2px 28px);
}
.work .wrap { position: relative; }
.work .eyebrow { color: var(--olive-accent); }
.work .eyebrow::before { background: var(--olive-accent); }
.work-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 26px; margin-bottom: 64px; border-bottom: 1px solid var(--olive-line);
}
.work-head .title { font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin-top: 14px; }
.work-head .count { font-size: 14px; font-weight: 500; color: var(--olive-muted); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.app-id { display: flex; align-items: center; gap: 20px; }
.app-id img { width: 80px; height: 80px; border-radius: 23px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.app-id h1, .app-id h2 { font-size: clamp(2.8rem, 4.6vw, 4rem); color: var(--olive-ink); }
.app-id .tag { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--olive-muted); }
.work .pitch {
  margin-top: 28px; font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25; letter-spacing: -0.015em;
  text-wrap: balance; max-width: 18em;
}
.work .lead { margin-top: 18px; font-size: 17.5px; line-height: 1.6; color: var(--olive-muted); max-width: 30em; text-wrap: pretty; }
.features { margin-top: 30px; }
.feature {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--olive-line);
}
.feature:last-child { border-bottom: 1px solid var(--olive-line); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(200, 214, 140, 0.10); border: 1px solid rgba(200, 214, 140, 0.14);
  display: grid; place-items: center; color: var(--olive-accent);
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; font-weight: 600; color: var(--olive-ink); }
.feature p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--olive-muted); }
.work .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 34px; }
.work .note { font-size: 14px; font-weight: 500; color: var(--olive-muted); }

.work-stage { position: relative; height: 620px; }
.phone {
  position: absolute; padding: 7px; border-radius: 40px;
  background: #0B0C08;
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(200, 214, 140, 0.22);
}
.phone img { width: 244px; height: 506px; object-fit: cover; object-position: top; border-radius: 33px; }
.phone-a { left: 12px; top: 10px; transform: rotate(-5deg); z-index: 1; }
.phone-b { right: 8px; top: 96px; transform: rotate(4deg); z-index: 2; }
.work-mascot {
  position: absolute; left: -14px; bottom: -6px; width: 232px; z-index: 3;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
}

/* ── Studio ────────────────────────────────────────────────────────── */

.studio { padding: 128px 0 32px; }
.studio-head { max-width: 800px; }
.studio h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); margin-top: 22px; text-wrap: balance; }
.studio .intro { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.studio .intro em { font-style: italic; font-family: 'Fraunces', Georgia, serif; color: var(--ink); font-size: 1.05em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.principle {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 32px 30px 34px; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(23, 23, 15, 0.03);
}
.principle .n {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 36px; line-height: 1; color: var(--gold);
}
.principle h3 { margin-top: 22px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.principle p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 64px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact .k { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.fact .v { margin-top: 8px; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }

/* ── Contact ───────────────────────────────────────────────────────── */

.contact { padding: 128px 0 136px; text-align: center; }
.contact .eyebrow::before { display: none; }
.contact h2 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); margin-top: 18px; }
.contact p { margin: 22px auto 0; max-width: 32em; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.mail {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 38px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 3.4vw, 2.5rem); color: var(--ink);
  padding-bottom: 6px; border-bottom: 2px solid var(--gold);
  transition: color .15s ease;
}
.mail svg { width: 0.8em; height: 0.8em; transition: transform .2s ease; }
.mail:hover { color: var(--gold-ink); }
.mail:hover svg { transform: translate(3px, -3px); }
.contact .sub { margin-top: 30px; font-size: 14px; color: var(--faint); }
.contact .sub a { color: var(--ink-2); font-weight: 500; border-bottom: 1px solid var(--line-2); }

/* ── Footer ────────────────────────────────────────────────────────── */

.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer .brand { font-size: 19px; }
.footer .about { margin-top: 18px; max-width: 30em; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.footer h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.footer ul { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: var(--faint);
}
.footer-bottom a { color: var(--ink-2); }

/* ── Legal page ────────────────────────────────────────────────────── */

.legal { max-width: 740px; margin: 0 auto; padding: 84px 24px 110px; }
.legal h1 { font-size: clamp(2.5rem, 5.2vw, 3.8rem); margin-top: 20px; }
.legal .date { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--faint); }
.legal h2 { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.015em; margin-top: 52px; scroll-margin-top: 96px; }
.legal > h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-top: 12px; line-height: 1.65; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--gold-ink); font-weight: 500; border-bottom: 1px solid transparent; }
.legal a:hover { border-bottom-color: currentColor; }
.legal .callout {
  margin-top: 24px; padding: 18px 22px; border-radius: 20px;
  background: var(--gold-soft); border: 1px solid var(--line);
}
.card-table { margin-top: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.card-table .row { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.card-table .row:first-child { border-top: 0; }
.card-table .k { padding-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.card-table .v { font-weight: 500; color: var(--ink); line-height: 1.5; }

/* ── Sarge page ────────────────────────────────────────────────────── */

.sarge-hero { padding: 88px 0 112px; }
.sarge-hero .app-id { margin-top: 26px; }
.sarge-hero .work-mascot { width: 250px; left: -26px; bottom: 6px; }

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-seal { order: -1; }
  .seal { width: min(320px, 70vw); }

  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-stage {
    height: auto; display: flex; justify-content: center; gap: 22px;
    padding: 14px 0 0; overflow: visible;
  }
  .phone-a, .phone-b { position: static; }
  .phone img { width: min(244px, 40vw); height: auto; aspect-ratio: 244 / 506; }
  .work-mascot { display: none; }

  .principles { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav .wrap { height: 66px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.btn) { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .work { padding: 80px 0 90px; }
  .sarge-hero { padding: 64px 0 80px; }
  .work-head { flex-direction: column; align-items: flex-start; margin-bottom: 44px; }
  .app-id img { width: 64px; height: 64px; border-radius: 18px; }
  .studio { padding: 96px 0 24px; }
  .contact { padding: 96px 0 104px; }
  .card-table .row { grid-template-columns: 1fr; gap: 4px; }
}
