:root {
  --green: #0f2a1f;
  --green-2: #183b2c;
  --cream: #f4f0e6;
  --black: #111;
  --muted: rgba(17, 17, 17, 0.72);
  --line: rgba(15, 42, 31, 0.14);
  --card: rgba(244, 240, 230, 0.92);
  --radius: 18px;
  --max: 1080px;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Calibri,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--black);
  background: var(--cream);
  line-height: 1.55;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 999;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

/* innehållet i navet (centrerat) */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.brand-text strong {
  display: block;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.brand-text em {
  display: block;
  font-style: italic;
  color: rgba(17, 17, 17, 0.7);
  margin-top: -2px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  color: rgba(17, 17, 17, 0.9);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.nav-list a:hover {
  background: rgba(15, 42, 31, 0.06);
}

.hero {
  position: relative;
  margin: 0;
  min-height: 78vh;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 42, 31, 0.78),
    rgba(15, 42, 31, 0.35),
    rgba(15, 42, 31, 0.18)
  );
}

.hero-caption {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  margin-bottom: 44px;
  background: rgba(244, 240, 230, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--line);
  background: #fff;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.2px;
}

.slogan {
  margin: 6px 0 8px;
  font-style: italic;
  font-size: 18px;
  color: rgba(17, 17, 17, 0.75);
}

.hero-sub {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.hero-actions {
  margin: 16px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--cream);
}
.button:hover {
  opacity: 0.95;
}
.button.ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--line);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding: 48px 0;
}

.section.alt {
  background: rgba(15, 42, 31, 0.05);
  border: 1px solid rgba(15, 42, 31, 0.08);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.card p {
  margin: 0 0 10px;
  color: rgba(17, 17, 17, 0.82);
}

.card p:last-child {
  margin-bottom: 0;
}

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

.card h3 {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 18px;
}

.note {
  margin: 0;
  color: var(--muted);
}

.price {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.price h3 {
  margin: 0 0 6px;
  font-weight: 900;
}

.price ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.recipe-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.chip {
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.92);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
}
.chip[aria-pressed="true"] {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.recipe {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.recipe h3 {
  margin-top: 0;
  font-weight: 900;
}
.recipe h4 {
  margin-bottom: 6px;
  font-weight: 900;
}
.recipe ul,
.recipe ol {
  margin-top: 8px;
}

.muted {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: rgba(17, 17, 17, 0.75);
}

.site-footer strong {
  font-weight: 900;
}
.site-footer em {
  font-style: italic;
}

/* Produktkort med bild */
.product figure {
  margin: 0;
  display: grid;
  grid-template-rows: 220px auto; /* 200px = bildyta, auto = text */
  gap: 12px;

  place-items: center;
}

.product figure > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.product figure > img.zoom-out {
  width: 65%;
  height: 65%;
}

.product figcaption {
  width: 100%;
}

/* Gör produktkort klickbara */
.product {
  background: transparent;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.product:hover {
  transform: translateY(-2px);
  background: rgba(15, 42, 31, 0.04);
}

/* Receptbild */

.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;

  min-width: 0;
}

.recipe-figure {
  margin: 0;
}
.recipe-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 42, 31, 0.12);
  background: #f4f0e6; /* gräddvit bakgrund om bilden inte fyller */
}

.recipe-text {
  max-width: 60ch;
}

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

.ingredients {
  margin-top: 10px;
  border-top: 1px solid rgba(15, 42, 31, 0.1);
  padding-top: 10px;
}

.ingredients summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.85);
}

.ingredients summary::-webkit-details-marker {
  display: none;
}

.ingredients summary::after {
  content: "▾";
  font-weight: 900;
}

.ingredients[open] summary::after {
  content: "▴";
}

.ingredients p {
  margin: 10px 0 0;
}

@media (max-width: 720px) {
  .nav-list {
    display: none;
  } /* enkel: göm menyn på mobil (kan göra hamburger senare) */
  .hero-caption {
    margin-bottom: 24px;
  }
  .recipe-layout {
    grid-template-columns: 1fr;
  }
  .recipe-text {
    max-width: 100%;
  }
  .section.alt {
    padding: 28px 16px;
  }
}
