:root {
  --cream: #fff5df;
  --vanilla: #f4e8d0;
  --paper: #ead9ba;
  --chocolate: #4a2e22;
  --espresso: #241610;
  --caramel: #b8875b;
  --line: #d7c19f;
  --coral: #d9654b;
  --teal: #2d7470;
  --mustard: #d49a28;
  --blue: #5d8190;
  --green: #66794f;
  --max-width: 1180px;
  --shadow: 0 18px 45px rgba(36, 22, 16, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--espresso);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--espresso);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
}

.site-header--solid {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--chocolate);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
}

.nav-links {
  display: flex;
  margin: 0;
  padding: 4px;
  align-items: center;
  gap: 7px;
  list-style: none;
  border: 1px solid rgba(74, 46, 34, 0.16);
  border-radius: 999px;
  background: rgba(255, 245, 223, 0.88);
  backdrop-filter: blur(8px);
}

.nav-links a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--chocolate);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
  background: var(--chocolate);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--chocolate);
  border-radius: 50%;
  color: var(--chocolate);
  background: var(--cream);
  font: inherit;
  font-size: 21px;
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  background-color: var(--vanilla);
  background-image: url("../images/hero-poster.jpg");
  background-position: center;
  background-size: cover;
  align-items: center;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 28px;
  content: "";
  background: var(--cream);
  clip-path: polygon(0 70%, 8% 32%, 17% 78%, 28% 42%, 40% 86%, 52% 34%, 65% 73%, 78% 38%, 90% 78%, 100% 45%, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 68px auto 0;
}

.hero-copy {
  width: min(570px, 47%);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 35px;
  height: 7px;
  content: "";
  background: var(--coral);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 560px;
  margin-bottom: 20px;
  color: var(--chocolate);
  font-size: clamp(60px, 8vw, 112px);
  font-weight: 950;
  line-height: 0.85;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--chocolate);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.28;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 21px;
  border: 2px solid var(--chocolate);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: var(--chocolate);
  box-shadow: 5px 5px 0 var(--coral);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  box-shadow: 2px 2px 0 var(--coral);
  transform: translate(3px, 3px);
}

.button--secondary {
  color: var(--chocolate);
  background: var(--cream);
  box-shadow: none;
}

.section {
  padding: 105px 0;
}

.section--chocolate {
  color: var(--cream);
  background: var(--chocolate);
}

.section--paper {
  background: var(--vanilla);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  margin-bottom: 52px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 80px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  color: var(--chocolate);
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading p {
  margin: 0;
  color: #725a4e;
  font-size: 18px;
}

.section--chocolate .section-heading h2,
.section--chocolate .section-heading p {
  color: var(--cream);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  min-height: 300px;
  padding: 30px;
  border: 2px solid var(--chocolate);
  border-radius: 7px;
  background: var(--cream);
}

.feature:nth-child(2) {
  background: #f4cdbd;
}

.feature:nth-child(3) {
  background: #d1dfd7;
}

.feature-number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 55px;
  border-radius: 50%;
  place-items: center;
  color: var(--cream);
  background: var(--chocolate);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.feature h3 {
  margin-bottom: 8px;
  color: var(--chocolate);
  font-size: 26px;
  line-height: 1.05;
}

.feature p {
  margin: 0;
  color: #725a4e;
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  align-items: center;
}

.profile-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 950;
  line-height: 0.96;
  text-transform: uppercase;
}

.profile-copy p {
  color: #e0cdb5;
  font-size: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-tile {
  min-height: 148px;
  padding: 20px;
  border: 2px solid var(--cream);
  border-radius: 6px;
  background: rgba(255, 245, 223, 0.06);
}

.profile-tile:nth-child(2) { border-color: #e68066; }
.profile-tile:nth-child(3) { border-color: #75aaa4; }
.profile-tile:nth-child(4) { border-color: #ddb85d; }

.profile-tile span {
  display: block;
  margin-bottom: 28px;
  color: #d9bea4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-tile strong {
  display: block;
  color: var(--cream);
  font-size: 22px;
  line-height: 1.05;
}

.poster-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 430px;
  overflow: hidden;
  border: 2px solid var(--chocolate);
  border-radius: 7px;
  background: var(--mustard);
}

.poster-copy {
  padding: 60px;
}

.poster-copy h2 {
  max-width: 550px;
  margin-bottom: 20px;
  color: var(--chocolate);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
}

.poster-copy p {
  max-width: 520px;
  color: var(--chocolate);
  font-size: 18px;
}

.poster-art {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--teal);
}

.poster-art::before,
.poster-art::after {
  position: absolute;
  content: "";
}

.poster-art::before {
  right: -8%;
  bottom: -12%;
  width: 110%;
  height: 110%;
  background: var(--cream);
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);
}

.poster-art::after {
  top: 13%;
  right: 16%;
  width: 35%;
  height: 72%;
  background: var(--coral);
  clip-path: polygon(50% 0, 100% 100%, 66% 86%, 48% 100%, 0 100%);
}

.legal-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--chocolate);
  border-left: 2px solid var(--chocolate);
}

