/* Wine Cave — the site. One stylesheet, no framework, no external assets.
   Palette and type follow docs/DESIGN.md: parchment page, ink text, oxblood
   the one accent, gold for kickers. */

:root {
  --cave: #F4EEE6;
  --stone: #EDE5DA;
  --ink: #1F1614;
  --ash: #7C6E68;
  --oxblood: #6E1B27;
  --gold: #A8843A;
  --hairline: rgba(31, 22, 20, 0.14);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cave: #120E0D;
    --stone: #1C1614;
    --ink: #F1E9DF;
    --ash: #9F918A;
    --oxblood: #B0303E;
    --gold: #D3AE58;
    --hairline: rgba(241, 233, 223, 0.16);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--cave);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

.page {
  max-width: 720px;
  margin: 0 auto;
}

/* Type */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 38px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

h2 {
  font-size: 24px;
  margin: 44px 0 12px;
}

h3 {
  font-size: 19px;
  margin: 28px 0 6px;
}

p { margin: 0 0 14px; }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.lede {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 20px;
}

.meta {
  font-size: 14px;
  color: var(--ash);
  margin: 0 0 8px;
}

strong { font-weight: 600; }

a {
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { text-decoration: none; }

/* Header and footer */

header {
  padding: 56px 0 8px;
}

header .home {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ash);
}

footer a { color: var(--ash); }

footer nav a { margin-right: 16px; }

/* Feature list on the landing page */

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 36px;
}

.features li {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.features li:last-child { border-bottom: 1px solid var(--hairline); }

.features .name {
  font-family: var(--serif);
  font-size: 21px;
  display: block;
  margin-bottom: 2px;
}

.features .what {
  color: var(--ash);
  font-size: 16px;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--oxblood);
  color: var(--cave);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { text-decoration: none; opacity: 0.9; }

.button-note {
  font-size: 14px;
  color: var(--ash);
  margin: 12px 0 0;
}

/* Tiles and tables */

.tile {
  background: var(--stone);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 16px;
}

.tile p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

ul.plain {
  padding-left: 20px;
  margin: 0 0 14px;
}

ul.plain li { margin-bottom: 6px; }

/* Numbered legal sections */

.section-number {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 2px;
}
