/* Fondue Wiki — alpine cookbook */

:root {
  --fw-cream: #f4ebe0;
  --fw-paper: #fffaf3;
  --fw-ink: #2a1c14;
  --fw-ink-soft: #6b5346;
  --fw-line: #e4d5c4;
  --fw-burgundy: #8b2e3a;
  --fw-burgundy-deep: #6a1f2a;
  --fw-gold: #c4a35a;
  --fw-cheese: #e8b84a;
  --fw-pine: #3d5a4c;
  --fw-success: #1a9f4a;
  --fw-warning: #e07a28;
  --fw-danger: #c0392b;
  --fw-shadow: 0 18px 50px rgba(42, 28, 20, 0.08);
  --fw-radius: 18px;
  --fw-font: "Source Sans 3", system-ui, sans-serif;
  --fw-display: "Fraunces", Georgia, serif;
  --fw-tap: 44px;
  color-scheme: light;
}

html.dark {
  --fw-cream: #120e0c;
  --fw-paper: #1c1613;
  --fw-ink: #f4e7d6;
  --fw-ink-soft: #c9b4a0;
  --fw-line: #3a2d26;
  --fw-burgundy: #e07a86;
  --fw-burgundy-deep: #f0a0a8;
  --fw-gold: #e0c07a;
  --fw-cheese: #f0c86a;
  --fw-pine: #8fbfa6;
  --fw-success: #3ecf6a;
  --fw-warning: #f0a04b;
  --fw-danger: #f07178;
  --fw-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--fw-font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fw-ink);
  overflow-x: clip;
  max-width: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 184, 74, 0.18), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(139, 46, 58, 0.12), transparent 50%),
    var(--fw-cream);
}

a {
  color: var(--fw-burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fw-burgundy-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  contain-intrinsic-size: auto 240px;
}

h1, h2, h3, .fw-hero__title, .fw-recipe__title {
  font-family: var(--fw-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fw-ink);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fw-skip {
  position: absolute;
  left: 1rem;
  top: -40rem;
  z-index: 100;
  background: var(--fw-paper);
  padding: 0.75rem 1rem;
}
.fw-skip:focus {
  top: 1rem;
}

.fw-page {
  min-height: 100vh;
}

.fw-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--fw-paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fw-line);
}

.fw-header__bar {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.fw-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.fw-brand__icon {
  width: var(--fw-tap);
  height: var(--fw-tap);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--fw-cheese), var(--fw-gold));
  color: #2a1c14;
  flex: 0 0 auto;
}

