/* Pinzell site. Tokens follow the Pinzell design system (docs/design/README.md). */

@font-face { font-family: "Roboto"; src: url("fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --forest: #274A3D;
  --forest-2: #3B6352;
  --forest-deep: #1E3A30;
  --forest-card: #31574A;
  --yellow: #F4C964;
  --pale: #D3E5CD;
  --paper: #FEFFF9;
  --ground: #EEF2EA;
  --surface: #FFFFFF;
  --ink: #1D2A24;
  --ink-print: #111111;
  --muted: #4F5E57;
  --line: #C9D6C5;
  --line-soft: #E3EADF;
  --amber-bg: #FBEFC9;
  --amber-ink: #5C4410;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 16px;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--forest); }
a:hover { color: var(--forest-2); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.band--forest :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--forest); margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-js .js-only { display: none !important; }
[hidden] { display: none !important; }

.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* Pills and buttons */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: middle; }
.pill--yellow { background: var(--yellow); color: var(--forest); }
.pill--forest { background: var(--forest); color: var(--paper); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--forest); background: var(--forest); color: var(--paper); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--forest-2); border-color: var(--forest-2); color: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn--alt { background: transparent; color: var(--forest); }
.btn--alt:hover { background: var(--pale); color: var(--forest); border-color: var(--forest); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--forest); }
.btn--yellow:hover { background: #F7D683; border-color: #F7D683; color: var(--forest); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.logo__mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); }
.logo__word { font-family: var(--wordmark); font-weight: 700; font-size: 24px; letter-spacing: -0.04em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; font-weight: 700; }
.nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--yellow); }
.site-header__end { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { display: inline-grid; place-items: center; min-width: 44px; min-height: 38px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.langs a[aria-current="true"] { background: var(--forest); color: var(--paper); }

/* Hero */
.hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.announce { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--pale); color: var(--forest); text-decoration: none; font-size: 14px; font-weight: 700; max-width: 100%; }
.announce .i { width: 16px; height: 16px; }
.hero__art { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.hero__stack { position: relative; width: 100%; max-width: 460px; }
.hero__stack::before { content: ""; position: absolute; inset: 24px -16px -16px 24px; background: var(--yellow); border-radius: 28px; }

/* Sample quote */
.quote { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 28px 24px; box-shadow: 0 18px 40px rgba(39, 74, 61, 0.14); display: flex; flex-direction: column; gap: 16px; font-size: 13px; color: var(--ink-print); }
.quote__head { display: flex; justify-content: space-between; gap: 12px; }
.quote__head div { display: flex; flex-direction: column; gap: 2px; }
.quote__head strong { font-size: 15px; }
.quote__head span { color: var(--muted); }
.quote__ref { text-align: right; }
.quote__client { border-top: 2px solid var(--ink-print); padding-top: 10px; color: var(--muted); }
.quote__client strong { color: var(--ink-print); }
.quote table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.quote th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 0; }
.quote td { padding: 8px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.quote .n { text-align: right; white-space: nowrap; padding-left: 12px; }
.quote__totals { align-self: flex-end; width: 230px; max-width: 100%; margin: 0; display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.quote__totals div { display: flex; justify-content: space-between; gap: 12px; }
.quote__totals dd { margin: 0; white-space: nowrap; }
.quote__grand { border-top: 2px solid var(--ink-print); padding-top: 6px; font-weight: 700; font-size: 15px; }
.quote figcaption { display: flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 700; font-size: 12px; }
.quote figcaption .i { width: 16px; height: 16px; }

/* Bands */
.band { padding: 80px 0; }
.band--ground { background: var(--ground); }
.band--forest { background: var(--forest); color: var(--paper); }
.band--forest h2 { color: var(--paper); }
.band--yellow { background: var(--yellow); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head--row > div { display: flex; flex-direction: column; gap: 12px; }
.section-head h2, .access h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-2); }
.eyebrow--yellow { color: var(--yellow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }

.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--pale); color: var(--forest); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); line-height: 1.55; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--forest); padding-top: 20px; }
.steps__n { font-size: 44px; font-weight: 700; color: var(--forest); line-height: 1; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); line-height: 1.55; }

/* News cards (landing) */
.card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: var(--radius-l); overflow: hidden; text-decoration: none; }
.card:hover { color: var(--ink); }
.card:hover h3 { text-decoration: underline; }
.card__media { height: 180px; }
.card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; line-height: 1.3; }
.card p { color: var(--muted); line-height: 1.55; }

/* Media blocks */
.media { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media img { width: 100%; height: 100%; }
.media--cover img { object-fit: cover; object-position: top center; }
.media--contain img { object-fit: contain; padding: 24px; }
.media--yellow { background: var(--yellow); }
.media--pale { background: var(--pale); }
.media--ground { background: var(--ground); }
.media--mark { background: var(--yellow); }

/* Meta row: categories and date */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tag { background: var(--pale); color: var(--forest); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

/* Privacy and access */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > .section-head { flex: 1 1 360px; }
.checks { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.55; }
.checks li { display: flex; gap: 12px; }
.checks .i { stroke: var(--forest); stroke-width: 2.2; margin-top: 2px; }
.band--yellow.band { padding: 64px 0; }
.access { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.access > div { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.access p { font-size: 17px; color: var(--forest); }

/* Footer */
.site-footer { background: var(--forest-deep); color: var(--pale); font-size: 14px; }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer .logo__word { color: var(--paper); font-size: 18px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer__nav a { color: var(--pale); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__nav a:hover { color: var(--paper); }

/* What's new */
.column { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; gap: 32px; }
.page-head { display: flex; flex-direction: column; gap: 12px; }
.page-head h1, .post--full h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.post--full h1 { font-size: clamp(30px, 5vw, 44px); }
.notice { background: var(--amber-bg); color: var(--amber-ink); border-radius: var(--radius-m); padding: 12px 16px; font-weight: 700; font-size: 15px; }
.next { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 24px; background: var(--ground); }
.next h2 { font-size: 18px; margin-bottom: 8px; }
.next ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab[aria-pressed="true"] { color: var(--forest); border-bottom-color: var(--forest); }
.tab:hover { color: var(--forest); }
.feed { display: flex; flex-direction: column; }
.post { display: flex; flex-direction: column; gap: 14px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.feed .post:first-child { padding-top: 8px; }
.post__media { aspect-ratio: 16 / 9; border-radius: var(--radius-l); border: 1px solid var(--line); }
.post h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post > p { font-size: 17px; line-height: 1.6; }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.feed-more { display: flex; justify-content: center; }
.feed-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.post--full { border-bottom: 0; padding-top: 0; }
.prose { font-size: 17px; line-height: 1.65; display: flex; flex-direction: column; gap: 14px; }
.prose ul { margin: 0; padding-left: 22px; }

/* Root language chooser */
.root__in { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.root h1 { font-size: 20px; }
.root__langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.root__langs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--forest); border-radius: 999px; font-weight: 700; text-decoration: none; }

@media (max-width: 600px) {
  .hero__in { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .band { padding: 56px 0; }
  .quote { padding: 20px 18px; }
  .hero__stack::before { inset: 16px -8px -10px 16px; }
  .post h2 { font-size: 24px; }
}
