/* Three Note Soup — site styles. Concept A (editorial, dark). No JS required. */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0c0b0a;
  --panel: #141312;
  --rule: #262421;
  --ink: #eeeae2;
  --muted: #b5afa4;
  --quiet: #8f897f;
  --accent: #ff5a36;
  --ring: #1c1b19;
  --cool: 150, 180, 230;
  --warm: 255, 90, 54;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 80px;
  --max: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 16px; background: var(--ink); color: var(--ground);
  font-weight: 600; text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 16px; color: var(--ground); }

.page {
  overflow: hidden;
  background:
    radial-gradient(900px 640px at 18% 280px, rgba(var(--cool), 0.05), rgba(var(--cool), 0) 70%),
    radial-gradient(820px 720px at 92% 420px, rgba(var(--warm), 0.06), rgba(var(--warm), 0) 70%),
    radial-gradient(1100px 820px at 8% 60%, rgba(var(--cool), 0.03), rgba(var(--cool), 0) 70%),
    radial-gradient(960px 720px at 88% 88%, rgba(var(--warm), 0.04), rgba(var(--warm), 0) 70%),
    var(--ground);
}

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

.mono {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; min-width: 44px; text-decoration: none; }
.brand img { width: 40px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a { display: block; padding: 12px 4px; text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding: 120px 0 128px;
}
.hero-rings {
  position: absolute; right: -260px; top: -40px;
  width: 760px; height: 760px; pointer-events: none;
}
.hero-rings g { fill: none; stroke: var(--ring); stroke-width: 1.2; }
.hero-logo { grid-column: 1 / span 5; position: relative; }
.hero-logo img { width: 100%; max-width: 500px; }
.hero-text { grid-column: 7 / span 6; position: relative; }
.kicker {
  position: absolute; left: 0; bottom: 100%;
  margin-bottom: 24px;
  color: var(--accent);
}
.headline {
  /* Pulls the cap height level with the top of the logo. */
  margin-top: -0.12em;
  font-size: 84px; line-height: 0.98; font-weight: 600; letter-spacing: -0.035em;
}
.lede { margin-top: 32px; font-size: 22px; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; margin-top: 40px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 16px; font-weight: 500; text-decoration: none;
}
.button:hover { border-color: var(--accent); }

/* Sections */
.section { padding-top: 144px; }
.section-title { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 48px; }

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.area h3 { display: flex; align-items: baseline; gap: 14px; font-size: 24px; line-height: 1.3; font-weight: 600; margin-bottom: 12px; }
.area h3::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); transform: translateY(-2px);
}
.area p { color: var(--muted); max-width: 46ch; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 40px; border-radius: 8px;
  background: radial-gradient(130% 150% at 0% 0%, #1a1c21 0%, var(--panel) 55%, #11100f 100%);
}
.card .mono { font-size: 13px; letter-spacing: 0.06em; color: var(--accent); }
.card h3 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.card p { font-size: 17px; color: var(--muted); }
.card .meta { margin-top: 8px; font-size: 15px; color: var(--quiet); }

.about {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px;
  padding-bottom: 144px;
}
.about .section-title { grid-column: 1 / span 4; margin-bottom: 0; }
.about-body { grid-column: 6 / span 7; }
.about-body p:first-child { font-size: 24px; line-height: 1.5; margin-bottom: 24px; }
.about-body p + p { color: var(--muted); }

/* Contact strip */
.contact {
  background:
    radial-gradient(55% 180% at 100% 50%, rgba(var(--warm), 0.09), rgba(var(--warm), 0) 70%),
    radial-gradient(40% 160% at 0% 50%, rgba(var(--cool), 0.035), rgba(var(--cool), 0) 70%),
    var(--panel);
}
.contact .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 72px; padding-bottom: 72px;
}
.contact h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
.contact p { font-size: 20px; }

/* Footer */
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 32px; padding-bottom: 48px;
  font-size: 14px; color: var(--quiet);
}
.site-footer .brand-small { display: flex; align-items: center; gap: 12px; }
.site-footer .brand-small img { width: 24px; }

/* 404 */
.notfound { padding: 160px 0 200px; max-width: 40ch; }
.notfound .kicker { position: static; display: block; margin-bottom: 24px; }
.notfound h1 { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 24px; }
.notfound p { color: var(--muted); }

/* Tablet and below: stack */
@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1fr; padding: 72px 0 96px; }
  .hero-logo, .hero-text { grid-column: 1 / -1; }
  .hero-logo img { max-width: 360px; }
  .hero-text { margin-top: 48px; }
  .kicker { position: static; display: block; margin-bottom: 16px; }
  .headline { margin-top: 0; font-size: 60px; }
  .hero-rings { top: 200px; right: -300px; }
  .areas, .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about .section-title, .about-body { grid-column: 1 / -1; }
  .section { padding-top: 104px; }
}

/* Phone */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .mono { font-size: 12px; letter-spacing: 0.06em; }
  .site-header { padding: 12px 0; }
  .brand img { width: 34px; }
  .brand span { display: none; }
  .nav ul { gap: 4px; }
  .nav a { padding: 14px 8px; }
  .hero { padding: 48px 0 72px; }
  .hero-logo img { max-width: 300px; }
  .hero-rings { width: 520px; height: 520px; top: 230px; right: -230px; }
  .headline { font-size: 46px; line-height: 1; }
  .lede { margin-top: 20px; font-size: 18px; }
  .button { margin-top: 32px; }
  .section { padding-top: 88px; }
  .section-title { font-size: 32px; margin-bottom: 32px; }
  .areas { gap: 32px; }
  .area h3 { font-size: 21px; gap: 12px; margin-bottom: 8px; }
  .area h3::before { width: 8px; height: 8px; }
  .cards { gap: 16px; }
  .card { padding: 28px 24px; gap: 12px; }
  .card .mono { font-size: 12px; }
  .card h3 { font-size: 25px; }
  .card p { font-size: 16px; }
  .card .meta { margin-top: 4px; font-size: 14px; }
  .about { padding-bottom: 88px; }
  .about-body p:first-child { font-size: 19px; margin-bottom: 18px; }
  .contact .wrap { display: block; padding-top: 48px; padding-bottom: 48px; }
  .contact h2 { font-size: 26px; margin-bottom: 12px; }
  .contact p { font-size: 18px; }
  .site-footer .wrap { display: block; font-size: 13px; padding-top: 28px; padding-bottom: 40px; }
  .site-footer .brand-small { margin-bottom: 12px; }
  .notfound { padding: 96px 0 120px; }
  .notfound h1 { font-size: 44px; }
}
