/* Oak House Labs. Colors come from Curvelog's asset catalog so the site
   and the app feel like one thing. */

@font-face {
  font-family: "Besley";
  src: url("/fonts/besley-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6fa;
  --surface: #ffffff;
  --ink: #1b1826;
  --muted: #5f5a70;
  --rule: #e3e0ec;
  --violet: #7e22ce;
  --roast: #7a5233;
  --serif: "Besley", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d17;
    --surface: #1c1928;
    --ink: #ece9f5;
    --muted: #a7a2b8;
    --rule: #2b2739;
    --violet: #c084fc;
    --roast: #c48e5e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.375rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.0625rem; margin: 0 0 0.25rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

a { color: var(--violet); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Top line on every page except home: the way back to the studio. */
.studio {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--roast);
  text-decoration: none;
}
.studio:hover { text-decoration: underline; }

/* App name beside its icon, above a Curvelog page's title. */
.app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
}
.app img {
  width: 3rem;
  height: 3rem;
  border-radius: 22%;
  /* The icon's own background is near the dark page color; the ring keeps its edge. */
  box-shadow: 0 0 0 1px var(--rule);
}

.date { color: var(--muted); margin-bottom: 2rem; }

/* The privacy summary: the one part most people read. */
.summary {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 0 0 1rem;
}
.summary h2 { margin-top: 0; }

.qa { margin-bottom: 1.5rem; }
h2 + .qa { margin-top: 1rem; }
.qa p { margin: 0; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
footer p { margin: 0 0 0.5rem; }

/* Home */

.home h1 {
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--roast);
  margin-bottom: 1rem;
}
.lede { font-size: 1.1875rem; color: var(--muted); margin-bottom: 3.5rem; }

.curve { margin: 0 0 2rem; }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; }
.curve .line {
  fill: none;
  stroke: var(--violet);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.curve .base { stroke: var(--rule); stroke-width: 1; }
.curve .end {
  text-align: right;
  color: var(--violet);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Column widths match each phase's share of the brew's time on the curve. */
.curve .phases {
  display: grid;
  grid-template-columns: 19fr 29fr 52fr;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.curve .phases span { border-left: 1px solid var(--rule); padding-left: 0.5rem; }

/* The scale draws a brew as it happens; the curve does the same, once. */
@media (prefers-reduced-motion: no-preference) {
  .curve .line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: pour 2.6s cubic-bezier(0.45, 0, 0.25, 1) 0.3s forwards;
  }
  .curve .end { opacity: 0; animation: show 0.4s ease-out 2.6s forwards; }
}
@keyframes pour { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
