:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #232f3e;
  --muted: #59636f;
  --border: #dce1e7;
  --accent: #a65b0a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", sans-serif;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

header, main, footer {
  width: min(100% - 36px, 840px);
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 750;
  letter-spacing: .12em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

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

.hero {
  padding-block: clamp(44px, 9vw, 90px);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}

h1 {
  margin: 10px 0;
  font-size: clamp(28px, 5.5vw, 48px);
  line-height: 1.35;
}

h2 {
  font-size: 19px;
}

p {
  color: var(--muted);
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.categories a {
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 80px;
  display: grid;
  place-items: center;
  font-weight: 650;
  text-decoration: none;
}

.categories a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#guides {
  margin-top: 48px;
}

.guide-list {
  padding: 0;
  list-style: none;
}

.guide-list li {
  border-top: 1px solid var(--border);
}

.guide-list a {
  display: block;
  padding-block: 17px;
}

.detail {
  max-width: 680px;
  border-top: 1px solid var(--border);
  padding-block: 22px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 380px) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Image-first landing page. */

.sizzle-page {
  --background: #080c14;
  --text: #f4f0e8;
  --muted: #c6cbd3;
  --accent: #ff9900;
  color-scheme: dark;
}

.sizzle-header,
.sizzle-main,
.sizzle-footer {
  width: min(100% - 32px, 1320px);
}

.sizzle-header {
  border: 0;
  padding-block: 24px 18px;
}

.sizzle-header .brand {
  font-size: 13px;
  letter-spacing: .22em;
}

.preview-mark {
  margin: 0;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.visual-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
}

.visual {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: #131f30;
}

.visual .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 8px 2px;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.5;
}

.visual .label span {
  color: var(--accent);
}

.sizzle-footer {
  border: 0;
  margin-top: 8px;
  font-size: 12px;
  padding-block: 16px 25px;
}

@media (min-width: 860px) {
  .sizzle-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  .sizzle-page * {
    animation: none;
    transition: none;
  }
}
