:root {
  color-scheme: dark;
  --ink: #ece7da;
  --muted: #b9c1b6;
  --gold: #d8bb88;
  --line: #ece7da26;
  --bg: #141a18;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.75 Arial,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
a:hover {
  color: var(--gold);
}
img {
  max-width: 100%;
}
.site-header,
.site-footer {
  padding: 25px max(6vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
nav a {
  text-decoration: none;
  font-size: 13px;
}
.brand {
  text-decoration: none;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 11px;
}
.brand b {
  display: block;
  font:
    28px/1.2 Georgia,
    serif;
  letter-spacing: 0.02em;
  text-transform: none;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  margin-top: 5px;
  color: var(--muted);
}
.site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.wrap {
  width: min(1240px, 100%);
  margin: auto;
  padding: 0 6vw;
}
.hero {
  padding: 80px 0 85px;
  background:
    linear-gradient(90deg, #101713f2, #111914b8),
    url("lounge.webp") center/cover,
    #14201b;
  min-height: 490px;
}
.eyebrow {
  font:
    11px/1.6 Arial,
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}
h1 {
  font-size: clamp(43px, 6.8vw, 84px);
  margin: 20px 0;
  letter-spacing: -0.035em;
}
.hero h1 em {
  color: var(--gold);
}
.hero p:not(.eyebrow) {
  max-width: 490px;
  color: var(--muted);
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 27px;
}
.button {
  display: inline-block;
  border: 1px solid #a38b64;
  padding: 10px 22px;
  text-decoration: none;
  font-size: 13px;
  margin-top: 15px;
}
.intro {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: end;
  padding-top: 45px;
}
.intro h2 {
  max-width: 500px;
  margin: 10px 0 25px;
}
.intro > p {
  max-width: 390px;
  color: var(--muted);
  font-size: 15px;
}
.toolbar {
  border-top: 1px solid var(--line);
  padding: 24px 0 10px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
button {
  cursor: pointer;
  background: none;
  color: var(--ink);
  border: 1px solid #657064;
  padding: 8px 12px;
  font-size: 12px;
}
button:hover,
button[aria-pressed="true"] {
  background: #dbc49b;
  border-color: #dbc49b;
  color: #17221c;
}
.search-label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  gap: 4px;
}
input {
  max-width: 100%;
  background: #1e2822;
  border: 1px solid #657064;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 14px;
}
#results {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 26px;
  padding-bottom: 60px;
}
.card {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.cover-link {
  display: block;
  text-decoration: none;
}
.thumbnail,
.type-cover {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #233027;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.meta {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 0 0;
}
.card h3 {
  margin: 10px 0;
}
.card h3 a {
  text-decoration: none;
}
.card > p:not(.meta) {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.read {
  font-size: 13px;
  margin-top: auto;
}
.type-cover {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at 90% 10%, #c49e5238, transparent 60%), #25342d;
  border: 1px solid #c9b48833;
}
.type-cover span,
.type-cover small {
  font:
    9px/1.5 Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #d2bd99;
}
.type-cover b {
  font:
    clamp(28px, 3.5vw, 45px)/1.1 Georgia,
    serif;
  color: #ece2cf;
  font-weight: 400;
}
.tone-1 {
  background:
    radial-gradient(ellipse at 90% 10%, #c49e5238, transparent 60%), #342b26;
}
.tone-2 {
  background:
    radial-gradient(ellipse at 90% 10%, #c49e5238, transparent 60%), #30262a;
}
.tone-3 {
  background:
    radial-gradient(ellipse at 90% 10%, #c49e5238, transparent 60%), #242c34;
}
.note {
  border-top: 1px solid var(--line);
  padding: 30px 0 55px;
}
.note h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.note p {
  max-width: 750px;
  color: var(--muted);
  font-size: 14px;
}
.article {
  max-width: 780px;
  margin: 55px auto 80px;
  padding: 0 26px;
}
.back {
  font-size: 12px;
  color: var(--muted);
}
.article > .eyebrow {
  margin-top: 30px;
}
.article h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.09;
  margin: 16px 0 20px;
}
.deck {
  font:
    22px/1.5 Georgia,
    serif;
  color: #c6cbbf;
  margin: 0 0 18px;
}
.article-meta {
  font:
    11px/1.7 Arial,
    sans-serif;
  color: #c1b294;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 30px;
}
.article-image {
  margin: 0 0 30px;
}
.article-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.article-image figcaption {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #aeb8ae;
  margin-top: 7px;
}
.story-body {
  font:
    18px/1.85 Georgia,
    serif;
  color: #d9ddd2;
}
.story-body > p {
  margin: 0 0 1.25em;
}
.story-body > p:first-child {
  font-size: 20px;
  line-height: 1.75;
  color: var(--ink);
}
.story-body h2 {
  font-size: 29px;
  margin: 35px 0 16px;
  line-height: 1.25;
  color: var(--ink);
}
.citation {
  font:
    10px/1 Arial,
    sans-serif;
  vertical-align: super;
  white-space: nowrap;
  margin-left: 4px;
  color: var(--gold);
}
.citation a {
  text-decoration: none;
}
.folklore {
  margin: 34px 0 22px;
  padding: 6px 0 6px 24px;
  border-left: 2px solid #b69b6f;
}
.folklore .eyebrow {
  font-size: 9px;
  margin: 0 0 9px;
}
.folklore h2 {
  font-size: 23px;
  margin: 0 0 12px;
  line-height: 1.3;
}
.folklore p:not(.eyebrow) {
  font:
    16px/1.8 Georgia,
    serif;
  color: #cbd2c5;
  margin: 0;
}
.fyi {
  font:
    14px/1.8 Arial,
    sans-serif;
  color: var(--muted);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fyi strong {
  color: var(--gold);
}
.recipe-links {
  margin: 35px 0;
}
.recipe-links h2 {
  font-size: 30px;
  margin: 10px 0;
}
.small {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.recipe-links ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.recipe-links li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.recipe-links li > a {
  font:
    20px/1.35 Georgia,
    serif;
  color: var(--gold);
  text-decoration: none;
}
.recipe-links li > a:hover {
  text-decoration: underline;
}
.recipe-links li > span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
}
.sources {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sources h2 {
  font-size: 22px;
  color: var(--ink);
}
.sources ol {
  padding-left: 22px;
}
.sources li {
  margin: 10px 0;
  scroll-margin-top: 30px;
}
.sources li:target {
  color: var(--gold);
}
.related {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.related a {
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  left: 15px;
}
.skip:focus {
  top: 15px;
  z-index: 10;
  background: var(--bg);
  padding: 10px;
}
.empty {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro {
    display: block;
  }
  .site-header {
    align-items: flex-start;
  }
  .hero {
    padding: 65px 0;
  }
  .type-cover b {
    font-size: 40px;
  }
}
@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    padding: 22px;
  }
  .site-header nav {
    gap: 15px;
  }
  .wrap {
    padding: 0 22px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    min-height: 440px;
    padding: 50px 0 60px;
  }
  .intro h2 {
    font-size: 32px;
  }
  .article {
    padding: 0 22px;
    margin-top: 32px;
  }
  .story-body {
    font-size: 17px;
    line-height: 1.85;
  }
  .story-body > p:first-child {
    font-size: 19px;
  }
  .deck {
    font-size: 21px;
  }
  .article h1 {
    font-size: 42px;
    overflow-wrap: break-word;
  }
  .folklore {
    padding-left: 18px;
  }
  .related {
    flex-direction: column;
  }
  .site-footer {
    padding: 25px 22px;
  }
  .search-label {
    width: 100%;
  }
  .type-cover b {
    font-size: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .site-header,
  .site-footer,
  .back,
  .related,
  .skip,
  .hero,
  .toolbar {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .article {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .story-body,
  .story-body > p:first-child,
  .deck,
  .article-meta,
  .folklore p:not(.eyebrow),
  .sources,
  .fyi,
  .small,
  .recipe-links li > span {
    color: black;
  }
  h1,
  h2,
  h3,
  a,
  .recipe-links li > a {
    color: black !important;
  }
  .article h1 {
    font-size: 36px;
  }
  .article-image {
    max-width: 400px;
  }
  .folklore,
  .recipe-links li {
    break-inside: avoid;
  }
}
/* JOURNAL LIBRARY BACKGROUNDS */

/* Journal landing-page header */
.hero {
  background:
    linear-gradient(
      to bottom,
      rgba(10, 16, 13, 0.12) 0%,
      rgba(10, 16, 13, 0.3) 65%,
      #141a18 100%
    ),
    url("../images/journal-library-hero.png") center center / cover no-repeat;
}

.hero h1 {
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.65);
}

.hero p:not(.eyebrow) {
  color: #e0e1d8;
}

/* Article pages: library surrounds a readable central panel */
body:has(main > .article) {
  background-color: #141a18;
  background-image:
    linear-gradient(rgba(10, 16, 13, 0.35), rgba(10, 16, 13, 0.65)),
    url("../images/journal-library-reading.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body:has(main > .article) .article {
  background: rgba(20, 26, 24, 0.96);
  padding: 40px clamp(22px, 4vw, 48px);
  border: 1px solid rgba(216, 187, 136, 0.16);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

body:has(main > .article) .site-header,
body:has(main > .article) .site-footer {
  background: rgba(14, 20, 17, 0.94);
}

/* Mobile */
@media (max-width: 560px) {
  .hero {
    background-position: 60% center;
  }

  body:has(main > .article) {
    background-attachment: scroll;
  }

  body:has(main > .article) .article {
    margin: 24px 12px 40px;
    padding: 28px 20px;
  }
}

/* Keep printed articles clean */
@media print {
  body:has(main > .article) {
    background: white !important;
  }

  body:has(main > .article) .article {
    background: white !important;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
}
