/* Shared layout tokens - brand colours/fonts override via /assets/brand/theme.css */
:root {
  --color-burgundy: #5a5a5a;
  --color-burgundy-deep: #3d3d3d;
  --color-cream: #f5f5f5;
  --color-cream-deep: #e8e8e8;
  --color-ivory: #fafafa;
  --color-card: #ffffff;
  --color-gold: #888888;
  --color-gold-soft: #b0b0b0;
  --color-wood: #222222;
  --color-wood-muted: #555555;
  --color-ink: #1a1a1a;
  --color-sage: #4a6b58;
  --color-tomato: #b83228;
  --color-border: #d0d0d0;
  --color-focus: #888888;

  --font-display: "Fraunces", Georgia, serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --text-hero: 2.75rem;
  --text-title: 1.75rem;
  --text-slogan: 1.85rem;
  --text-body: 1rem;
  --text-small: 0.875rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 28px rgba(62, 42, 31, 0.12);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(122, 27, 27, 0.08), transparent 50%),
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-deep) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: var(--color-burgundy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 4rem;
  /* Phone/tablet/desktop shell chrome lives in layout-*.css */
  min-height: 100vh;
}

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  background: var(--color-cream-deep);
  color: var(--color-wood-muted);
  border-color: var(--color-border);
  box-shadow: none;
}

.btn-primary:disabled {
  background: var(--color-cream-deep);
  color: var(--color-wood-muted);
}

.btn-primary {
  background: var(--color-burgundy);
  color: var(--color-ivory);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-burgundy-deep);
}

.btn-primary.added {
  background: var(--color-sage);
}

.btn-secondary {
  background: transparent;
  color: var(--color-burgundy);
  border-color: rgba(122, 27, 27, 0.35);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(122, 27, 27, 0.08);
}

.btn-quiet {
  background: transparent;
  color: var(--color-wood-muted);
  border-color: transparent;
  padding-inline: 0.55rem;
}

.btn-quiet:hover:not(:disabled) {
  color: var(--color-burgundy);
  background: rgba(122, 27, 27, 0.06);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-small);
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.pill[hidden] {
  display: none !important;
}

.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.pill-open {
  background: rgba(63, 93, 74, 0.14);
  color: var(--color-sage);
}

.pill-closed {
  background: rgba(122, 27, 27, 0.12);
  color: var(--color-burgundy);
}

.site-legal {
  margin-top: 3rem;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-wood-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.kitchen-footer-link[hidden] {
  display: none !important;
}

.site-legal a {
  color: var(--color-wood-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
