/* Apas Outlet — shared styles
   Palette: paper #F0ECE3, ink #1F2B24, ochre #C98A2B, rose #C97B63
   Type: Fraunces (display), Work Sans (body/UI)
*/

:root {
  --paper: #F0ECE3;
  --paper-raised: #FAF8F3;
  --ink: #1F2B24;
  --ink-soft: #4A564D;
  --ochre: #C98A2B;
  --ochre-dark: #A66F1E;
  --rose: #C97B63;
  --line: #D8D2C4;
  --line-strong: #B9B29E;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em 0;
  color: var(--ink);
}

a {
  color: var(--ochre-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ochre-dark);
  outline-offset: 2px;
}

p { max-width: 62ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  padding: 64px 0 56px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 12ch;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--ochre);
  color: var(--paper-raised);
  border: none;
  border-radius: 3px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}
.btn:hover {
  background: var(--ochre-dark);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  background: var(--paper-raised);
  border-color: var(--ink);
}

/* ── Category grid ─────────────────────────────────────────────── */

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.category-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}
.category-card:hover { background: var(--paper-raised); text-decoration: none; }
.category-card:nth-child(2n) { border-right: none; }
.category-card:nth-child(n+3) { border-bottom: none; }

.category-card .name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
}
.category-card .tag {
  font-size: 0.82rem;
  color: var(--rose);
  margin-top: 8px;
}

/* ── Section headings ──────────────────────────────────────────── */

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.7rem;
}

/* ── Product grid ──────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.product-card {
  display: block;
  color: var(--ink);
}
.product-card:hover { text-decoration: none; }

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 12px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-price {
  color: var(--ochre-dark);
  font-weight: 600;
}

.empty-state {
  padding: 40px 0;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

/* ── Product detail ────────────────────────────────────────────── */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.product-detail .product-image {
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
}

.product-detail h1 {
  font-size: 2rem;
}

.product-detail .price {
  font-size: 1.4rem;
  color: var(--ochre-dark);
  font-weight: 600;
  margin: 12px 0 20px 0;
}

.product-detail .description {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qty-row input[type="number"] {
  width: 64px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
}

input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  display: block;
}

.shipping-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}

.status-message {
  margin-top: 16px;
  font-size: 0.92rem;
}
.status-message.error { color: #B0432E; }

/* ── Simple text pages (policies, contact) ────────────────────── */

.text-page {
  padding: 56px 0 72px 0;
}
.text-page h1 { font-size: 2.1rem; margin-bottom: 0.8em; }
.text-page h2 { font-size: 1.25rem; margin-top: 1.8em; }
.text-page p, .text-page li { color: var(--ink-soft); max-width: 68ch; }
.text-page ul { padding-left: 1.2em; }

/* ── Footer ────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 20px;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; max-width: none; }
  .product-detail { grid-template-columns: 1fr; padding: 32px 0; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 0.85rem; }
}