.fw-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fw-brand__name {
  font-family: var(--fw-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fw-brand__tag {
  display: none;
  font-size: 0.75rem;
  color: var(--fw-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
}

.fw-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  z-index: 45;
}

.fw-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.85rem 0.9rem;
  gap: 0.15rem;
  background: var(--fw-paper);
  border-bottom: 1px solid var(--fw-line);
  flex-direction: column;
  box-shadow: var(--fw-shadow);
}

.fw-nav.is-open .fw-nav__list {
  display: flex;
}

.fw-nav__list a {
  display: flex;
  align-items: center;
  min-height: var(--fw-tap);
  padding: 0 0.85rem;
  color: var(--fw-ink);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
}

.fw-nav__list a:hover,
.fw-nav__list .current-menu-item > a {
  background: color-mix(in srgb, var(--fw-burgundy) 12%, transparent);
  color: var(--fw-burgundy-deep);
}

.fw-header__tools {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.fw-iconbtn,
.fw-btn {
  min-height: var(--fw-tap);
  min-width: var(--fw-tap);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.fw-iconbtn {
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--fw-ink);
}

.fw-iconbtn:hover,
.fw-iconbtn:focus-visible {
  background: color-mix(in srgb, var(--fw-ink) 8%, transparent);
  outline: none;
}

.fw-theme__moon { display: none; }
html.dark .fw-theme__sun { display: none; }
html.dark .fw-theme__moon { display: inline; }

.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1.15rem;
  text-decoration: none;
}

.fw-btn--primary {
  background: var(--fw-burgundy);
  color: #fffaf3;
  box-shadow: 0 8px 20px rgba(139, 46, 58, 0.25);
}
.fw-btn--primary:hover {
  background: var(--fw-burgundy-deep);
  color: #fff;
}

.fw-btn--ghost {
  background: transparent;
  color: var(--fw-ink);
  border: 1px solid var(--fw-line);
}
.fw-btn--ghost:hover {
  border-color: var(--fw-burgundy);
  color: var(--fw-burgundy);
}

.fw-search {
  border-bottom: 1px solid var(--fw-line);
  background: var(--fw-paper);
}

.fw-search__form {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 0.85rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.fw-search__form input {
  grid-column: 1 / -1;
}

.fw-search__form input,
.fw-news__form input,
.fw-prose input,
.fw-prose textarea,
.comment-form input,
.comment-form textarea {
  min-height: var(--fw-tap);
  border: 1px solid var(--fw-line);
  border-radius: 12px;
  background: var(--fw-paper);
  color: var(--fw-ink);
  padding: 0 0.9rem;
  font: inherit;
  width: 100%;
}

.fw-search__form input:focus,
.fw-news__form input:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--fw-gold) 55%, transparent);
  border-color: var(--fw-gold);
}

.fw-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0.85rem 2.6rem;
}

.fw-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.45rem 1rem 1.7rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--fw-paper) 80%, var(--fw-gold)) 0%, var(--fw-paper) 55%);
  border: 1px solid var(--fw-line);
  box-shadow: var(--fw-shadow);
  margin-bottom: 1.6rem;
}

.fw-hero__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 184, 74, 0.45), transparent 70%);
  pointer-events: none;
}

.fw-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fw-burgundy);
  margin: 0 0 0.6rem;
}

.fw-hero__title {
  font-size: clamp(1.7rem, 8vw, 3.4rem);
  margin: 0 0 0.75rem;
  max-width: 14ch;
}

.fw-hero__lede,
.fw-lede {
  color: var(--fw-ink-soft);
  max-width: 42ch;
  margin: 0 0 1.2rem;
}

.fw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fw-hero__actions .fw-btn {
  flex: 1 1 10rem;
}

.fw-section {
  margin: 2.4rem 0;
}

.fw-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.fw-section__head h2 {
  margin: 0;
  font-size: 1.7rem;
}

.fw-link {
  font-weight: 700;
}

.fw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.fw-card {
  background: var(--fw-paper);
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  overflow: hidden;
  box-shadow: var(--fw-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.fw-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  background: color-mix(in srgb, var(--fw-gold) 25%, var(--fw-cream));
  overflow: hidden;
  min-width: 0;
}

.fw-card__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.fw-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--fw-burgundy);
  opacity: 0.5;
}

.fw-card__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.fw-card__title {
  margin: 0;
  font-size: 1.2rem;
}

.fw-card__title a {
  color: inherit;
  text-decoration: none;
}

.fw-card__title a:hover {
  color: var(--fw-burgundy);
}

.fw-card__meta {
  margin: 0;
  color: var(--fw-ink-soft);
  font-size: 0.92rem;
}

.fw-card__stats {
  display: flex;
  gap: 0.9rem;
  color: var(--fw-ink-soft);
  font-size: 0.88rem;
  margin-top: auto;
}

.fw-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fw-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fw-gold) 22%, var(--fw-paper));
  color: var(--fw-ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.fw-pill--lg {
  min-height: var(--fw-tap);
  padding: 0 1rem;
  font-size: 0.95rem;
  background: var(--fw-paper);
  border: 1px solid var(--fw-line);
}

.fw-pill:hover {
  background: var(--fw-burgundy);
  color: #fffaf3;
  border-color: transparent;
}

.fw-guides {
  display: grid;
  gap: 0.8rem;
}

.fw-guide {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: var(--fw-paper);
  border: 1px solid var(--fw-line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

.fw-guide__icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fw-pine) 16%, var(--fw-paper));
  color: var(--fw-pine);
}

