:root {
  --ogre-stage: #130d16;
  --ogre-stage-soft: #241528;
  --ogre-surface: #fff8ef;
  --ogre-surface-strong: #fffdf8;
  --ogre-surface-muted: #f2e8d8;
  --ogre-ink: #23161a;
  --ogre-ink-soft: #624e55;
  --ogre-lime: #b7df12;
  --ogre-lime-deep: #8fb000;
  --ogre-orange: #ff8a1c;
  --ogre-purple: #7f2b8c;
  --ogre-purple-deep: #4a1f58;
  --ogre-red: #b64137;
  --ogre-border: rgba(35, 22, 26, 0.13);
  --ogre-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  --ogre-content: min(1240px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ogre-ink);
  background:
    radial-gradient(circle at top left, rgba(183, 223, 18, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 138, 28, 0.16), transparent 28%),
    linear-gradient(180deg, #110b12 0%, #2b1830 34%, #f4ede0 34%, #f7f1e6 100%);
  font-family: "Trebuchet MS", "Gill Sans", system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ogre-lime);
  color: #1d1408;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 13, 22, 0.84);
  border-bottom: 1px solid rgba(255, 248, 239, 0.1);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: var(--ogre-content);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 12px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ogre-surface);
  text-decoration: none;
  min-width: 0;
}

.brand-lockup__logo {
  width: 62px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.32));
}

.brand-lockup__text {
  display: grid;
  gap: 2px;
}

.brand-lockup__eyebrow {
  color: rgba(255, 248, 239, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-lockup__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1;
}

.header-search {
  flex: 1 1 240px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 248, 239, 0.14);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.08);
}

.header-search input {
  min-width: 0;
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 248, 239, 0.94);
  color: var(--ogre-ink);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.header-search input:focus {
  box-shadow: 0 0 0 3px rgba(183, 223, 18, 0.26);
}

.header-search button {
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--ogre-lime);
  color: #1d1408;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ogre-surface);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav__recipe {
  border: 1px solid rgba(183, 223, 18, 0.28);
  background: rgba(255, 248, 239, 0.08);
}

.site-nav__recipe img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 248, 239, 0.12);
  outline: none;
}

.site-main {
  padding: 26px 0 56px;
}

.site-footer {
  background: var(--ogre-stage);
  color: rgba(255, 248, 239, 0.78);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0;
}

.section-hero,
.article-shell,
.empty-state {
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.96);
  box-shadow: 0 18px 44px rgba(46, 23, 40, 0.14);
}

.section-hero {
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 30px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ogre-purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-hero h1,
.article-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.section-hero p {
  max-width: 72ch;
  color: var(--ogre-ink-soft);
}

.section-copy {
  max-width: 76ch;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.section-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}

.section-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--ogre-surface-strong);
  box-shadow: 0 16px 36px rgba(46, 23, 40, 0.12);
}

.section-card a {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  min-height: 210px;
  color: inherit;
  text-decoration: none;
}

.section-card__media {
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(183, 223, 18, 0.14), transparent 34%),
    linear-gradient(180deg, #241528 0%, #4a1f58 100%);
}

.section-card__media img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

.section-card__body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.section-card__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.section-card__description,
.section-card__count {
  color: var(--ogre-ink-soft);
  font-weight: 800;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ogre-border);
  border-radius: 18px;
  background: var(--ogre-surface-strong);
  box-shadow: 0 12px 28px rgba(45, 20, 28, 0.08);
}

.post-card__media {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: var(--ogre-surface-muted);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__media--contain {
  padding: 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(183, 223, 18, 0.14), transparent 34%),
    linear-gradient(180deg, #241528 0%, #4a1f58 100%);
}

.post-card__media--contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.post-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ogre-ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.rating-pill {
  color: #1d1408;
  border-radius: 999px;
  padding: 1px 8px;
  background: var(--ogre-lime);
}

.post-card__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

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

.post-card__title a:hover,
.post-card__title a:focus-visible {
  color: var(--ogre-purple-deep);
}

.post-card__summary {
  margin: 0;
  color: var(--ogre-ink-soft);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--ogre-surface-muted);
  color: var(--ogre-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.chip:hover,
.chip:focus-visible {
  background: var(--ogre-lime);
  color: #1d1408;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--ogre-ink-soft);
  font-weight: 800;
}

.pagination a {
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--ogre-purple-deep);
  color: var(--ogre-surface);
  text-decoration: none;
}

.article-shell {
  padding: clamp(22px, 4vw, 42px);
}

.article-header {
  max-width: 860px;
  margin-bottom: 24px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.article-content {
  max-width: 76ch;
  font-size: 1.06rem;
}

.article-content h2,
.article-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.article-content img {
  border-radius: 14px;
}

.article-content pre {
  overflow-x: auto;
  border-radius: 14px;
  padding: 16px;
  background: #1b1420;
  color: #fff8ef;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-aside {
  position: sticky;
  top: 110px;
}

.empty-state {
  padding: 22px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.55fr);
  gap: clamp(14px, 2.4vw, 24px);
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(circle at top right, rgba(183, 223, 18, 0.34), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 138, 28, 0.23), transparent 30%),
    linear-gradient(135deg, #1f121f 0%, #4f2549 44%, #9a3f29 100%);
  color: var(--ogre-surface);
  box-shadow: var(--ogre-shadow);
}

.home-hero h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-style: italic;
  line-height: 0.98;
  white-space: nowrap;
}

