:root {
  color-scheme: light;
  --bg: #faf9f6;
  --fg: #191919;
  --muted: #64625e;
  --accent: #ff7130;
  --max-width: 1120px;
  --font: Geologica, Arial, sans-serif;
}

@font-face {
  font-family: Geologica;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("public/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geologica;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("public/geologica-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-synthesis: none;
  font-size: 14.4px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { font-family: var(--font); color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-color: var(--accent); }
main a { text-decoration-color: var(--accent); }
main a:hover { text-decoration-color: var(--fg); }
main a > span[aria-hidden="true"] { color: var(--accent); }
a > span[aria-hidden="true"] { display: inline-block; }
.external-icon { width: 0.85em; height: 0.85em; margin-left: 0.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.05em; flex: 0 0 auto; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 5px; text-decoration: underline; text-decoration-color: var(--accent); }
::selection { background: #ffdec9; color: #191919; }
.container { width: min(var(--max-width), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 24px; z-index: 10; padding: 10px 16px; background: var(--fg); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 105px; border-bottom: 1px solid #b8b5af; }
.brand { display: inline-flex; align-items: center; width: 260px; max-width: 100%; min-width: 0; }
.brand a { display: block; width: 100%; }
.brand img { width: 100%; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 12.6px; }
.site-header nav { font-size: 14.4px; }
nav a { padding-block: 10px; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.site-header nav a[aria-current="page"] { text-decoration-thickness: 2px; }
.eyebrow { font-size: 10.8px; font-weight: 400; line-height: 1.6; letter-spacing: 0.065em; text-transform: uppercase; color: var(--muted); }

/* Homepage */
.hero { padding-block: clamp(48px, 5vw, 78px) 42px; }
.hero-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block: 14px 48px; }
h1 { font-size: clamp(37.8px, 5.49vw, 70.2px); line-height: 1.08; letter-spacing: -0.065em; }
.hero-mark { width: clamp(110px, 14vw, 180px); flex-shrink: 0; }
.hero-notes { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.hero-copy { grid-column: 2; }
.hero-statement { max-width: 610px; font-size: clamp(16.2px, 1.8vw, 19.8px); line-height: 1.55; letter-spacing: -0.025em; }
.hero-attribution { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 30px; color: var(--muted); font-size: 16.2px; }
.hero-attribution a { font-size: 16.2px; font-weight: 600; color: var(--muted); text-decoration: underline; text-decoration-color: var(--accent); }
.hero-attribution a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); }
.section-row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-block: 64px; }
.section-row > .eyebrow { align-self: start; padding-top: 5px; color: var(--fg); font-size: 18px; letter-spacing: -0.02em; text-transform: none; }
.section-content { max-width: 630px; font-size: 16.2px; }
.section-content > p + p { margin-top: 20px; }
.update-date { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 14.4px; }
.update-date svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; }
.section-content > p { color: var(--muted); }
.section-content > .projects-lead { max-width: 32ch; color: var(--fg); font-size: clamp(20px, 2vw, 25px); line-height: 1.4; letter-spacing: -0.025em; }
.text-link { display: inline-block; margin-top: 24px; font-size: 12.6px; }
.section-content > .text-link { font-size: 14.4px; }
.text-link span { display: inline-block; margin-left: 7px; }

/* Interior pages */
.page-heading { padding-block: clamp(88px, 9vw, 128px) 57px; }
.page-body { padding-bottom: 68px; }
.prose p + p { margin-top: 24px; }
.prose p.follow-note { margin-top: 48px; }
.contact-details p + p { margin-top: 28px; }
.prose { max-width: 630px; font-size: 16.2px; line-height: 1.75; overflow-wrap: break-word; }
.contact-email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.contact-email:hover { text-decoration-color: var(--fg); }
.copy-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 4px; padding: 0; vertical-align: middle; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.copy-button[hidden] { display: none; }
.copy-button:hover, .copy-button.is-copied { color: var(--fg); }
.copy-button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.copy-icon, .copy-check { transform-origin: center; transition: opacity 180ms ease, transform 180ms ease; }
.copy-check { opacity: 0; transform: scale(0.6); }
.is-copied .copy-icon { opacity: 0; transform: scale(0.6); }
.is-copied .copy-check { opacity: 1; transform: scale(1); }
.copy-status { font-size: 12.6px; color: var(--muted); }
.copy-status:not(:empty) { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .copy-icon, .copy-check { transition: none; }
}

.site-footer { display: flex; align-items: center; gap: 32px; padding-block: 20px 24px; margin-top: 24px; border-top: 1px solid #b8b5af; background: var(--bg); color: var(--muted); font-size: 10.8px; }
.footer-brand { color: var(--fg); font-size: 12.6px; font-weight: 400; font-style: italic; font-synthesis: style; margin-bottom: 5px; }
.site-footer nav { margin-left: auto; gap: 22px; font-size: 10.8px; color: var(--fg); }
.site-footer nav a { padding-block: 0; text-decoration: none; }
.copyright { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 800px) {
  .container { width: calc(100% - 48px); }
  .site-header { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 14px 10px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; display: flex; width: 100%; justify-content: space-between; gap: 1rem; }
  .hero-mark { width: 110px; }
  .hero-copy, .section-content { min-width: 0; }
  .hero-notes, .section-row { grid-template-columns: 1fr 2fr; gap: 24px; }
  .site-footer { flex-wrap: wrap; gap: 22px; }

  main a > span[aria-hidden="true"],
  .site-footer .footer-external span,
  .text-link span { color: inherit; }

  a > span[aria-hidden="true"] {
    width: 11px;
    height: 11px;
    margin-left: 6px;
    vertical-align: middle;
    font-size: 0;
    line-height: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='%23000'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M7%2017%20L17%207%20M8%207%20h9%20v9'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='%23000'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M7%2017%20L17%207%20M8%207%20h9%20v9'/%3E%3C/svg%3E") no-repeat center / contain;
  }

  .text-link span {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='%23000'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M5%2012%20h14%20M13%206%20l6%206%20-6%206'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='%23000'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M5%2012%20h14%20M13%206%20l6%206%20-6%206'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .site-header { align-items: start; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .hero { padding-block: 67px 24px; }
  .hero-heading { flex-wrap: wrap; margin-block: 20px 30px; }
  .hero h1 { width: 100%; font-size: clamp(28px, 7.65vw, 45.9px); }
  .hero-heading .hero-mark { width: clamp(64px, 16vw, 96px); margin-top: 16px; margin-left: auto; }
  .hero-notes, .section-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { grid-column: auto; }
  .hero-attribution { margin-top: 22px; }
  .section-row { padding-block: 44px 36px; }
  .section-row > .eyebrow { padding: 0; }
  .section-content > p + p { margin-top: 14px; }
  .section-content > .text-link { margin-top: 18px; }
  .page-heading { padding-block: 72px 40px; }
  .page-body { padding-bottom: 30px; }
  .site-footer { margin-top: 12px; }
  .site-footer > .footer-brand { width: 100%; }
  .site-footer nav { margin-left: 0; }
}
