@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-regular.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-semibold.ttf') format('truetype');
  font-display: swap;
  font-weight: 600 800;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.ttf') format('truetype');
  font-display: swap;
  font-style: italic;
}

:root {
  --paper: #faf8f0;
  --ink: #243b2d;
  --muted: #52604f;
  --line: #dcded0;
  --panel: #eef0e4;
  --surface: #fffdf7;
  --accent: #617449;
  --primary: #294637;
  --action-fill: linear-gradient(160deg, #3b6248, #234330);
  --action-edge: #2b4b38;
  --action-shadow: #24483034;
  --quiet-fill: #eef1e2;
  --quiet-edge: #d3dbc2;
  --on-primary: #fffdf7;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --paper: #1c1c1a;
  --ink: #f5f0e5;
  --muted: #c0bcaf;
  --line: #42413b;
  --panel: #2c2b26;
  --surface: #242420;
  --accent: #d6e5ab;
  --primary: #d6e5ab;
  --action-fill: linear-gradient(160deg, #e5f0c6, #c8dda0);
  --action-edge: #bad190;
  --action-shadow: #00000045;
  --quiet-fill: #30312a;
  --quiet-edge: #535647;
  --on-primary: #272b1c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.theme-toggle[hidden] { display: grid !important; visibility: hidden; }
.page-width { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 12px;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.intro-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.065em;
}
.wordmark span { margin-left: -8px; color: var(--accent); }
.intro-footer nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.intro-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.intro-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.intro-hero {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  padding-block: clamp(35px, 5vw, 78px) clamp(40px, 5vw, 76px);
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.intro-copy h1 {
  margin-block: 15px 20px;
  font: clamp(58px, 7vw, 106px)/.91 var(--serif);
  letter-spacing: -.028em;
}
.intro-copy h1 em { color: var(--accent); }
.intro-description { max-width: 36ch; color: var(--muted); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.primary-link, .secondary-link, .sign-in-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}
.primary-link { background: var(--action-fill); color: var(--on-primary); border-color: var(--action-edge); box-shadow: inset 0 1px #ffffff29, 0 3px 8px var(--action-shadow); }
.primary-link:hover { filter: brightness(1.06); }
.primary-link:active { transform: translateY(1px); box-shadow: none; }
.secondary-link, .sign-in-link { background: var(--quiet-fill); border-color: var(--quiet-edge); }
.secondary-link:hover, .sign-in-link:hover { border-color: var(--accent); }
.sign-in-link { min-height: 44px; }
.intro-nav-actions { display: flex; align-items: center; gap: 9px; }
.text-link span { font: 17px/1 Arial, sans-serif; }

.plot-view {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 18px;
  background: #d0d3b6;
}
.plot-image { width: 100%; height: 100%; object-fit: cover; }
.plot-outline {
  display: none;
  position: absolute;
  inset: 0;
  background: #f5edb8;
  opacity: .85;
  clip-path: polygon(evenodd,
    4.7% 71.2%, 26% 48%, 45.6% 34%, 81.6% 39.4%, 87.2% 40.6%,
    82.1% 63%, 70.2% 86.5%, 4.7% 73%, 4.7% 71.2%,
    5.2% 72.4%, 69.9% 85.7%, 81.6% 62.7%, 86.6% 41.1%,
    81.4% 40%, 45.8% 34.7%, 26.3% 48.5%, 5.2% 71.5%, 5.2% 72.4%);
  pointer-events: none;
}
@supports (clip-path: polygon(evenodd, 0% 0%, 100% 0%, 100% 100%)) {
  .plot-outline { display: block; }
}
.browse-section { border-top: 1px solid var(--line); padding-block: 30px clamp(48px, 6vw, 84px); }
.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.section-heading h2, .seller-callout h2 { font: clamp(39px, 4.2vw, 61px)/1 var(--serif); letter-spacing: -.015em; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.browse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.browse-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.browse-card:hover { border-color: var(--accent); }
.browse-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.62;
  object-fit: cover;
  object-position: center 54%;
  background: var(--panel);
}
.browse-card-copy { position: relative; padding: 16px 45px 20px 17px; }
.browse-card h3 { font: clamp(23px, 2.6vw, 34px)/1.04 var(--serif); }
.browse-card p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.card-arrow { position: absolute; top: 18px; right: 16px; font: 19px/1 Arial, sans-serif; }

.seller-section { padding-bottom: clamp(44px, 6vw, 80px); }
.seller-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 30px;
  padding: clamp(22px, 4vw, 55px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.seller-callout p { max-width: 52ch; margin-top: 11px; color: var(--muted); }
.seller-callout .primary-link { flex: none; }

.intro-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-height: 92px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.intro-footer small { color: var(--muted); }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.theme-toggle:hover { background: var(--panel); border-color: var(--accent); }
.theme-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-sun, .theme-toggle[aria-pressed='true'] .theme-moon { display: none; }
.theme-toggle[aria-pressed='true'] .theme-sun { display: block; }

@media (max-width: 1000px) {
  .page-width { width: calc(100% - 56px); }
  .intro-hero { gap: 24px; }
  .intro-copy h1 { font-size: clamp(55px, 7.4vw, 76px); }
}
@media (min-width: 761px) and (max-width: 900px) {
  .intro-actions { gap: 7px; }
  .intro-actions a { gap: 7px; padding-inline: 11px; font-size: 13px; }
}
@media (max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .intro-header { min-height: 66px; gap: 12px; }
  .intro-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 33px; }
  .intro-copy h1 { margin-block: 12px 13px; font-size: clamp(55px, 11.5vw, 85px); }
  .intro-description { max-width: 41ch; }
  .intro-actions { margin-top: 19px; }
  .plot-view { border-radius: 13px; }
  .browse-section { padding-top: 20px; }
}
@media (max-width: 560px) {
  .browse-grid { grid-template-columns: 1fr; }
  .browse-card { display: grid; grid-template-columns: minmax(85px, 31%) minmax(0, 1fr); }
  .browse-card img { width: 100%; height: 100%; min-height: 108px; aspect-ratio: 1; }
  .browse-card-copy { padding: 13px 27px 13px 12px; }
  .browse-card p { font-size: 13px; line-height: 1.35; }
  .card-arrow { right: 10px; top: 14px; font-size: 16px; }
  .seller-callout { align-items: flex-start; flex-direction: column; }
  .intro-footer nav { width: 100%; flex-wrap: wrap; order: 1; }
}
@media (max-width: 350px) {
  .primary-link, .secondary-link, .sign-in-link { padding-inline: 10px; gap: 7px; font-size: 13px; }
  .intro-actions, .intro-nav-actions { gap: 7px; }
}