.fw-guide__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fw-burgundy);
}

.fw-guide__title {
  font-weight: 700;
}

.fw-archive-head {
  margin: 0.4rem 0 1.6rem;
}

.fw-archive-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.fw-recipe__hero {
  margin-bottom: 1.4rem;
}

.fw-recipe__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.4rem 0 0.6rem;
}

.fw-recipe__note {
  font-family: var(--fw-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--fw-ink-soft);
  max-width: 40rem;
}

.fw-facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding: 0;
  margin: 1.1rem 0;
}

.fw-facts li {
  background: var(--fw-paper);
  border: 1px solid var(--fw-line);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}

.fw-facts__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-ink-soft);
  font-weight: 700;
}

.fw-recipe__toolbar {
  display: flex;
  gap: 0.5rem;
}

.fw-gallery {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
}

.fw-gallery__hero img,
.fw-gallery__thumb img,
.fw-page-hero img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.fw-gallery__hero img {
  aspect-ratio: 16 / 10;
}

.fw-gallery__thumb img {
  aspect-ratio: 4 / 3;
}

.fw-recipe__grid {
  display: grid;
  gap: 1.4rem;
}

.fw-ingredients {
  background: var(--fw-paper);
  border: 1px solid var(--fw-line);
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1.4rem;
}

.fw-ingredients h2,
.fw-method h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.fw-ingredients ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-ingredients li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--fw-line);
}

.fw-prose {
  font-size: 1.08rem;
}

.fw-prose p {
  margin: 0 0 1rem;
}

.fw-aff {
  margin: 1.6rem 0;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--fw-line);
  background: color-mix(in srgb, var(--fw-gold) 14%, var(--fw-paper));
  display: grid;
  gap: 0.8rem;
}

.fw-aff__title {
  margin: 0;
  font-weight: 700;
}

.fw-aff__note {
  margin: 0.25rem 0 0;
  color: var(--fw-ink-soft);
  font-size: 0.92rem;
}

.fw-ad {
  margin: 1.4rem 0;
  padding: 0.8rem;
  border: 1px dashed var(--fw-line);
  border-radius: 14px;
}

.fw-ad__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-ink-soft);
  margin-bottom: 0.4rem;
}

.fw-news {
  background: var(--fw-paper);
  border-top: 1px solid var(--fw-line);
}

.fw-news__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.6rem 1.1rem;
  display: grid;
  gap: 1rem;
}

.fw-news__copy {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.fw-news__copy h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.fw-news__copy p {
  margin: 0;
  color: var(--fw-ink-soft);
}

.fw-news__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fw-burgundy) 12%, var(--fw-paper));
  color: var(--fw-burgundy);
  flex: 0 0 auto;
}

.fw-news__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fw-news__form input {
  flex: 1 1 100%;
}

.fw-news__form .fw-btn {
  flex: 1 1 100%;
}

.fw-footer {
  border-top: 1px solid var(--fw-line);
  padding: 2rem 1.1rem 2.4rem;
}

.fw-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.fw-footer__lead {
  color: var(--fw-ink-soft);
  max-width: 36ch;
}

.fw-footer__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0;
}

.fw-footer__copy {
  color: var(--fw-ink-soft);
  font-size: 0.9rem;
}

.fw-empty {
  text-align: center;
  padding: 3rem 0 4rem;
}

.fw-empty h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.fw-pager {
  margin-top: 1.6rem;
}

.fw-pager .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fw-pager a,
.fw-pager span {
  min-height: var(--fw-tap);
  min-width: var(--fw-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--fw-line);
  text-decoration: none;
  color: var(--fw-ink);
}

.fw-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(92vw, 360px);
}

