@charset "UTF-8";

/* Tokens copied from the application's Redwood & Gold theme:
   assets/css/redwood.config.js and assets/css/redwood.css. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/fraunces.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/inter.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  color-scheme: light dark;
  /* body: bg-fog-100 text-fog-900 */
  --bg: #f3f1ea;
  --fg: #272522;
  --muted: #6c665b; /* fog-600 */
  --faint: #8a8375; /* fog-500 */
  --line: #e6e2d7; /* fog-200 */
  --card: #faf9f6; /* fog-50 */
  --brand: #1b4f39; /* forest-700 */
  --btn-primary: #1b4f39; /* forest-700 */
  --btn-primary-hover: #1f6446; /* forest-600 */
  --btn-primary-fg: #faf9f6;
  --btn-border: #d2ccbc; /* fog-300 */
  --btn-fg: #565149; /* fog-700 */
  --btn-hover: #f3f1ea; /* fog-100 */
  --gold: #e0a733; /* gold-400 */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* body: dark:bg-forest-950 dark:text-fog-100 */
    --bg: #081a13;
    --fg: #f3f1ea;
    --muted: #aca596; /* fog-400 */
    --faint: #8a8375;
    --line: #143327; /* forest-900 */
    --card: #0e2b20; /* forest-900/40 over forest-950 */
    --brand: #79bd99; /* forest-300 */
    --btn-primary: #2d7d59; /* forest-500 */
    --btn-primary-hover: #4b9c76; /* forest-400 */
    --btn-border: #173f2f; /* forest-800 */
    --btn-fg: #e6e2d7; /* fog-200 */
    --btn-hover: #173f2f; /* forest-800 */
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  width: min(960px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 2;
}
.skip-link:focus {
  top: 12px;
}

/* Header and footer */

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  font-size: 13px;
  color: var(--muted);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-variation-settings:
    "SOFT" 30,
    "WONK" 1,
    "opsz" 40;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
}
footer .wordmark {
  font-size: 18px;
}
.wordmark img {
  display: block;
}
nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
nav a:hover {
  color: var(--fg);
}

/* Type */

h1,
h2 {
  font-family: var(--display);
  font-variation-settings:
    "SOFT" 30,
    "WONK" 1,
    "opsz" 40;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  max-width: 18ch;
}
h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 20px;
}
.lede {
  max-width: 58ch;
  font-size: 17px;
  color: var(--muted);
}
.section p {
  max-width: 62ch;
  color: var(--muted);
}
.section p + p {
  margin-top: 14px;
}

/* Buttons mirror .btn / .btn-primary / .btn-default in redwood.css. */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--btn-border);
  border-radius: 6px;
  background: var(--card);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
}
.btn:hover {
  background: var(--btn-hover);
  text-decoration: none;
}
.btn-primary {
  border-color: var(--btn-primary);
  background: var(--btn-primary);
  color: var(--btn-primary-fg);
}
.btn-primary:hover {
  border-color: var(--btn-primary-hover);
  background: var(--btn-primary-hover);
}

/* Sections */

.hero {
  display: grid;
  gap: 20px;
  padding-block: 64px 40px;
}
.hero .actions {
  margin-top: 8px;
}

.shot {
  margin-block: 0;
}
.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot picture {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 2px #0000000d;
  overflow: hidden;
}

.section {
  padding-top: 72px;
  scroll-margin-top: 24px;
}
.section .actions {
  margin-top: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
.cards > li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 2px #0000000d;
}
.cards picture {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.cards img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
/* Narrow crops sit at roughly natural size instead of filling the frame. */
.cards .inset {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.cards .inset[width="512"] {
  width: 70%;
}
.cards .inset[width="656"] {
  width: 84%;
}
.card-text {
  padding: 18px 20px;
}
.cards h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cards p {
  font-size: 14px;
  color: var(--muted);
}

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.providers li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 13px;
}

/* 404 */

.not-found {
  padding-block: 96px;
  display: grid;
  gap: 16px;
}
.not-found .actions {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    padding-block: 14px;
  }
  nav {
    gap: 14px;
    font-size: 12px;
  }
  .hero {
    padding-block: 40px 28px;
  }
  .lede {
    font-size: 16px;
  }
  .shot {
    max-width: 420px;
  }
  .section {
    padding-top: 52px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 48px;
  }
}
