@import url('assets/fonts/type.css');
@import url('assets/devre-zemini.css?v=6f8126ede4');

:root {
  color-scheme: dark;
  --base: #121314;
  --panel: #191a1c;
  --raised: #242427;
  --text: #f5f1eb;
  --muted: #aba8a1;
  --line: #343236;
  --brand: #793340;
  --brand-hover: #934856;
  --accent: #e3979b;
  --rose: var(--accent);
  --rose-edge: #9a555f;
  --title: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--base);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; }
main { flex: 1; min-inline-size: 0; }
a { color: inherit; text-decoration: none; }
img, picture, svg, video { max-inline-size: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--title); line-height: 1.1; font-weight: 700; }
h1, h2 { text-wrap: balance; }
.wrap { width: min(calc(100% - clamp(32px, 7vw, 96px)), 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 12px; left: 12px; padding: 10px 14px; background: var(--raised); transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 25px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.22rem/1 var(--title); letter-spacing: -.052em; white-space: nowrap; }
.brand > span:last-child { margin-left: .19em; }
.mark { flex: 0 0 29px; width: 29px; height: 29px; margin-right: 10px; background: url("assets/mark.png?v=gst-bordo") center / contain no-repeat; }
.main-nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(13px, 3.2vw, 36px); }
.main-nav a, .footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.main-nav a:hover, .footer nav a:hover, .main-nav a[aria-current] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .42em; }
.footer { border-top: 1px solid var(--line); }
.footer-copyright { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.footer nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .42em; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 8px 15px; color: var(--text); background: var(--brand); border: 1px solid var(--rose-edge); font-weight: 700; }
.button:hover { background: var(--brand-hover); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: .27em; font-weight: 650; }
.text-link:hover { color: var(--text); }
.eyebrow { color: var(--accent); font: 600 .875rem var(--mono); }

.homepage :where(section[id]) { scroll-margin-top: 16px; }
.front-intro { padding-block: clamp(34px, 6vw, 74px) clamp(24px, 3.2vw, 41px); border-bottom: 1px solid var(--line); }
.front-intro h1 {
  font-size: clamp(2.45rem, 7.7vw, 7.15rem);
  letter-spacing: -.08em;
  line-height: .97;
  text-wrap: pretty;
}
.front-summary { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 6px 20px; margin-top: clamp(16px, 2.7vw, 28px); }
.front-summary > p { max-width: 54ch; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.24rem); line-height: 1.57; }
.front-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; }

.front-stories {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 4.4vw, 60px);
  padding-block: clamp(20px, 3vw, 38px) clamp(38px, 6vw, 80px);
}
.lead-story, .story-rail, .rail-story > div { min-inline-size: 0; }
.lead-story-link { display: block; }
.lead-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 17px;
  aspect-ratio: 17 / 10;
  object-fit: cover;
  object-position: center 48%;
  border: 1px solid var(--line);
  background: var(--panel);
}
.photo-credit { max-inline-size: 100%; margin-top: .5rem; color: var(--muted); font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.photo-credit a { display: inline-block; padding-block: .2rem; text-decoration: underline; text-underline-offset: .22em; }
.photo-credit a:hover { color: var(--text); }
.front-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .8rem;
  color: var(--muted);
  font: 500 .8125rem/1.45 var(--mono);
}
.front-meta > span:first-child { color: var(--accent); }
.lead-story h2 { margin-top: 7px; font-size: clamp(1.85rem, 3.3vw, 3.2rem); letter-spacing: -.055em; line-height: 1.05; text-wrap: pretty; }
.lead-story h2 + p { max-width: 59ch; margin-top: 10px; color: var(--muted); line-height: 1.6; }
.lead-story-link:is(:hover, :focus-visible) h2, .rail-story:is(:hover, :focus-visible) h3 { color: var(--accent); }
.story-rail { border-left: 1px solid var(--line); padding-left: clamp(16px, 3.3vw, 40px); }
.story-rail > h2 { padding-bottom: 13px; font-size: 1.3rem; letter-spacing: -.034em; }
.story-rail ul, .front-index ul { padding: 0; margin: 0; list-style: none; }
.story-rail li { border-block-start: 1px solid var(--line); }
.story-rail li:last-child { border-bottom: 1px solid var(--line); }
.rail-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.25rem, .49fr);
  align-items: start;
  gap: clamp(10px, 1.5vw, 18px);
  min-height: 44px;
  padding-block: clamp(13px, 2vw, 20px);
}
.rail-story h3 { margin-top: 6px; font-size: clamp(1.125rem, 1.75vw, 1.48rem); line-height: 1.16; letter-spacing: -.034em; overflow-wrap: anywhere; text-wrap: pretty; }
.rail-image { display: block; width: 100%; min-inline-size: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
img.rail-image, .rail-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.story-rail .text-link { margin-top: 9px; }

.front-index, .front-project, .front-approach {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(20px, 4.4vw, 60px);
  border-top: 1px solid var(--line);
  padding-block: clamp(30px, 5.5vw, 72px);
}
.front-index section, .project-copy { min-inline-size: 0; }
.front-index h2, .front-project h2, .front-approach h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.06em; }
.front-index ul { margin-top: 16px; }
.front-index li { border-bottom: 1px solid var(--line); }
.front-index li:first-child { border-top: 1px solid var(--line); }
.front-index a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: baseline; gap: 6px 16px; min-height: 56px; padding-block: 14px; }
.front-index a strong { font-family: var(--title); font-size: clamp(1rem, 1.8vw, 1.27rem); letter-spacing: -.028em; }
.front-index a > span { color: var(--muted); line-height: 1.45; }
.front-index a:is(:hover, :focus-visible) strong { color: var(--accent); }
.front-levels { padding-left: clamp(16px, 3.3vw, 40px); border-left: 1px solid var(--line); }
.front-levels a { grid-template-columns: minmax(0, .47fr) minmax(0, 1fr); }

