/* Algos & Co. — shared styles for every page */

/* Inter is self-hosted (SIL Open Font License, see fonts/OFL-Inter.txt and fonts/OFL-Playfair.txt) so visitors' browsers never call Google */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/playfair-latin.woff2') format('woff2');
}

/* Light (paper) — default; dark follows the device setting */
:root {
  --bg: #ffffff; --text: #16181d; --muted: #5f636b; --line: #cfd2d8;
  --gold: #a4854a; --blue: #2f58c8; --hatch: rgba(47,88,200,.14); --box: #ffffff;
  --grad: linear-gradient(90deg, #b8975a 0%, #9a9688 42%, #3a63cf 78%, #2a50c0 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0e13; --text: #ecebe6; --muted: #9a9ea8; --line: #2c3039;
    --gold: #c9a875; --blue: #6f93ff; --hatch: rgba(111,147,255,.16); --box: #11141b;
    color-scheme: dark; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: Inter, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* logo — same mark as the original site */
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 500; letter-spacing: -.005em; }
.logo .glyph { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; font-size: 11px; font-weight: 500; }
.logo .amp { color: var(--muted); }

/* type */
.label { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.label.blue { color: var(--blue); }
.label.muted { color: var(--muted); }
/* padding-right keeps the last letter's overhang (the "s" in Certs) inside the gradient box */
.giant { display: block; width: fit-content; padding: 0 .1em .08em 0; font-weight: 800; letter-spacing: -.055em; line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h { font-size: 22px; line-height: 1.2; font-weight: 400; letter-spacing: -.01em; }
.p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* rule with short blue accent */
.rule { position: relative; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.rule::before { content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 2px; background: var(--blue); }

/* header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.nav .left { display: flex; align-items: center; gap: 14px; }
.nav .tagline { display: none; }
@media (min-width: 640px) { .nav .tagline { display: inline; } }
.nav .links { display: none; gap: 26px; }
.nav .links a:hover { color: var(--blue); }
@media (min-width: 900px) { .nav .links { display: flex; } }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--text); padding: 9px 14px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--box); color: var(--text); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.solid { background: var(--text); color: var(--bg); }
.btn.solid:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* sections */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.sec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.split { display: grid; gap: 16px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* hero */
.hero .giant { font-size: clamp(84px, 19vw, 230px); margin-top: 22px; }
.hero-diagram { margin-top: 48px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* boxes */
.box { border: 1px solid var(--text); background: var(--box); }
.hatch { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 7px); }
svg text { font-family: Inter, sans-serif; }

/* tracks */
.tracks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
@media (min-width: 720px) { .tracks { grid-template-columns: 1fr 1fr; } }
.track { background: var(--bg); padding: 28px 24px 30px; }
.track .giant { font-size: clamp(60px, 9vw, 104px); margin-top: 14px; }
.list { margin-top: 22px; display: grid; gap: 6px; }
.list li { position: relative; list-style: none; display: grid; grid-template-columns: 34px 1fr; border: 1px solid var(--text); background: var(--box); }
.list li:first-child { border-color: var(--blue); }
.list li:first-child .txt { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 7px); }
.list .n { display: grid; place-items: center; border-right: 1px solid var(--text); font-size: 12px; font-weight: 600; color: var(--blue); }
.list li:first-child .n { border-color: var(--blue); }
.list .txt { padding: 7px 10px; }
.list .t { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.list .d { font-size: 11px; color: var(--gold); margin-top: 1px; }

/* calendar */
.events { margin-top: 30px; border-top: 1px solid var(--text); }
.ev { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ev.past { opacity: .55; }
@media (min-width: 720px) { .ev { grid-template-columns: 110px 1fr 260px 120px; } }
.ev .day { font-weight: 800; font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.ev .title { font-weight: 600; }
.ev .venue, .ev .tag { display: none; }
@media (min-width: 720px) { .ev .venue { display: block; } .ev .tag { display: block; text-align: right; } }
.pill { display: inline-block; border: 1px solid var(--blue); color: var(--blue); padding: 3px 8px; margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; }
.pill.gold { border-color: var(--gold); color: var(--gold); }
.links-inline { margin-top: 6px; display: flex; gap: 14px; }
.links-inline a { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.links-inline a:hover { text-decoration: underline; }
.empty { padding: 26px 0; border-bottom: 1px solid var(--line); }

/* pass */
.tiers { display: grid; gap: 10px; margin-top: 30px; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { padding: 20px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.tier.on { border-color: var(--blue); }
.tier .soon { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 18px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--text); }
summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 20px; font-size: 15px; }
summary::-webkit-details-marker { display: none; }
summary .n { color: var(--blue); font-weight: 600; font-size: 12px; padding-top: 2px; }
summary .plus { color: var(--muted); transition: transform .2s; }
details[open] summary .plus { transform: rotate(45deg); }
details p { margin: 10px 0 0 40px; }

/* closing call to action */
.join { display: flex; flex-direction: column; gap: 22px; padding: 32px 28px; }
@media (min-width: 720px) { .join { flex-direction: row; align-items: center; justify-content: space-between; } }
.join .h { font-size: 26px; margin-top: 10px; }

/* legal pages */
.legal .giant { font-size: clamp(64px, 12vw, 150px); margin-top: 14px; }
.prose { max-width: 68ch; margin-top: 36px; }
.prose h2 { font-size: 17px; font-weight: 600; margin: 34px 0 10px; }
.prose p, .prose li { font-size: 15px; line-height: 1.65; color: var(--muted); }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 10px 0 0 18px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }

/* footer */
footer { padding: 26px 0 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a:hover { color: var(--blue); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* logo lockup: wordmark + tagline side by side on desktop, stacked on phones */
.logo .glyph.pf { font-family: "Playfair Display", Georgia, serif; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; padding-bottom: 1px; }
.lockup { display: flex; align-items: baseline; gap: 14px; }
.lockup .tagline { display: inline; font-family: Inter, -apple-system, system-ui, sans-serif; }
@media (max-width: 639px) {
  .lockup { flex-direction: column; align-items: flex-start; gap: 3px; }
  .lockup .name { line-height: 1; }
  .lockup .tagline { font-size: 8.5px; letter-spacing: .18em; }
}

/* phones: wordmark only, tagline hidden */
@media (max-width: 639px) {
  .lockup .tagline { display: none; }
  .lockup .name { line-height: inherit; }
}

/* Whole list row is tappable when the item has a link */
.list .item-link { color: inherit; text-decoration: none; }
.list .item-link::after { content: ""; position: absolute; inset: 0; }
.list li:has(.item-link):hover { border-color: var(--gold); }