.legal-ribbon a {
  min-height: 92px;
  padding: 20px;
  border-right: 2px solid var(--chocolate);
  border-bottom: 2px solid var(--chocolate);
  color: var(--chocolate);
  background: var(--cream);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.legal-ribbon a:hover {
  color: var(--cream);
  background: var(--chocolate);
}

.page-hero {
  padding: 95px 0 70px;
  border-bottom: 2px solid var(--chocolate);
  background: var(--vanilla);
}

.page-hero--not-found {
  display: grid;
  min-height: 70vh;
  align-items: center;
}

.page-hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 70px;
  align-items: end;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--chocolate);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 950;
  line-height: 0.88;
  text-transform: uppercase;
}

.page-hero-mark {
  width: 190px;
  height: 190px;
  justify-self: end;
}

.document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  padding: 75px 0 110px;
  gap: 75px;
}

.document-nav {
  position: sticky;
  top: 30px;
  align-self: start;
}

.document-nav p {
  margin-bottom: 12px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-nav a {
  display: block;
  padding: 8px 0;
  color: #725a4e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.document-nav a:hover {
  color: var(--coral);
}

.document {
  min-width: 0;
}

.document-meta {
  margin-bottom: 45px;
  color: #725a4e;
  font-size: 15px;
}

.document h2 {
  margin: 62px 0 16px;
  padding-top: 15px;
  border-top: 2px solid var(--line);
  color: var(--chocolate);
  font-size: 30px;
  line-height: 1.12;
}

.document h2:first-of-type {
  margin-top: 0;
}

.document h3 {
  margin: 30px 0 8px;
  color: var(--chocolate);
  font-size: 20px;
}

.document p,
.document li {
  color: #5f4a40;
  font-size: 17px;
}

.document li + li {
  margin-top: 9px;
}

.callout {
  margin: 30px 0;
  padding: 25px;
  border: 2px solid var(--chocolate);
  border-radius: 6px;
  background: var(--vanilla);
  box-shadow: 6px 6px 0 var(--coral);
}

.callout h2,
.callout h3 {
  margin-top: 0;
  padding: 0;
  border: 0;
}

.contact-card {
  margin-top: 35px;
  padding: 34px;
  border-radius: 7px;
  color: var(--cream);
  background: var(--chocolate);
}

.contact-card p {
  color: #e5d4bd;
}

.contact-card a {
  color: var(--cream);
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 950;
  word-break: break-word;
}

.support-grid {
  display: grid;
  margin: 35px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.support-card {
  padding: 24px;
  border: 2px solid var(--chocolate);
  border-radius: 6px;
  color: var(--chocolate);
  background: var(--cream);
  text-decoration: none;
}

.support-card:hover {
  color: var(--cream);
  background: var(--chocolate);
}

.support-card span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
}

.site-footer {
  padding: 66px 0 35px;
  color: var(--cream);
  background: var(--espresso);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.6fr);
  gap: 70px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 60px;
  height: 60px;
}

.footer-brand strong {
  font-size: 22px;
}

.footer-copy {
  max-width: 410px;
  margin-top: 20px;
  color: #cdbda9;
}

.footer-column h2 {
  margin-bottom: 15px;
  color: #a58d79;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 8px 0;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-column a:hover {
  color: #ee8d74;
}

.footer-bottom {
  display: flex;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid #594037;
  justify-content: space-between;
  gap: 20px;
  color: #a58d79;
  font-size: 12px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 20px;
    display: none;
    width: min(290px, calc(100vw - 40px));
    padding: 12px;
    border: 2px solid var(--chocolate);
    border-radius: 6px;
    align-items: stretch;
    flex-direction: column;
    background: var(--cream);
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    border-radius: 3px;
  }

  .hero {
    min-height: 780px;
    background-position: 58% center;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(255, 245, 223, 0.77);
  }

  .hero-copy {
    width: min(600px, 100%);
  }

  .section-heading,
  .profile-layout,
  .poster-strip,
  .page-hero .shell,
  .document-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .profile-layout,
  .page-hero .shell,
  .document-layout,
  .footer-grid {
    gap: 35px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 220px;
  }

  .feature-number {
    margin-bottom: 30px;
  }

  .poster-copy {
    padding: 42px;
  }

  .legal-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero-mark {
    display: none;
  }

  .document-layout {
    padding-top: 50px;
  }

  .document-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 18px;
  }

  .document-nav p {
    display: none;
  }

  .document-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .hero-content,
  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 700px;
    background-position: 64% center;
  }

  .hero-content {
    margin-top: 42px;
  }

  .hero h1 {
    font-size: clamp(54px, 20vw, 82px);
  }

  .section {
    padding: 78px 0;
  }

  .profile-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .poster-copy {
    padding: 32px 24px;
  }

  .poster-art {
    min-height: 280px;
  }

  .legal-ribbon {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 65px 0 48px;
  }

  .document h2 {
    font-size: 26px;
  }

  .document p,
  .document li {
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
