/* ============================================
   Design tokens
   ============================================ */
:root {
  --bg: #efeae0;
  --bg-raised: #f6f2ea;
  --ink: #2a241e;
  --ink-soft: #5a5148;
  --burgundy: #7a2e2e;
  --brass: #a6873d;
  --brass-deep: #8a6d2c;
  --sage: #5c6b4f;
  --rule: #d9d0bd;

  --display: "Fraunces", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --label: "Jost", Arial, sans-serif;

  --measure: 42rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a:hover, a:focus-visible {
  border-bottom-color: var(--burgundy);
}
a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

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

/* ============================================
   Layout shell
   ============================================ */
.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-wide {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Masthead
   ============================================ */
.masthead {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.site-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.site-title a {
  color: var(--ink);
  border-bottom: none;
}
.site-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass-deep);
}

.crest {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.7rem;
  border-bottom: none;
}
.crest svg { width: 100%; height: 100%; display: block; }

/* Brass double rule with a center diamond, under the masthead */
.rule-brass {
  position: relative;
  height: 5px;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}
.rule-brass::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--brass);
  border: 3px solid var(--bg);
  box-sizing: content-box;
  transform: translate(-50%, -50%) rotate(45deg);
}

.tagline {
  font-family: var(--body);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

.nav {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--label);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.nav a {
  color: var(--ink);
  border-bottom: none;
  padding-bottom: 2px;
}
.nav a:hover, .nav a.active {
  color: var(--burgundy);
  border-bottom: 1px solid var(--burgundy);
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.rule-thick {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0;
}

/* Fleuron divider — the signature element */
.fleuron {
  text-align: center;
  color: var(--brass);
  font-size: 1.1rem;
  margin: 2.75rem 0;
  letter-spacing: 0.5em;
}
.fleuron::before { content: "❧"; }

/* ============================================
   Homepage
   ============================================ */
.welcome {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  max-width: 40rem;
  margin: 2.6rem auto 0;
  padding: 1.6rem 1.8rem;
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.welcome svg { flex: 0 0 96px; width: 96px; height: 96px; }
.welcome h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 0 0 0.3rem;
}
.welcome p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.welcome a {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-label {
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
  margin: 3rem 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before, .section-label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}
.lead .entry-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.lead-body { min-width: 0; }

.card-img {
  display: block;
  border-bottom: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.card-img svg { width: 100%; height: 100%; display: block; transition: transform 0.4s ease; }
.card-img:hover svg { transform: scale(1.02); }
.lead .card-img { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.6rem 2.2rem;
}
.grid article { min-width: 0; }
.grid .entry-title { font-size: 1.35rem; }
.grid .entry-excerpt { font-size: 0.98rem; }

/* ============================================
   Post list (editorial style, not cards)
   ============================================ */
.post-list {
  padding: 2.5rem 0 1rem;
}

.entry {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.entry:first-child { padding-top: 0; }

.entry-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  margin-bottom: 1.1rem;
  overflow: hidden;
}
.entry-image svg { width: 100%; height: 100%; display: block; }

.entry-meta {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--sage);
  margin-bottom: 0.6rem;
}
.entry-meta .dot { margin: 0 0.5em; color: var(--rule); }

.entry-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.entry-title a {
  color: var(--ink);
  border-bottom: none;
}
.entry-title a:hover {
  color: var(--burgundy);
}

.entry-excerpt {
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  max-width: var(--measure);
}

.read-more {
  font-family: var(--label);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* Featured / hero post */
.featured {
  padding: 0.5rem 0 2rem;
}
.featured .entry-title {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
}
.featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d9cfb8, #c9b98f);
  border-radius: 2px;
  margin-bottom: 1.4rem;
}

/* ============================================
   Single post page
   ============================================ */
.post-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.post-header .entry-meta { justify-content: center; display: flex; }
.post-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin: 0.4rem 0 0.3rem;
  text-wrap: balance;
}
.post-subtitle {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.post-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding-bottom: 3rem;
}
.post-body p { margin: 0 0 1.3rem; }

/* Drop cap — signature detail on first paragraph */
.post-body p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 600;
  font-size: 4.2rem;
  line-height: 0.78;
  float: left;
  padding: 0.05em 0.1em 0 0;
  color: var(--burgundy);
}

/* Section headings: centered burgundy with a brass diamond */
.post-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4.5vw, 2rem);
  line-height: 1.3;
  color: var(--burgundy);
  text-align: center;
  text-wrap: balance;
  margin: 3.2rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  position: relative;
  scroll-margin-top: 1rem;
}
.post-body h2::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--brass);
  transform: translateX(-50%) rotate(45deg);
}

