@import url("formula.css");

@font-face { font-family: Fixel; src: url(assets/fixel.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: FixelDisplay; src: url(assets/fixel-display.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Lato; src: url(assets/Lato-Regular.ttf) format("truetype"); font-display: swap; }
:root { --green: #283c3b; --cream: #eddcbb; --muted: #cac7b3; --line: #eddcbb42; }
* { box-sizing: border-box; }
html { background: var(--green); color: var(--cream); font-family: Fixel, sans-serif; }
body, p, h1, h2, figure { margin: 0; }
main { width: min(100%, 1600px); margin-inline: auto; padding: clamp(30px, 5vw, 78px) 6% 38px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2 { font-family: FixelDisplay, Fixel, sans-serif; font-weight: 400; line-height: 1.02; }
h1 { font-size: clamp(38px, 7vw, 105px); letter-spacing: -.05em; }
h2 { font-size: clamp(29px, 4.2vw, 59px); letter-spacing: -.037em; }
.eyebrow { margin-bottom: 14px; color: var(--muted); font-size: clamp(13px, 1.3vw, 17px); }
.cover-image { width: 100%; margin-top: clamp(24px, 3vw, 44px); }
.architecture, .case-section { margin-top: clamp(54px, 7vw, 108px); }
.credits { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; color: var(--muted); font-size: 13px; }
.credits summary { cursor: pointer; }
.credits p { margin-top: 8px; line-height: 1.55; }
.palette, .scale-study, .repertoire, .poster-image, .applications { margin-top: clamp(20px, 3vw, 42px); }
.palette { display: grid; grid-template-columns: 1fr 1fr .94fr; }
.swatch { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 5px; padding: clamp(12px, 2vw, 26px); font-size: clamp(13px, 1.7vw, 23px); }
.swatch code { font: .68em/1.3 Lato, sans-serif; letter-spacing: .055em; }
.primary-green { background: #283c3b; box-shadow: inset 0 0 0 1px var(--line); }
.primary-cream { color: var(--green); background: #eddcbb; }
.palette-accents { display: grid; grid-template-rows: repeat(3, 1fr); }
.palette-accents .swatch { min-height: clamp(78px, 8vw, 121px); }
.accent-green { background: #3c686b; color: #f6eacf; }
.accent-plum { background: #312234; }
.accent-red { background: #82202c; color: #f8eccf; }
.palette-note { margin: 9px 0 15px; color: var(--muted); font-size: 13px; }
.type-specimen { background: var(--cream); color: var(--green); display: grid; grid-template-columns: 1.5fr 1fr; padding: clamp(20px, 4vw, 58px); gap: 20px; align-items: end; font-family: Lato, sans-serif; }
.type-sample { font-size: clamp(32px, 4.8vw, 70px); line-height: 1.02; letter-spacing: -.048em; }
.type-details p:first-child { font-size: clamp(19px, 2vw, 31px); margin-bottom: 11px; }
.alphabet { max-width: 30ch; overflow-wrap: anywhere; font-size: clamp(14px, 1.45vw, 21px); letter-spacing: .02em; line-height: 1.55; }
.scale-study { display: grid; grid-template-columns: .86fr 1.14fr; min-height: clamp(195px, 37vw, 525px); }
.scale-large { display: grid; place-items: center; background: #312234; }
.scale-large img { height: clamp(126px, 25vw, 350px); width: auto; }
.scale-pattern { background-color: #203332; position: relative; isolation: isolate; }
.scale-pattern::before {
  position: absolute; inset: 0; content: "";
  background: url("assets/pattern.svg") repeat center / clamp(43px, 7.8vw, 112px) auto;
}
.logo-versions { margin-top: clamp(28px, 4vw, 65px); padding-top: 18px; border-top: 1px solid var(--line); }
.logo-versions h2 { font-family: Fixel, sans-serif; font-size: clamp(19px, 2.3vw, 29px); letter-spacing: -.024em; }
.versions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 1.5vw, 22px); margin-top: 14px; }
.versions-grid figure { display: grid; grid-template-rows: 1fr auto; background: var(--cream); color: var(--green); min-height: clamp(100px, 13vw, 184px); padding: clamp(9px, 2.3vw, 32px); align-items: center; row-gap: 12px; }
.versions-grid img { width: min(100%, 280px); }
.versions-grid figcaption { font-size: clamp(11px, 1.1vw, 15px); }
.repertoire a { display: block; width: min(100%, 1120px); margin-inline: auto; cursor: zoom-in; }
.repertoire img { width: 100%; }
.poster-image { width: 100%; }
.applications { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 18px); }
.applications img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
footer { margin-top: clamp(45px, 7vw, 100px); padding-top: 19px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
footer strong { color: var(--cream); font-weight: 500; }
dialog { border: 1px solid var(--line); background: var(--green); color: var(--cream); padding: 12px; max-width: 96vw; max-height: 94dvh; }
dialog::backdrop { background: #121b1be8; }
.viewer-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 14px; margin-bottom: 10px; }
.viewer-toolbar button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 8px 0; }
dialog img { max-height: 77dvh; width: auto; margin-inline: auto; }
.repertoire-action { display: block; margin-top: 9px; text-align: right; color: var(--muted); font-size: 14px; }
.viewer-image { overflow: auto; max-height: 77dvh; }
dialog.zoomed { width: min(95vw, 1440px); }
.zoomed .viewer-image img { width: max(900px, 100%); max-width: none; max-height: none; margin: 0; }
.viewer-toolbar { gap: 12px; }
.viewer-toolbar form { margin-left: auto; }
@media (max-width: 640px) {
  main { padding-inline: 5.5%; }
  .palette { grid-template-columns: 1fr 1fr; }
  .palette > .swatch { min-height: 108px; }
  .palette-accents { grid-column: 1 / -1; grid-template: 1fr / repeat(3, minmax(0, 1fr)); }
  .palette-accents .swatch { font-size: 12px; }
  .type-specimen { grid-template-columns: 1fr; }
  .applications { grid-template-columns: 1fr; }
}
