/* Korrin — landing page. Identity: branding/README.md */

:root {
  --ground: #F7F5EF;
  --raised: #FFFFFF;
  --sunk: #EEEBE1;
  --ink: #181A1F;
  --muted: #63605A;
  --faint: #97938A;
  --line: #E3DFD4;
  --accent: #2E6E5E;
  --accent-ink: #1E4A3F;
  --accent-wash: #E4EFEA;

  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap: 1060px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121311;
    --raised: #1B1C18;
    --sunk: #191A16;
    --ink: #ECEAE2;
    --muted: #A9A59B;
    --faint: #7A776E;
    --line: #2B2C27;
    --accent: #63B7A3;
    --accent-ink: #A2D8CB;
    --accent-wash: #1B2925;
  }
}
:root[data-theme="dark"] {
  --ground: #121311;
  --raised: #1B1C18;
  --sunk: #191A16;
  --ink: #ECEAE2;
  --muted: #A9A59B;
  --faint: #7A776E;
  --line: #2B2C27;
  --accent: #63B7A3;
  --accent-ink: #A2D8CB;
  --accent-wash: #1B2925;
}

* { box-sizing: border-box; }

.svg-defs { position: absolute; width: 0; height: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--mono); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.8rem); line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem); line-height: 1.2; }
h3 { font-size: 1rem; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0;
}

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

/* ---- header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 22px; height: 22px; color: var(--ink); }
.brand b { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; font-size: 1.05rem; }
.site-head nav { display: flex; gap: 1.4rem; font-family: var(--mono); font-size: 13.5px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .site-head nav a.hide-sm { display: none; } }

/* ---- section rhythm ---- */
section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2.5rem; max-width: 60ch; }
.sec-head p.lede { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); }

/* ---- hero ---- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin: 1.1rem 0 1.25rem; }
.hero h1 .g { color: var(--accent-ink); }
.hero .sub { color: var(--muted); font-size: clamp(1.02rem, 0.98rem + 0.4vw, 1.2rem); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 0.7rem 1.15rem;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--raised);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--sunk); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ground); }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- terminal (a terminal is always dark, in both themes) ---- */
.term {
  background: #17181C;
  color: #E9E7DF;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2C2D28;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 24px 50px -22px rgba(0,0,0,0.5);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
}
.term .bar {
  display: flex; gap: 6px; align-items: center;
  padding: 11px 14px;
  background: #101115;
  border-bottom: 1px solid #26272200;
}
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4C4D46; display: block; }
.term .body { padding: 1rem 1.25rem 1.2rem; overflow-x: auto; white-space: pre; }
.term .dollar { color: #82B4A5; }
.term .out { color: #9A968C; }
.term .cur { color: #82B4A5; }

/* ---- code sample ---- */
.taste-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; align-items: stretch; }
@media (max-width: 760px) { .taste-grid { grid-template-columns: 1fr; } }

.code-card, .out-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.card-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.85rem 1.1rem 0;
}
pre {
  margin: 0;
  padding: 1rem 1.2rem 1.3rem;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--ink);
  tab-size: 4;
}
.out-card pre { color: var(--muted); background: var(--sunk); height: 100%; }
.tok-kw { color: var(--accent-ink); }
.tok-str { color: var(--muted); }
.tok-com { color: var(--faint); font-style: italic; }
.tok-fn { color: var(--ink); font-weight: 500; }
.tok-num { color: var(--ink); }

/* ---- goals ---- */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem 1.75rem; }
.goal { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.goal h3 { color: var(--ink); }
.goal p { color: var(--muted); font-size: 14.5px; }
.goal h3 a { color: var(--ink); text-decoration: none; }
.goal h3 a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- status ---- */
.status {
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.status .tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: var(--ground);
  padding: 3px 9px; border-radius: 5px;
}
.status p { color: var(--accent-ink); font-size: 14.5px; max-width: 62ch; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding-block: 3rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
footer .f-brand { display: flex; align-items: center; gap: 0.55rem; }
footer .f-brand svg { width: 18px; height: 18px; color: var(--faint); }
footer .f-brand span { font-family: var(--mono); font-size: 13px; color: var(--faint); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-family: var(--mono); font-size: 13px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .lic { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 100%; }
