/* Wayrex — approved Manifesto homepage. Slate & ember palette. */

@font-face {
  font-family: Hanken;
  src: url('fonts/hanken-grotesk-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #10141a;
  --surface: #161b23;
  --line: #2b3440;
  --muted: #8593a3;
  --text: #d9d4c7;
  --link: #7c9cc0;
  --focus: #5b7fa6;
  --ember: #b5703b;
  --ember-hover: #c77b45;
  --gutter: clamp(24px,5vw,88px);
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 16px/1.65 Hanken,system-ui,sans-serif;
}

::selection {
  color: var(--text);
  background: var(--line);
}

a {
  color: var(--link);
  text-underline-offset: 5px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  font-weight: 400;
}

h1,h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  display: block;
}

.skip {
  position: fixed;
  z-index: 10;
  left: 16px;
  top: -80px;
  padding: 12px 20px;
  background: var(--surface);
}

.skip:focus {
  top: 16px;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: .25em;
  font-weight: 500;
}

.brand img {
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
}

.site-header nav a,footer>a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.intro {
  position: relative;
  padding: 64px var(--gutter) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  column-gap: 70px;
  align-items: end;
}

h1 {
  font-size: clamp(64px,9vw,128px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-family: Hanken,system-ui,sans-serif;
  grid-row: span 2;
}

.intro-description {
  max-width: 385px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--ember);
  font-size: 14px;
  color: var(--text);
  justify-self: start;
  align-self: start;
}

.primary:hover {
  border-color: var(--ember-hover);
  color: var(--ember-hover);
  text-decoration: none;
}

.primary:active {
  border-color: var(--ember);
  color: var(--text);
}

.landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.landscape figcaption {
  color: var(--muted);
  font-size: 12px;
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--bg);
  padding: 8px 12px;
}

.intro-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.studio,.beliefs {
  scroll-margin-top: 32px;
}

.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 96px var(--gutter);
  padding-top: 80px;
  padding-bottom: 72px;
}

.studio h2 {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-family: Hanken,system-ui,sans-serif;
}

.studio p {
  max-width: 57ch;
  color: var(--muted);
}

.studio p+p {
  margin-top: 20px;
}

.beliefs {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.belief {
  display: block;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.belief h2 {
  font-size: 36px;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 38px;
}

.belief h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 15px;
}

.belief p {
  color: var(--muted);
  max-width: 59ch;
}

.closing {
  padding: 95px var(--gutter) 110px;
  font-size: clamp(48px,7.5vw,104px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-family: Hanken,system-ui,sans-serif;
}

.closing span {
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 30px var(--gutter);
  font-size: 12px;
}

footer p {
  color: var(--muted);
  margin-right: auto;
}

footer .brand {
  font-size: 13px;
}

.landscape {
  height: 280px;
  margin-top: 56px;
  position: relative;
}

@media(min-width:1600px) {
  body {
    max-width: 1800px;
    margin: auto;
  }

  .site-header {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

@media(max-width:1000px) {
  .site-header {
    min-height: 88px;
  }

  .studio,.belief {
    gap: 40px;
  }

  .hero-copy {
    column-gap: 35px;
  }

  h1 {
    font-size: clamp(58px,9vw,90px);
  }
}

@media(max-width:700px) {
  :root {
    --gutter: 24px;
  }

  .site-header {
    min-height: 80px;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .brand {
    gap: 11px;
    font-size: 13px;
    letter-spacing: .18em;
  }

  .brand img {
    height: 28px;
    width: 17px;
  }

  .site-header nav {
    gap: 18px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(54px,13.7vw,90px);
    line-height: 1.06;
  }

  .intro-description {
    font-size: 16px;
    margin-top: 30px;
  }

  .studio {
    display: block;
    padding: 56px var(--gutter);
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .studio h2 {
    font-size: 38px;
    margin-bottom: 26px;
  }

  .belief {
    display: block;
    padding: 30px 0;
  }

  .belief h2 {
    font-size: 32px;
    margin-bottom: 22px;
  }

  .belief h3 {
    font-size: 18px;
  }

  .belief p {
    font-size: 15px;
  }

  .closing {
    padding: 60px var(--gutter);
    font-size: 48px;
  }

  footer {
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px var(--gutter);
  }

  footer p {
    width: 100%;
    order: 3;
  }

  footer>a:last-child {
    margin-left: auto;
  }

  .intro-foot {
    font-size: 12px;
  }

  .intro {
    padding-top: 44px;
  }

  .hero-copy {
    display: block;
  }

  .landscape {
    height: 200px;
    margin-top: 38px;
  }

  .landscape figcaption {
    font-size: 12px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px;
  }

  .intro-foot>span {
    max-width: 160px;
  }

  .beliefs {
    display: block;
  }
}

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

@media(prefers-reduced-motion:no-preference) {
  a {
    transition: color .18s,border-color .18s;
  }
}

@media(forced-colors:active) {
  .primary {
    border-color: ButtonText;
  }

  .landscape:after {
    display: none;
  }
}

.hero-copy > * {
  min-width: 0;
}

@media(max-width:360px) {
  .site-header {
    gap: 10px;
  }

  .site-header nav {
    gap: 12px;
  }

  h1 {
    font-size: 48px;
  }

  .primary {
    gap: 28px;
  }
}