.post-body blockquote {
  border-left: 3px solid var(--brass);
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  font-style: italic;
  color: var(--ink-soft);
}

.post-body ul { padding-left: 1.3em; margin: 0 0 1.3rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body li p { margin: 0 0 0.4rem; }

.post-body img {
  width: auto;
  height: auto;
  max-height: 34rem;
  border-radius: 3px;
  margin: 1.4rem auto 1.6rem;
}
.post-body .cap {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
  margin-top: -1.2rem;
}

.post-hero {
  max-width: 56rem;
  margin: 0 auto 2.5rem;
}
.post-hero svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.disclosure-note {
  max-width: var(--measure);
  margin: 0 auto 2.5rem;
  padding: 1rem 1.3rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.disclosure-note a { color: var(--ink-soft); border-bottom: 1px solid var(--rule); }

/* Gift guide pieces */
.pick h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 2rem 0 0.5rem;
}
.pick .num { color: var(--brass); margin-right: 0.4em; }
.price {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 99px;
  padding: 0 0.55em;
  margin-left: 0.5em;
  vertical-align: 3px;
}
.shop {
  font-family: var(--label);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.shop a {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--burgundy);
  border-radius: 99px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--burgundy);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.shop a:hover, .shop a:focus-visible {
  background: var(--burgundy);
  color: var(--bg-raised);
  border-bottom-color: var(--burgundy);
}
.toc {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.2rem;
  font-family: var(--label);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.toc b {
  display: block;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.toc a { display: inline-block; margin: 0.15rem 1rem 0.15rem 0; }
.key {
  font-family: var(--label);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin: -0.6rem 0 1.8rem;
}

/* ============================================
   About page
   ============================================ */
.about-page {
  padding: 2.5rem 0 3rem;
  max-width: var(--measure);
  margin: 0 auto;
}
.about-photo {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9cfb8, #c9b98f);
  margin: 0 auto 1.6rem;
}
.about-page h1 {
  font-family: var(--display);
  text-align: center;
  font-weight: 600;
  font-size: 2.2rem;
  margin: 0 0 1.6rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
.foot-crest { width: 2.8rem; height: 2.8rem; margin: 0 auto 0.6rem; }
.foot-crest svg { width: 100%; height: 100%; display: block; }
.foot-tag {
  font-family: var(--body);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 1rem;
}
.foot-social { margin: 0 0 0.8rem; font-size: 0.8rem; }
.foot-social a { color: var(--burgundy); }

/* ============================================
   Motion & accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
  .card-img svg, .shop a { transition: none; }
}

@media (max-width: 46rem) {
  .lead { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .welcome { flex-direction: column; text-align: center; }
}

@media (max-width: 40rem) {
  .nav { gap: 1.2rem; flex-wrap: wrap; }
  .entry-title { font-size: 1.4rem; }
}

/* Photo credits, figures and sign-off (mahjong post) */
.post-body figure { margin: 0 0 1rem; }
.post-body .credit { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); margin: -0.6rem 0 1.4rem; text-align: right; }
.post-body figure .credit { margin: 0.4rem 0 0; }
.post-body .signoff { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--burgundy); }
