/* majores.store – plain white, flat, set in Hanken Grotesk. Hub, legal pages and project pages. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/hanken-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/hanken-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/hanken-grotesk-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --text: #2b2b2e;
  --text-2: #5f5f63;
  --rule: #e5e5e7;
  --radius: 12px;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 6px; transform: translateY(-200%); }
.skip:focus { transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(100% - 2 * clamp(20px, 5vw, 64px), 1120px); margin-inline: auto; }

/* Header: flat white, one hairline */
.masthead { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: inline-flex; }
.wordmark img { width: auto; height: 18px; }
.bar nav { display: flex; gap: 32px; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.bar nav a:hover { text-decoration: underline; }
@media (max-width: 520px) { .wordmark img { height: 14px; } .bar nav { gap: 20px; } .bar nav a:first-child { display: none; } }

/* Home */
.hero { padding: clamp(4rem, 3rem + 6vw, 8rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 5vw, 4.75rem); line-height: 1.02; letter-spacing: -.04em; }
.lead { margin-top: 20px; max-width: 36em; font-size: 1.25rem; line-height: 1.5; color: var(--text-2); }

/* Project list: one hairline row per project */
.grid { border-top: 1px solid var(--ink); }
.cell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.cell__top { display: contents; }
.cell__top span { font-size: .875rem; color: var(--text-2); }
.cell__name { margin-top: 6px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); overflow-wrap: anywhere; }
.cell__text { margin-top: 6px; color: var(--text); }
.cell__meta { margin-top: 6px; font-size: .875rem; color: var(--text-2); }
.cell__go { display: none; }
.cell:hover { text-decoration: none; }
.cell:hover .cell__name { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 2px; }
@media (min-width: 860px) {
  .cell { grid-template-columns: 48px minmax(0, 1.05fr) minmax(0, 1.25fr) 190px; grid-template-areas: "num name text meta" ". kind text meta"; column-gap: 32px; row-gap: 0; align-items: start; }
  .cell__top span:first-child { grid-area: num; padding-top: .55em; }
  .cell__top span:last-child { grid-area: kind; margin-top: 6px; }
  .cell__name { grid-area: name; margin-top: 0; }
  .cell__text { grid-area: text; margin-top: .35em; }
  .cell__meta { grid-area: meta; margin-top: .45em; text-align: right; }
}
@media (max-width: 859px) { .cell__top span:first-child { display: none; } }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding: 24px 0 40px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--text-2); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a:hover { color: var(--ink); }
.footer [aria-current="page"] { color: var(--ink); }

/* Legal pages */
.legal { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 0; }
.legal__inner { max-width: 44rem; }
.legal__inner h1 { margin-bottom: 36px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
.legal__inner h2 { margin: 40px 0 8px; font-size: 1.25rem; letter-spacing: -.015em; }
.legal__inner p, .legal__inner address, .legal__inner ul { margin-top: 8px; font-style: normal; }
.legal__inner a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.legal__stamp { margin-top: 40px !important; color: var(--text-2); font-size: .9375rem; }
:lang(de) .legal__inner { hyphens: auto; -webkit-hyphens: auto; }

/* Project pages */
.p-hero { padding: clamp(3rem, 2.2rem + 4vw, 6rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.project__n { font-size: .9375rem; color: var(--text-2); }
.project__n a:hover { color: var(--ink); }
.p-hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 1.2rem + 5vw, 4.75rem); line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.p-sub { margin-top: 18px; max-width: 30em; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.project__meta { margin-top: 18px; font-size: .9375rem; color: var(--text-2); }
.project__meta a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.project__meta a:hover { color: var(--ink); }

.abstract { max-width: 46rem; margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem); padding: 20px 0 0; border-top: 1px solid var(--ink); }
.abstract h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.abstract p { margin-top: 10px; color: var(--text); }

.fig img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); }
.fig figcaption { margin-top: 12px; max-width: 52em; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.fig figcaption b { color: var(--ink); font-weight: 600; }
.fig--lead { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.p-figs { max-width: none; display: grid; gap: 40px; }
.p-figs .fig img { width: auto; max-width: 100%; }

.p-section { display: grid; gap: 14px 48px; padding: clamp(2.25rem, 1.8rem + 2vw, 3.5rem) 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .p-section { grid-template-columns: 220px minmax(0, 1fr); } }
.p-section h2 { display: flex; gap: 14px; margin: 0; font-size: 1.125rem; letter-spacing: -.01em; }
.p-section h2 span { color: var(--text-2); font-weight: 400; }
.p-body { max-width: 46rem; }
.p-body p + p, .p-body ul + p, .p-body ol + p, .p-body pre + p { margin-top: 14px; }
.p-body ul, .p-body ol { margin: 12px 0 0; padding-left: 1.4em; }
.p-body li + li { margin-top: 6px; }
.steps li::marker { color: var(--text-2); font-variant-numeric: tabular-nums; }
.feature + .feature { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
.feature h3 { font-size: 1.1875rem; letter-spacing: -.015em; }
.feature p { margin-top: 8px; }
.feature .fig { margin-top: 18px; }
.code { margin: 14px 0 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: #fafafa; color: var(--ink); font-size: .8125rem; line-height: 1.65; }
.specs { margin: 24px 0 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--text-2); }
.specs dd { margin: 0; color: var(--ink); }
.cite { margin-top: 20px; font-size: .9375rem; color: var(--text-2); }
.cite a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.term { display: inline-block; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 8px; font-family: var(--mono); font-size: .875rem; }
