:root {
  --paper: #f5f0e6;
  --paper-raised: #fbf8f1;
  --ink: #2e4a3c;
  --text: #333333;
  --muted: #5a6259;
  --gold: #c2a95d;
  --cranberry: #8c3d3d;
  --line: #e4dbc8;
  --font-display: "Lora", serif;
  --font-body: "Lora", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; }

.hex {
  width: 1.1em;
  height: 1.1em;
  fill: var(--gold);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 320px;
  height: 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='%23c2a95d' stroke-width='1.2' opacity='0.35'%3E%3Cpath d='M30 2 58 18v32L30 66 2 50V18Z'/%3E%3Cpath d='M90 2 118 18v32L90 66 62 50V18Z'/%3E%3Cpath d='M60 36 88 52v32L60 100 32 84V52Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.6;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  max-width: 14ch;
  color: var(--ink);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper-raised);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.button:hover, .button:focus-visible { background: #23392e; }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button.secondary:hover, .button.secondary:focus-visible { background: rgba(46, 74, 60, 0.08); }

.button.shop {
  background: var(--cranberry);
}

.button.shop:hover, .button.shop:focus-visible { background: #742f2f; }

section.block {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

section.block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

section.block .section-lede {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
  display: block;
  text-decoration: none;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5rem;
}

form.recommender {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--text);
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2.5rem 2rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-heading {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.site-footer p { margin: 0.15rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background 0.15s ease; }
}
