/* Theme: edit these variables to restyle the whole site. */
:root {
  --color-bg: #ffffff;
  --color-surface: #f4f1ec;
  --color-text: #1f1f1f;
  --color-muted: #4a4a4a;
  --color-accent: #9a4a2f;      /* terracotta, darkened for AA contrast */
  --color-accent-text: #ffffff;
  --color-focus: #1a5fb4;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --radius: 10px;
  --max-width: 60rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.6 var(--font-body); color: var(--color-text); background: var(--color-bg); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
a { color: var(--color-accent); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-text); color: var(--color-bg); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.site-header { background: var(--color-surface); padding: 1rem; }
.brand { font: 700 1.25rem var(--font-heading); color: var(--color-text); text-decoration: none; }
nav ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
nav a { display: inline-block; padding: .5rem 0; }
main > section, .site-footer { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem; }
.hero { text-align: center; }
.btn { display: inline-block; background: var(--color-accent); color: var(--color-accent-text); border: 0; border-radius: var(--radius); padding: .75rem 1.25rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.cards, .gallery { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: var(--color-surface); border-radius: var(--radius); padding: 1rem; }
.card h3 { margin-top: 0; }
.price { font-weight: 700; color: var(--color-muted); }
.gallery { grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
details { border-bottom: 1px solid var(--color-surface); padding: .5rem 0; }
summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
label { font-weight: 600; margin-bottom: .25rem; }
input, select, textarea { font: inherit; padding: .6rem; border: 1px solid var(--color-muted); border-radius: 6px; background: var(--color-bg); color: var(--color-text); }
.note { font-weight: 600; }
.site-footer { border-top: 1px solid var(--color-surface); font-size: .9rem; }
@media (min-width: 40rem) {
  .site-header { display: flex; justify-content: space-between; align-items: center; }
  nav ul { margin: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  #order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  #order-form .btn, #order-form .note { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
