/* ==========================================================================
   Symira (sömnad & lagning) — stylesheet
   Warm, craft-feeling design. Plain CSS, no build step.
   Colours are picked for AA contrast on the cream background.
   Edit the values in :root below to re-theme the whole site.
   ========================================================================== */

:root {
  /* Palette */
  --cream:      #faf6f0;   /* page background */
  --cream-2:    #f1e9dd;   /* cards / alternate sections */
  --ink:        #362b23;   /* main text (contrast ~11:1 on cream) */
  --ink-soft:   #5c4d41;   /* secondary text */
  --terracotta: #a8492a;   /* primary accent / links / buttons */
  --terracotta-dark: #8a3a20; /* hover */
  --sage:       #6f7d61;   /* secondary accent */
  --line:       #ddceba;   /* borders */
  --white:      #ffffff;

  /* Type */
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(54, 43, 35, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--terracotta-dark); }

/* Visible focus for keyboard users (accessibility) */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ------------------------------ Header / nav ------------------------------ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-head);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand strong {
  font-size: 1.35rem;
  font-weight: 600;
}
.brand .brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
}
.main-nav a:hover { background: var(--cream-2); color: var(--terracotta-dark); }
.main-nav a[aria-current="page"] {
  color: var(--terracotta-dark);
  box-shadow: inset 0 -2px 0 var(--terracotta);
}

.lang-toggle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}
.lang-toggle:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem; }
  .main-nav a { padding: 0.8rem; }
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--terracotta-dark); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--terracotta-dark);
  border: 1.5px solid var(--terracotta);
}
.btn-secondary:hover { background: var(--cream-2); color: var(--terracotta-dark); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-text .lead { font-size: 1.2rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.hero-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 720px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* ------------------------------ Sections ------------------------------ */
.section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section-alt { background: var(--cream-2); }
.section-intro { max-width: 60ch; margin-bottom: 2rem; }
.section-intro p { color: var(--ink-soft); }

/* Placeholder marker so unfinished copy is obvious */
.placeholder {
  background: #fff6d6;
  border-left: 3px solid #d9a400;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-style: italic;
  color: #6b5300;
}

/* ------------------------------ Card grids ------------------------------ */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--terracotta-dark); }
.card.flush { padding: 0; }

/* 404 / not-found page */
.notfound { text-align: center; padding-block: clamp(2.5rem, 8vw, 6rem); }
.notfound .big { font-size: clamp(3rem, 12vw, 6rem); color: var(--terracotta); margin: 0; line-height: 1; }
.notfound .btn { margin-top: 1.5rem; }

/* ------------------------------ Gallery ------------------------------ */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery-item figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ------------------------------ Forms ------------------------------ */
.form-wrap { max-width: 640px; }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field .req { color: var(--terracotta); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.field input:focus,
.field textarea:focus { border-color: var(--sage); }
.field input[type="file"] { padding: 0.5rem; background: var(--cream); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.3rem; }

.field-error {
  color: #b00020;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}
.field-error.consent-error { margin-top: -0.6rem; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b00020; }

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.consent input { width: auto; margin-top: 0.3rem; flex: none; }
.consent label { font-weight: 400; }

/* Honeypot — hidden from humans and assistive tech, bots still fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e4efe0; border: 1px solid var(--sage); color: #33502a; }
.form-status.error { background: #fbe4e0; border: 1px solid #b00020; color: #7a1a10; }

/* ------------------------------ Contact info ------------------------------ */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin-bottom: 0.8rem; }
.info-list strong { display: block; color: var(--terracotta-dark); }

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ------------------------------ Legal / prose ------------------------------ */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: var(--ink);
  color: #e9ded3;
  padding-block: 2.5rem;
  margin-top: 3rem;
}
.site-footer a { color: #f0c9b6; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: #c9bcae;
}

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

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