:root {
  color-scheme: light;
  --ink: #20211f;
  --muted: #646862;
  --line: #dedbd2;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --soft: #f1eee5;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --sun: #f4b942;
  --shadow: 0 18px 60px rgba(32, 33, 31, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 5vw;
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--sun);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: -0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.94rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-dark);
}

.home-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 4rem;
  align-items: center;
  padding: 5rem 5vw;
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.listing,
.article-shell {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy p:not(.eyebrow),
.dek {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.button:hover {
  background: var(--accent-dark);
}

.text-link {
  font-weight: 800;
}

.arrival-card,
.cta-panel,
.article-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.arrival-card {
  padding: 1.4rem;
}

.arrival-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.arrival-card li + li {
  margin-top: 0.7rem;
}

.section,
.listing,
.article-shell {
  padding: 4.5rem 5vw;
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.8rem;
}

.section-heading p,
.listing > .dek {
  color: var(--muted);
}

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

.guide-card,
.guide-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.guide-card:hover,
.guide-row:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow);
}

.guide-card {
  min-height: 260px;
  padding: 1.1rem;
}

.guide-card span,
.guide-row span {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-card p,
.guide-row p {
  color: var(--muted);
}

.listing {
  width: min(100%, 1080px);
}

.listing.narrow {
  width: min(100%, 820px);
}

.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.guide-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
}

.article-hero {
  max-width: 860px;
  padding-bottom: 2rem;
}

.verified {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.3rem;
  margin: 0 0 2.4rem;
}

.cta-panel h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 0;
}

.cta-panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 2.5rem;
  align-items: start;
}

.article-note {
  padding: 1rem;
  position: sticky;
  top: 96px;
  color: var(--muted);
  font-size: 0.93rem;
}

.article-note p {
  margin: 0;
}

.article-note p + p {
  margin-top: 0.8rem;
}

.prose {
  min-width: 0;
}

.prose.standalone {
  max-width: 760px;
}

.prose h1 {
  display: none;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 0.8rem;
}

.prose h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.prose p,
.prose li {
  color: #343633;
  overflow-wrap: anywhere;
}

.prose blockquote {
  border-left: 4px solid var(--sun);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--soft);
}

.prose code {
  display: inline-block;
  max-width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.28rem;
  font-size: 0.92em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 5vw;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  max-width: 820px;
}

@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
  }

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

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

  .article-note {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 5vw;
    gap: 0.75rem;
    position: static;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .home-hero,
  .section,
  .listing,
  .article-shell {
    padding: 3rem 5vw;
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .hero-copy p:not(.eyebrow),
  .dek {
    font-size: 1.04rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .guide-card {
    min-height: 0;
  }

  .guide-row {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 430px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .home-hero,
  .section,
  .listing,
  .article-shell {
    padding-left: 4.25vw;
    padding-right: 4.25vw;
  }

  .arrival-card,
  .cta-panel,
  .article-note,
  .guide-card,
  .guide-row {
    border-radius: 7px;
  }

  .article-hero {
    padding-bottom: 1.5rem;
  }

  .cta-panel {
    margin-bottom: 1.8rem;
    padding: 1rem;
  }

  .prose h2 {
    margin-top: 2.4rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25rem;
  }

  .prose th,
  .prose td {
    padding: 0.65rem;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 15.5px;
  }

  .site-header {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .nav {
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(1.95rem, 12vw, 2.7rem);
  }

  .button {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
