/* Mustard Seed Makes — one-page shop site
   Warm paper palette, system fonts only, no trackers. */

:root {
  --cream: #fbf6eb;
  --cream-deep: #f0e6d0;
  --paper: #fffdf8;
  --ink: #2c2a24;
  --ink-soft: #5c574c;
  --leaf: #3f4a2e;
  --leaf-hover: #2f3822;
  --mustard: #c4962a;
  --line: rgba(44, 42, 36, 0.14);
  --shadow: 0 1px 2px rgba(44, 42, 36, 0.05), 0 8px 24px rgba(44, 42, 36, 0.06);
  --radius: 14px;
  --max: 68rem;
  --serif: Georgia, "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf); }

a:hover { color: var(--leaf-hover); }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus { top: 0.75rem; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-bottom-color: var(--mustard);
  color: var(--ink);
}

/* Hero */
.hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.75rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Featured */
.featured {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.featured h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 22rem) {
  .grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .card h3 { font-size: 0.95rem; }
  .card .meta { padding: 0.7rem 0.75rem 0.85rem; }
}

@media (min-width: 60rem) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(44, 42, 36, 0.07), 0 14px 32px rgba(44, 42, 36, 0.1);
  color: inherit;
}

.card .frame {
  aspect-ratio: 3 / 4;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card .frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card .meta {
  padding: 0.85rem 0.95rem 1rem;
  border-top: 1px solid var(--line);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

.card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* Visually hidden helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CTA */
.cta {
  text-align: center;
  padding: 0.5rem 1.25rem 3.5rem;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
}

.cta p {
  margin: 0 auto 1.4rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--leaf);
  min-width: 12.5rem;
}

.btn-primary {
  background: var(--leaf);
  color: #fffdf8;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--leaf-hover);
  border-color: var(--leaf-hover);
  color: #fffdf8;
}

.btn-secondary {
  background: transparent;
  color: var(--leaf);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--leaf);
  color: #fffdf8;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p { margin: 0 0 0.35rem; }

.site-footer nav {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.site-footer a { color: var(--ink-soft); }

@media (max-width: 36rem) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding-bottom: 0.4rem;
  }
  .nav { justify-content: center; flex-wrap: nowrap; gap: 1.1rem; }
  .brand img { width: 2.6rem; height: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover, .card:focus-visible { transform: none; }
}
