/*
  ARTICLE LAYOUT
  Shared by every free read in /resources/.
  Colours and fonts come from /settings.css.
*/

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(29,94,124,0.12);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(29,94,124,0.12);
  gap: 0;
  z-index: 99;
}

.nav-links.open li { padding: 10px 0; border-bottom: 1px solid rgba(29,94,124,0.07); }
.nav-links.open li:last-child { border-bottom: none; }

/* ── ARTICLE HEADER ── */
.article-hero {
  padding: 132px 24px 56px;
  background: var(--sand);
}

.article-hero-inner { max-width: 720px; margin: 0 auto; }

/* Wider screens: the header starts at the left edge of the contents box,
   so the page doesn't lean to the right. */
@media (min-width: 1000px) {
  .article-hero-inner { max-width: 1000px; }
  .article-hero-inner > * { max-width: 780px; }
}

.breadcrumb { font-size: 13px; color: var(--ink-light); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-light);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 18px;
}

.article-hero h1 em { font-style: italic; color: var(--accent); }

/* Header with an illustration: on the right of the title on computers, above it on phones
   (articles and guide tasters; pictures in /images/reads/ and /images/guides/) */
.hero-with-art .article-hero-inner { display: flex; flex-direction: column; gap: 20px; }
.hero-art { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 2 / 1; border-radius: 14px; order: -1; }
@media (min-width: 1000px) {
  .hero-with-art .article-hero-inner { max-width: 1048px; flex-direction: row; align-items: center; gap: 48px; }
  .hero-text { flex: 1 1 auto; min-width: 0; }
  .hero-art { order: 0; flex: 0 0 340px; }
}

.article-lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
}

.article-meta { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-light); line-height: 1.5; }
.article-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-meta strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }

/* ── ARTICLE BODY ── */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.article { min-width: 0; }

/* Wider screens: contents on the left, sticky while you scroll */
@media (min-width: 1000px) {
  .article-wrap {
    max-width: 1048px;
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    gap: 40px;
    align-items: start;
  }
  .contents { position: sticky; top: 96px; margin-bottom: 0; }
}

.article h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  margin: 56px 0 12px;
  scroll-margin-top: 90px;
}

.article h2:first-child { margin-top: 0; }
.article h2 em { font-style: italic; color: var(--accent); }
.h-emoji { font-style: normal; margin-right: 4px; }

.article h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
}

.article p { color: var(--ink-mid); margin-bottom: 16px; }
.article a { color: var(--accent); }
.article strong { color: var(--ink); font-weight: 500; }

.article ul { margin: 0 0 16px 20px; color: var(--ink-mid); }
.article li { margin-bottom: 8px; }

/* Contents box */
.contents {
  background: var(--sand);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 8px;
}

.contents p { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 8px; }
.contents ol { margin-left: 20px; color: var(--ink-mid); }
.contents li { margin-bottom: 4px; }
.contents a { color: var(--ink-mid); text-decoration: none; }
.contents a:hover, .contents a.current { color: var(--accent); }
.contents a.current { font-weight: 500; }
@media (max-width: 999px) { .contents { margin-bottom: 24px; } }

/* One place or activity */
.spot {
  border-top: 1px solid var(--sand-dark);
  padding: 22px 0 6px;
}

.spot p { margin-bottom: 10px; }

/* Who it suits and where: plain text, not buttons */
.spot-meta {
  font-size: 13px !important;
  color: var(--ink-light) !important;
  margin-bottom: 8px !important;
}

.spot-meta span + span::before { content: "·"; margin: 0 8px; }

.tip {
  background: rgba(237,178,74,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 15px;
  margin: 4px 0 14px !important;
}
.tip strong { color: var(--accent); }

/* Highlighted note */
.note {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  padding: 16px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.note p { margin: 0; font-size: 15px; }

/* Closing call to action */
.article-cta {
  background: var(--ink);
  border-radius: 16px;
  padding: 36px 32px;
  margin-top: 56px;
  text-align: center;
}

.article-cta h2 { color: var(--sand); margin: 0 0 10px; }
.article-cta h2 em { color: rgba(255,255,255,0.65); }
.article-cta p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 24px; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white !important;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.back-link { margin-top: 32px; font-size: 14px; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 48px 40px 32px; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-links { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: var(--sand); }

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 32px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .article-hero { padding: 112px 24px 44px; }
  footer { padding: 40px 24px 24px; }
}

@media (max-width: 600px) {
  .article-cta { padding: 28px 20px; }
}

/* December guide: a card that points to the What's on page (Oct 2026) */
.wo-teaser { display: flex; gap: 18px; align-items: center; margin: 8px 0 14px; padding: 14px; border: 1px solid var(--sand-dark); border-radius: 16px; background: var(--white); text-decoration: none; color: var(--ink); transition: box-shadow 0.2s; }
.wo-teaser:hover { box-shadow: 0 8px 24px rgba(20,36,47,0.08); }
.wo-teaser img { width: 150px; height: auto; flex: none; border-radius: 10px; }
.wo-teaser strong { display: block; font-size: 17px; margin-bottom: 4px; }
.wo-teaser span span { display: block; font-size: 14px; color: var(--ink-mid); line-height: 1.5; }
.wo-teaser b { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--accent); }
@media (max-width: 520px) { .wo-teaser { flex-direction: column; align-items: flex-start; } .wo-teaser img { width: 100%; } }
