/* bierlich. shared parts: bar, mark, buttons, mast footer, price figure, sheet, questions, reveal, legal page. Tokens only; every site sets its own in tokens.css. */

/* Skip link */
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 400; padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-control); }
.skip:focus-visible { top: var(--space-sm); }

/* Bar: edge-aligned, the mark left, a few links, one action */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); border-bottom: 1px solid var(--color-rule); }
@supports (backdrop-filter: blur(1px)) { .bar { backdrop-filter: blur(14px) saturate(1.3); } }
.bar > .container { display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; }
.mark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; margin-right: auto; }
.mark svg { width: 40px; height: 40px; flex: none; }
.mark .mark-plate { fill: var(--color-mark, var(--color-ink)); } .mark .mark-b { fill: var(--color-mark-ink, var(--color-paper)); } .mark .mark-dot { fill: var(--color-accent); }
.mark b { display: block; font-family: var(--font-display); font-weight: 680; font-size: 1.3125rem; letter-spacing: -0.03em; line-height: 1; }
.mark small { display: block; margin-top: 3px; font-size: var(--text-xs); color: var(--color-muted); line-height: 1.2; }
.bar nav ul { display: flex; gap: var(--space-lg); }
.bar nav a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; padding-block: var(--space-xs); background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size var(--dur-short) var(--ease-out); }
.bar nav a:hover, .bar nav a[aria-current="page"] { background-size: 100% 1px; }
@media (max-width: 60rem) { .bar nav { display: none; } .bar > .container { gap: var(--space-md); min-height: 64px; } }

/* Buttons: one primary style per site */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius-control); font-weight: 600; font-size: var(--text-md); line-height: 1; text-decoration: none; cursor: pointer; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short), color var(--dur-short), border-color var(--dur-short), box-shadow var(--dur-short); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-short) var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(0.98); transition-duration: var(--dur-micro); }
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 28%, transparent); }
.btn--quiet { border-color: var(--color-ink); background: transparent; color: var(--color-ink); }
.btn--quiet:hover { background: var(--color-ink); color: var(--color-paper); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.22em; transition: text-decoration-color var(--dur-short); }
.link:hover { text-decoration-color: currentColor; }

/* Price figure: the price is the offer, so it is set huge */
.price { display: block; font-family: var(--font-display); font-weight: var(--display-weight, 650); font-size: var(--text-figure); line-height: 0.9; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.22em; font-weight: 500; letter-spacing: -0.01em; color: var(--color-muted); margin-left: 0.25em; }

/* Sheet: facts and prices on hairlines, never cards in cards */
.sheet { width: 100%; border-collapse: collapse; border-top: 1px solid var(--color-ink); }
.sheet th, .sheet td { padding: var(--space-md) var(--space-md) var(--space-md) 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--color-rule); font-weight: 400; }
.sheet th { font-weight: 600; }
.sheet td.num { text-align: right; padding-right: 0; font-weight: 600; white-space: nowrap; }
.sheet caption { text-align: left; padding-bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.rows > li:last-child { border-bottom: 1px solid var(--color-rule); }
@media (max-width: 40rem) { .rows > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); } }

/* Questions */
.faq { border-top: 1px solid var(--color-ink); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-lg); cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: var(--text-title); letter-spacing: -0.02em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-weight: 400; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent-ink); }
.faq details > :not(summary) { padding-bottom: var(--space-lg); max-width: 65ch; color: var(--color-muted); }

/* Picture frame */
.picture { margin: 0; border-radius: var(--radius-picture); overflow: hidden; background: var(--color-paper-2); }
.picture img { width: 100%; height: 100%; object-fit: cover; }
figcaption, .caption { margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }

/* One reveal: content is visible without scripting; the script adds the start state */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* Mast footer: the wordmark over the links */
.foot { margin-top: var(--section-gap); background: var(--color-foot, var(--color-ink)); color: var(--color-foot-ink, var(--color-paper)); padding-block: var(--space-3xl) var(--space-xl); }
.foot a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size var(--dur-short) var(--ease-out); }
.foot a:hover { background-size: 100% 1px; }
.foot-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 19vw, 19rem); line-height: 0.8; letter-spacing: -0.06em; margin: 0 0 var(--space-2xl) -0.04em; overflow-wrap: normal; }
.foot-word span { color: var(--color-foot-accent, var(--color-accent)); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); border-top: 1px solid color-mix(in oklab, currentColor 28%, transparent); padding-top: var(--space-xl); }
.foot-grid > * { grid-column: span 3; }
.foot-grid > .foot-say { grid-column: span 6; }
.foot h2 { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-bottom: var(--space-sm); font-family: var(--font-body); opacity: 0.66; }
.foot li { padding-block: 3px; }
.foot-say p { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.2; max-width: 22ch; margin-bottom: var(--space-md); }
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-2xl); font-size: var(--text-sm); opacity: 0.75; }
.foot-legal :last-child { margin-left: auto; }
@media (max-width: 60rem) { .foot-grid > *, .foot-grid > .foot-say { grid-column: span 6; } }
@media (max-width: 40rem) { .foot-grid > *, .foot-grid > .foot-say { grid-column: 1 / -1; } .foot-legal :last-child { margin-left: 0; } }

/* Legal and long text pages */
.legal { padding-block: var(--space-3xl) var(--space-2xl); }
.legal h1 { font-size: var(--text-display-s); margin-bottom: var(--space-xl); }
.legal h2 { font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.2; margin: var(--space-xl) 0 var(--space-sm); }
.legal h3 { font-size: var(--text-lg); margin: var(--space-lg) 0 var(--space-xs); }
.legal p, .legal li { max-width: 70ch; margin-bottom: var(--space-sm); }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal a { text-decoration: underline; }
.foot .btn--quiet { border-color: currentColor; color: inherit; }
.foot .btn--quiet:hover { background: var(--color-foot-ink, var(--color-paper)); color: var(--color-foot, var(--color-ink)); }