.front-project { align-items: center; }
.project-copy { grid-column: 2; grid-row: 1; }
.project-copy h2 { margin-block: 8px 12px; }
.project-copy h2 + p { max-width: 39ch; color: var(--muted); line-height: 1.65; }
.project-copy .text-link { margin-top: 10px; }
.project-image { display: block; grid-column: 1; grid-row: 1; width: 100%; height: auto; border: 1px solid var(--line); background: var(--panel); }

.front-approach { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); }
.front-approach h2 { text-wrap: pretty; }
.front-approach details { border-bottom: 1px solid var(--line); }
.front-approach details:first-child { border-top: 1px solid var(--line); }
.front-approach summary { align-content: center; min-height: 48px; cursor: pointer; font-weight: 700; }
.front-approach summary::marker { color: var(--accent); }
.front-approach details p { max-width: 64ch; padding: 0 0 16px 1.06em; color: var(--muted); line-height: 1.6; }

@media (max-width: 48rem) {
  .front-stories, .front-index, .front-project, .front-approach { grid-template-columns: minmax(0, 1fr); }
  .lead-image { aspect-ratio: 4 / 3; }
  .story-rail, .front-levels { border-left: 0; padding-left: 0; }
  .story-rail { border-top: 1px solid var(--line); padding-top: 20px; }
  .rail-story { grid-template-columns: minmax(0, 1fr) minmax(4.25rem, .31fr); }
  .project-copy, .project-image { grid-column: auto; grid-row: auto; }
}

@media (max-width: 33rem) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-block: 5px; }
  .header-inner .brand { align-self: flex-start; }
  .footer-inner { flex-wrap: wrap; padding-block: 9px; }
  .front-summary .text-link { margin-top: 5px; }
  .front-index a { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
.error-page { padding-block: clamp(40px, 8vw, 94px); }
.error-page h1 { margin-top: 13px; font-size: clamp(2.25rem, 6.2vw, 4.75rem); letter-spacing: -.055em; }
.error-page > p:not(.eyebrow) { max-width: 64ch; margin-top: 18px; color: var(--muted); font-size: 1.125rem; line-height: 1.62; }
.error-page .button { margin-top: 22px; }

.info-page { padding-block: clamp(36px, 7vw, 86px) clamp(52px, 8vw, 100px); }
.info-intro { padding-bottom: clamp(20px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.info-intro h1 { font-size: clamp(2.3rem, 7vw, 6rem); letter-spacing: -.065em; line-height: 1.02; overflow-wrap: anywhere; }
.info-intro > p, .info-body p { max-width: 68ch; color: var(--muted); line-height: 1.65; }
.info-intro > p { margin-top: 1.1rem; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.info-body { max-width: 73ch; }
.info-body section { padding-block: clamp(20px, 3.6vw, 34px); }
.info-body section + section { border-top: 1px solid var(--line); }
.info-body h2 { margin-bottom: .6rem; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }
.info-body .text-link { margin-top: .4rem; }
.info-links + p { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