.fw-toast {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: #fff;
  box-shadow: var(--fw-shadow);
  font-weight: 600;
}

.fw-toast--success { background: var(--fw-success); }
.fw-toast--error { background: var(--fw-danger); }
.fw-toast--info { background: var(--fw-warning); }

.fw-lang {
  position: relative;
}

.fw-lang .dlx-switcher__summary,
.fw-lang .dlx-switcher__item a {
  min-height: var(--fw-tap);
  min-width: var(--fw-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  text-decoration: none;
  color: var(--fw-ink);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
}

.fw-lang .dlx-switcher__name,
.fw-lang .dlx-switcher__code {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.fw-lang .dlx-switcher__flag {
  width: 22px;
  height: 15px;
}

.fw-lang .dlx-switcher--dropdown .dlx-switcher__list {
  background: var(--fw-paper);
  border: 1px solid var(--fw-line);
  color: var(--fw-ink);
  right: 0;
  left: auto;
}

.fw-lang .dlx-switcher--dropdown .dlx-switcher__item a {
  justify-content: flex-start;
  min-width: 9rem;
  gap: 0.45rem;
}

.fw-lang .dlx-switcher--dropdown .dlx-switcher__item .dlx-switcher__name,
.fw-lang .dlx-switcher--dropdown .dlx-switcher__item .dlx-switcher__code {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

body.fw-nav-open {
  overflow: hidden;
}

.fw-page-content {
  max-width: 760px;
}

.fw-page-hero {
  margin: 0 0 1.4rem;
}

html.dark body {
  background:
    radial-gradient(1000px 420px at 0% -10%, rgba(224, 122, 134, 0.12), transparent 50%),
    var(--fw-cream);
}

@media (min-width: 480px) {
  .fw-facts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 700px) {
  .fw-grid { grid-template-columns: 1fr 1fr; }
  .fw-guides { grid-template-columns: 1fr 1fr; }
  .fw-facts { grid-template-columns: repeat(4, 1fr); }
  .fw-gallery {
    grid-template-columns: 2fr 1fr;
  }
  .fw-gallery__hero { grid-row: span 2; }
  .fw-header__bar { padding: 0.65rem 1.1rem; }
  .fw-brand__name { font-size: 1.15rem; }
  .fw-brand__tag { display: block; }
  .fw-nav {
    position: static;
    margin-left: auto;
    z-index: auto;
  }
  .fw-nav__toggle { display: none; }
  .fw-nav__list {
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .fw-nav__list a { border-radius: 999px; }
  .fw-header__tools { margin-left: 0; }
  .fw-hero { padding: 3.2rem 2.4rem; border-radius: 28px; }
  .fw-hero__actions .fw-btn { flex: 0 0 auto; }
  .fw-main { padding: 1.25rem 1.1rem 3rem; }
  .fw-search__form {
    display: flex;
    padding: 0.75rem 1.1rem 1rem;
  }
  .fw-search__form input { grid-column: auto; }
  .fw-aff {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .fw-news__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
  .fw-news__form input,
  .fw-news__form .fw-btn {
    flex: 1 1 auto;
  }
}

@media (min-width: 980px) {
  .fw-grid { grid-template-columns: 1fr 1fr 1fr; }
  .fw-recipe__grid { grid-template-columns: 0.9fr 1.4fr; align-items: start; }
  .fw-ingredients { position: sticky; top: 5.2rem; }
}

.fw-prose img,
.fw-prose iframe,
.fw-prose video,
.fw-prose figure {
  max-width: 100%;
  height: auto;
}

.fw-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

@media print {
  .fw-header, .fw-footer, .fw-news, .fw-aff, .fw-ad, .fw-recipe__toolbar, .fw-search, .fw-toasts {
    display: none !important;
  }
  body { background: #fff; color: #111; }
  .fw-main { max-width: none; }
  .fw-ingredients { break-inside: avoid; }
}
