:root {
  color-scheme: light dark;
  --paper: #f6f1e7;
  --paper-strong: #efe4d1;
  --ink: #171612;
  --muted: rgba(23, 22, 18, .68);
  --rule: rgba(23, 22, 18, .14);
  --rust: #a04a2d;
  --moss: #53614e;
  --fjord: #375a63;
  --card: rgba(251, 247, 239, .86);
  --font: Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 6%, rgba(160, 74, 45, .16), transparent 34rem),
    linear-gradient(135deg, var(--paper), var(--paper-strong));
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

main {
  width: min(1120px, 100%);
  margin: auto;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.shell {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(1.1rem, 3vw, 2rem);
  padding-block: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-bottom));
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  font-family: var(--ui);
  font-size: .86rem;
  font-weight: 760;
}

a {
  color: inherit;
  text-underline-offset: .18em;
}

.back {
  color: var(--rust);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: stretch;
}

.hero-copy,
.brand-panel,
.card,
.panel {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 8px;
}

.hero-copy {
  padding: clamp(1.15rem, 4vw, 2rem);
}

.eyebrow,
.card b {
  display: block;
  margin: 0 0 .75rem;
  color: var(--rust);
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 840;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0 0 1rem;
  font-size: clamp(2.65rem, 8vw, 6.1rem);
  line-height: .91;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 60ch;
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
}

.cta,
.ghost {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: .72rem .95rem;
  font-family: var(--ui);
  font-weight: 820;
  text-decoration: none;
}

.cta {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.ghost {
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, .22);
}

.brand-panel {
  display: grid;
  min-height: 100%;
  padding: clamp(1rem, 3vw, 1.45rem);
  align-content: space-between;
  overflow: hidden;
}

.brand-panel picture,
.brand-panel img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.brand-mark {
  width: min(100%, 380px);
  margin: auto;
}

.brand-copy {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .94rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: .9rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.panel {
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.card {
  display: grid;
  gap: .52rem;
  align-content: start;
}

.card p,
.panel p,
.more {
  margin: 0;
  color: var(--muted);
}

.card a,
.more a,
.list a {
  font-family: var(--ui);
  font-weight: 820;
}

.list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}

.list a {
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: .72rem .8rem;
  text-decoration: none;
  background: rgba(255, 255, 255, .2);
}

.panel {
  display: grid;
  gap: .6rem;
}

@media (max-width: 820px) {
  .shell {
    align-content: start;
  }

  .hero,
  .grid,
  .grid.two,
  .list {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 1rem;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(2.55rem, 13vw, 4.15rem);
  }

  .brand-panel {
    min-height: auto;
  }

  .brand-mark {
    width: min(62vw, 240px);
  }

  .brand-panel img {
    max-height: 220px;
  }

  .actions {
    align-items: stretch;
  }

  .cta,
  .ghost {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141614;
    --paper-strong: #1e211d;
    --ink: rgba(242, 238, 229, .94);
    --muted: rgba(242, 238, 229, .68);
    --rule: rgba(242, 238, 229, .15);
    --card: rgba(28, 31, 29, .82);
    --rust: #d17a58;
  }

  body {
    background:
      radial-gradient(circle at 86% 6%, rgba(209, 122, 88, .14), transparent 34rem),
      linear-gradient(135deg, var(--paper), var(--paper-strong));
  }

  .ghost,
  .list a {
    background: rgba(255, 255, 255, .04);
  }
}
