/* Waldorf Trading LLC — Classic General Store */

:root {
  --cream: #f7f3ea;
  --cream-deep: #e8d9b8;
  --paper: #fffdf6;
  --forest: #1e3a2f;
  --forest-dark: #16291f;
  --brown: #8a5a2b;
  --ink: #3a342a;
  --muted: #6b6355;
  --line: #d8cfba;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  line-height: 1.2;
}

p { margin: 0 0 1rem; }

a { color: var(--forest); }
a:hover { color: var(--brown); }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 2px;
}

.site-header a:focus-visible { outline-color: var(--cream); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.skip-link {
  position: absolute;
  z-index: 20;
  left: -9999px;
  top: 0.5rem;
  background: var(--forest);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--cream);
  text-decoration: none;
}

.skip-link:focus-visible {
  left: 0.5rem;
  outline-color: var(--cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--forest);
  border-bottom: 3px solid var(--brown);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.wordmark:hover { color: var(--cream); }

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

.site-nav a {
  padding: 0.4rem 0;
  /* keeps the underline 2px below the text */
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: var(--cream);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--cream-deep);
  border-bottom-color: var(--brown);
}

.site-nav a:active { color: var(--cream-deep); border-bottom-color: var(--brown); }

/* ---------- Hero ---------- */

.hero { padding: 5rem 0 4rem; text-align: center; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brown);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); }

.hero-sub {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: var(--forest-dark); color: var(--cream); }

.btn:active { background: var(--brown); }

/* ---------- Sections ---------- */

.section { padding: 4rem 0; scroll-margin-top: 4.5rem; }

.section:focus { outline: none; }

.section + .section { border-top: 1px solid var(--line); }

.section h2 { font-size: 1.9rem; text-align: center; }

.section-lead {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

/* ---------- Goods ---------- */

.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.good-card {
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brown);
  border-radius: 4px;
}

.good-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

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

/* ---------- Contact ---------- */

.contact { text-align: center; }

.contact .btn { margin-top: 0.5rem; }

.contact-email {
  margin: 1.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  overflow-wrap: anywhere;
}

.registered {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem 0;
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; opacity: 0.85; }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .site-nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