.home-hero p {
  max-width: 62ch;
  color: rgba(255, 248, 239, 0.86);
}

.home-hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 248, 239, 0.74);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero__image {
  justify-self: end;
  width: min(100%, 290px);
  overflow: hidden;
  border: 2px solid rgba(255, 248, 239, 0.24);
  border-radius: 20px;
  padding: 6px;
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.2), rgba(255, 248, 239, 0.06)),
    rgba(19, 13, 22, 0.38);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 248, 239, 0.26);
}

.home-hero__image img {
  width: 100%;
  height: auto;
  max-height: min(34vh, 300px);
  border: 1px solid rgba(19, 13, 22, 0.46);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.hero-actions,
.section-heading,
.topic-shelf__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 15px;
  background: linear-gradient(180deg, var(--ogre-lime) 0%, var(--ogre-lime-deep) 100%);
  color: #1d1408;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(143, 176, 0, 0.25);
}

.button-link--ghost {
  border: 1px solid rgba(255, 248, 239, 0.16);
  background: rgba(255, 248, 239, 0.1);
  color: var(--ogre-surface);
  box-shadow: none;
}

.home-section,
.topic-shelves {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2,
.browse-panel h2,
.topic-shelf h2,
.review-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.section-heading p {
  margin: 0;
  color: var(--ogre-ink-soft);
}

.home-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
}

.latest-list,
.browse-panel,
.topic-shelf,
.review-panel {
  border-radius: 20px;
  background: rgba(255, 248, 239, 0.96);
  box-shadow: 0 16px 36px rgba(46, 23, 40, 0.12);
}

.latest-list a,
.browse-panel a,
.topic-shelf__items a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ogre-border);
  color: inherit;
  text-decoration: none;
}

.latest-list a:last-child,
.browse-panel a:last-child,
.topic-shelf__items a:last-child {
  border-bottom: 0;
}

.latest-list span,
.topic-shelf__items span {
  color: var(--ogre-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.browse-panel {
  padding: 16px;
}

.browse-panel a {
  border-radius: 12px;
  border-bottom: 0;
  background: var(--ogre-surface-muted);
  margin-top: 8px;
  font-weight: 900;
}

.browse-panel__recipe {
  background:
    linear-gradient(90deg, rgba(183, 223, 18, 0.92), rgba(255, 138, 28, 0.78)) !important;
  color: #1d1408 !important;
}

.topic-shelves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.topic-shelf {
  padding: 16px;
}

.topic-shelf__heading a {
  color: var(--ogre-purple-deep);
  font-weight: 900;
}

.topic-shelf__items p {
  color: var(--ogre-ink-soft);
}

.review-panel {
  overflow: hidden;
}

.review-panel__cover {
  width: 100%;
  background: var(--ogre-surface-muted);
}

.review-panel__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.review-panel__body p {
  margin: 0;
  color: var(--ogre-ink-soft);
}

.review-panel__rating {
  display: inline-flex;
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--ogre-lime);
  color: #1d1408 !important;
  font-weight: 900;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.term-card a {
  display: grid;
  gap: 6px;
  min-height: 94px;
  border-radius: 16px;
  padding: 16px;
  background: var(--ogre-surface-strong);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(45, 20, 28, 0.08);
}

.term-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.term-card span {
  color: var(--ogre-ink-soft);
  font-weight: 800;
}

.not-found {
  min-height: 380px;
  display: grid;
  align-content: center;
}

.search-shell {
  display: grid;
  gap: 18px;
}

.search-panel {
  border-radius: 28px;
  padding: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(circle at top right, rgba(183, 223, 18, 0.28), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 138, 28, 0.2), transparent 30%),
    linear-gradient(135deg, #1f121f 0%, #4f2549 54%, #9a3f29 100%);
  color: var(--ogre-surface);
  box-shadow: var(--ogre-shadow);
}

.search-panel .eyebrow {
  color: rgba(255, 248, 239, 0.74);
}

.search-panel h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1 1 300px;
  min-height: 52px;
  border: 1px solid rgba(255, 248, 239, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 248, 239, 0.96);
  color: var(--ogre-ink);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.search-input:focus {
  border-color: var(--ogre-lime);
  box-shadow: 0 0 0 4px rgba(183, 223, 18, 0.24);
}

.search-status {
  margin: 14px 0 0;
  color: rgba(255, 248, 239, 0.76);
  font-weight: 800;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result {
  border-radius: 18px;
  padding: 18px;
  background: var(--ogre-surface-strong);
  box-shadow: 0 12px 28px rgba(45, 20, 28, 0.08);
}

.search-result h2 {
  margin: 8px 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.search-result h2 a {
  color: inherit;
  text-decoration: none;
}

.search-result h2 a:hover,
.search-result h2 a:focus-visible {
  color: var(--ogre-purple-deep);
}

.search-result p {
  margin: 0 0 12px;
  color: var(--ogre-ink-soft);
}

@media (max-width: 860px) {
  .home-hero,
  .home-section--split,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    align-items: flex-start;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  :root {
    --ogre-content: min(100vw - 20px, 1240px);
  }

  .site-header__inner {
    gap: 10px;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .brand-lockup__logo {
    width: 50px;
    height: 50px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-hero h1,
  .section-hero h1,
  .article-header h1 {
    font-size: 2.15rem;
  }

  .home-hero h1 {
    white-space: normal;
  }
}
