@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f7f3eb;
  --ink: #172f2b;
  --muted: #4a5851;
  --red: #a9352b;
  --line: #c9c4b8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #ca5848; outline-offset: 5px; }
h1, h2, h3, figure, p { margin: 0; }
h1, h2, .brand h3, .related h3 { font-family: var(--serif); font-weight: 400; line-height: .96; }
section[id] { scroll-margin-top: 20px; }
.frame { width: min(100% - 104px, 1232px); margin-inline: auto; }
.skip { position: absolute; inset: .6rem auto auto .6rem; padding: .6rem 1rem; background: var(--paper); z-index: 4; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.wordmark { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; font-size: 1.15rem; line-height: 1.1; white-space: nowrap; letter-spacing: -.025em; }
.wordmark strong { font-weight: 700; }
.mark { width: 25px; height: 23px; display: inline-flex; align-items: flex-end; gap: 3px; transform: skewY(-12deg); }
.mark i { width: 5px; height: 16px; background: var(--ink); }
.mark i:nth-child(2) { height: 21px; }
.mark i:nth-child(3) { height: 19px; background: var(--red); }
.bar nav, .footer-links { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.8rem); font-size: .92rem; }
.bar nav a, .footer-links a { text-decoration: none; }
.bar nav a:hover, .footer-links a:hover { text-decoration: underline; }
.contact-link { text-decoration: none; border: 1px solid var(--line); padding: .47rem .85rem; font-size: .91rem; }
.contact-link:hover { border-color: var(--ink); }
.contact-link span { padding-left: .35rem; }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(32px, 6vw, 98px); padding-block: 55px 66px; }
.hero-copy { padding: .7rem 0 1.75rem; }
.label { display: flex; align-items: center; gap: .6rem; color: var(--red); font-size: .74rem; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.label span { display: inline-block; width: 30px; height: 1px; background: currentColor; flex: none; }
.hero h1 { margin: 20px 0 24px; font-size: clamp(4.4rem, 9.7vw, 9.1rem); line-height: .82; letter-spacing: -.047em; }
.hero h1 strong { font-weight: 400; }
.hero h1 strong span { color: var(--red); }
.hero-description { max-width: 37ch; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.16rem); margin: 0 0 28px; }
.hero-art img { aspect-ratio: 1.19; width: 100%; height: auto; object-fit: cover; object-position: 69% center; background: #19332e; }
figcaption { padding-top: .55rem; color: var(--muted); font-size: .73rem; }
.hero-art figcaption { text-align: right; }
.button, .text-link { font-weight: 700; font-size: .89rem; display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; }
.button { min-height: 46px; padding: .7rem 1rem; transition: background-color .18s ease, color .18s ease; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #2a473f; }
.button-light { background: #faf3e6; color: var(--ink); }
.button-light:hover { background: #fff; }
.text-link { border-bottom: 1px solid currentColor; padding-block: .16rem; }
.text-link:hover { color: var(--red); }
.hero-link { margin: .55rem 0 .45rem .85rem; }

.history { background: #ede7db; border-block: 1px solid #ded5c7; padding: 68px 0 64px; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 2rem; margin-bottom: 36px; }
.section-head h2, .press h2, .contact h2 { font-size: clamp(3.2rem, 6.25vw, 6rem); letter-spacing: -.024em; margin-top: 11px; }
.section-head > p { max-width: 42ch; color: var(--muted); justify-self: end; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; border-top: 1px solid #aaa99d; padding: 16px .65rem 10px 0; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: absolute; left: 0; top: -4px; }
.timeline time { display: block; color: var(--red); font: 3.4rem/.95 var(--serif); letter-spacing: -.02em; }
.timeline h3 { font-size: 1rem; line-height: 1.3; margin: .62rem 0 .34rem; }
.timeline p { font-size: .88rem; color: var(--muted); line-height: 1.52; }
.timeline .turning-point { background: #dfd7c8; padding-left: 12px; }
.timeline .turning-point::before { left: 12px; }
.sources { margin-top: 23px; padding-top: .65rem; border-top: 1px solid #bcb3a4; font-size: .83rem; }
.sources summary, .cookie-panel summary { cursor: pointer; font-weight: 700; }
.sources ul { margin-bottom: 0; padding-left: 1.2rem; color: var(--muted); }

.brands { padding-block: 73px; }
.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.brand {
  --accent: #884039;
  --card: #efe3da;
  display: flex; flex-direction: column; grid-column: span 2; min-width: 0;
  min-height: 254px; padding: 20px 23px 23px; background: var(--card); border-top: 3px solid var(--accent);
}
.brand:nth-child(n + 4) { grid-column: span 3; }
.brand-title { display: flex; min-height: 53px; align-items: center; justify-content: space-between; gap: .7rem; }
.brand-title img { width: 100px; height: 49px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.brand-title .everest-logo { width: 52px; height: 69px; mix-blend-mode: normal; }
.brand-title span { font-size: .66rem; font-weight: 700; color: var(--accent); letter-spacing: .095em; text-transform: uppercase; line-height: 1.3; text-align: right; max-width: 13ch; }
.brand h3, .related h3 { font-size: clamp(2.1rem, 3.55vw, 3.45rem); letter-spacing: -.015em; margin: .8rem 0 .56rem; }
.brand p, .related p:not(.label) { color: var(--muted); font-size: .94rem; line-height: 1.52; margin-bottom: .95rem; max-width: 45ch; }
.brand .text-link { align-self: flex-start; margin-top: auto; }
.tone-green { --accent: #325d47; --card: #e3e9de; }
.tone-gold { --accent: #715326; --card: #ede6d5; }
.tone-blue { --accent: #315568; --card: #e1eaeb; }
.tone-orange { --accent: #834724; --card: #f0e2d4; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.related article { padding: 20px 22px 23px; border: 1px solid var(--line); }
.related .label { font-size: .68rem; }
.related h3 { margin-top: .55rem; }

.press { background: var(--ink); color: #fff6e8; padding: 62px 0; }
.press-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(35px, 7vw, 109px); align-items: center; }
.press figure img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.press .label { color: #ffb6a4; }
.press figcaption, .press p:not(.label) { color: #e1e4d8; }
.press h2 { margin-bottom: 14px; }
.press .button { margin: 1.25rem 0 1.4rem; }
.press-links a { display: flex; justify-content: space-between; gap: 1rem; color: #fff6e8; font-size: .89rem; text-decoration: none; padding: .55rem 0; border-top: 1px solid #527068; }
.press-links a:hover, .press figcaption a:hover { text-decoration: underline; }
.contact { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.6rem; align-items: end; padding-block: 54px 60px; }
.contact h2 { font-size: clamp(2.6rem, 5vw, 4.1rem); }
.contact h3 { font-size: 1rem; margin-bottom: .35rem; }
.contact address { font-style: normal; color: var(--muted); }
.contact a { display: table; }
.site-footer { border-top: 1px solid var(--line); }
.footer-links { gap: clamp(.7rem, 2.3vw, 1.8rem); font-size: .81rem; }
.cookie-settings { color: inherit; cursor: pointer; padding: .1rem 0; border: 0; border-bottom: 1px solid currentColor; background: none; }
.cookie-panel { color: var(--ink); position: fixed; z-index: 3; inset: auto auto 18px 18px; width: min(384px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); overflow: auto; background: #fffaf0; border: 1px solid #aeb4a3; padding: 16px 18px; box-shadow: 0 10px 30px #15251f35; }
.cookie-panel h2 { font: 1rem/1.2 var(--sans); font-weight: 700; margin-bottom: .4rem; }
.cookie-panel p, .cookie-panel summary { font-size: .82rem; }
.cookie-panel details { margin-top: .38rem; }
.cookie-panel details p { margin-top: .38rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.cookie-actions button { padding: .42rem .65rem; min-height: 39px; color: var(--ink); background: transparent; border: 1px solid var(--ink); font-size: .79rem; font-weight: 700; cursor: pointer; }
.cookie-actions button:hover { background: #e7e4d9; }
.error-page { min-height: 70vh; padding: 12vh 0; }
.error-page h1 { font-size: clamp(3rem, 8vw, 7rem); margin: 1rem 0; }
.error-page .button { margin-top: 1rem; }

@media (max-width: 1020px) {
  .frame { width: min(100% - 64px, 1232px); }
  .hero { gap: 33px; }
  .brand { padding-inline: 16px; }
  .hero-link { margin-left: 0; margin-right: .4rem; }
  .hero .button { margin-right: .75rem; }
  .contact { grid-template-columns: 1fr 1fr; }
  .contact > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 690px) {
  .frame { width: min(100% - 34px, 1232px); }
  .bar { min-height: 58px; flex-wrap: wrap; gap: .75rem; padding-block: .75rem; }
  .bar nav { order: 2; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .55rem; }
  .contact-link { font-size: .8rem; }
  .hero { grid-template-columns: 1fr; gap: 1rem; padding-block: 29px 35px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(4.2rem, 14vw, 6.2rem); margin-block: 16px; }
  .hero-description { margin-bottom: 16px; }
  .hero-art img { aspect-ratio: 1.28; }
  .section-head { grid-template-columns: 1fr; gap: .75rem; margin-bottom: 24px; }
  .section-head > p { justify-self: start; }
  .history, .brands, .press, .contact { padding-block: 40px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem .9rem; }
  .timeline time { font-size: 2.78rem; }
  .timeline p { font-size: .83rem; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand, .brand:nth-child(n + 4) { grid-column: auto; min-height: 0; }
  .related { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .press figure { order: 2; }
  .contact { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-links { width: 100%; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
