:root {
  color-scheme: light;
  --paper: #f4eee4;
  --paper-bright: #fffaf2;
  --ink: #29263a;
  --muted: #706b78;
  --line: #d8ccbc;
  --plum: #5b3f59;
  --plum-dark: #3f2c47;
  --ochre: #b8764e;
  --sage: #738778;
  --shadow: 0 20px 60px rgba(65, 45, 52, .12);
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(184, 118, 78, .08), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(91, 63, 89, .08), transparent 24rem),
    var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.9;
}

a { color: inherit; }

.content-shell { min-height: 100vh; }

.content-header,
.content-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.content-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--plum-dark);
  text-decoration: none;
}

.content-brand strong,
.content-brand small { display: block; line-height: 1.1; }
.content-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; letter-spacing: .08em; }
.content-brand small { margin-top: 5px; color: var(--muted); font-size: .67rem; letter-spacing: .14em; }

.content-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--paper-bright);
  background: var(--plum);
  border-radius: 50%;
  font-family: serif;
  font-size: 1.35rem;
}

.content-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
}

.content-header nav a { color: var(--plum); text-underline-offset: 3px; }

main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.memory-article,
.hub-main { max-width: 780px; margin: 0 auto; padding: 72px 0 90px; }

.hub-main { max-width: 1080px; }

.article-kicker,
.sponsor-label,
.hub-card-kicker {
  color: var(--ochre);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2 { font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600; letter-spacing: .02em; }

h1 {
  max-width: 760px;
  margin: 17px 0 20px;
  color: var(--plum-dark);
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 1.22;
}

.article-lead {
  max-width: 690px;
  margin: 0;
  color: #4c4656;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.article-figure { margin: 0 0 46px; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); background: #ded3c6; }
.article-figure figcaption { margin-top: 9px; color: var(--muted); font-size: .73rem; }

.quality-note {
  margin: 0 0 34px;
  padding: 13px 17px;
  border-left: 3px solid var(--ochre);
  background: rgba(184, 118, 78, .1);
  color: #6e5549;
  font-size: .8rem;
}

.article-section { margin-top: 46px; }
.article-section h2,
.sponsor-box h2,
.related-section h2 { margin: 0 0 18px; color: var(--plum-dark); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; }
.article-section p { margin: 0 0 18px; }

.memory-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: memory-step;
}

.memory-steps li {
  position: relative;
  min-height: 54px;
  padding: 12px 17px 12px 58px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 250, 242, .56);
}

.memory-steps li::before {
  position: absolute;
  top: 12px;
  left: 17px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--paper-bright);
  background: var(--plum);
  border-radius: 50%;
  content: counter(memory-step);
  counter-increment: memory-step;
  font-family: Georgia, serif;
}

.question-callout {
  margin-top: 27px !important;
  padding: 18px 20px;
  border: 1px solid rgba(91, 63, 89, .28);
  border-radius: 6px;
  color: var(--plum-dark);
  background: rgba(91, 63, 89, .08);
  font-family: Georgia, "Hiragino Mincho ProN", serif;
  font-size: 1.15rem;
}

.question-callout span { display: block; margin-bottom: 5px; color: var(--ochre); font-family: inherit; font-size: .68rem; font-weight: 700; letter-spacing: .16em; }

.source-section { padding-top: 8px; border-top: 1px solid var(--line); }
.source-list { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .82rem; }
.source-list a { color: var(--plum); text-underline-offset: 3px; }
.source-note { margin-top: 10px; list-style: none; }

.sponsor-box {
  margin-top: 48px;
  padding: 25px 27px 22px;
  border: 1px solid rgba(184, 118, 78, .48);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 250, 242, .8), rgba(241, 224, 207, .65));
}

.sponsor-box h2 { margin-top: 8px; margin-bottom: 10px; font-size: 1.45rem; }
.sponsor-box p { margin: 0 0 15px; color: #5f5660; font-size: .86rem; }
.sponsor-link { display: inline-flex; align-items: center; gap: 8px; color: var(--plum-dark); font-weight: 700; text-underline-offset: 4px; }
.affiliate-attribution { margin-top: 18px !important; margin-bottom: 0 !important; color: #71635d !important; font-size: .72rem !important; }

.related-section { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); }
.related-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.related-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 1px solid var(--line); background: rgba(255, 250, 242, .42); color: var(--plum); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.related-list a:hover { background: var(--paper-bright); transform: translateX(3px); }

.hub-main h1 { max-width: 720px; margin-bottom: 18px; }
.hub-note { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; margin: 35px 0 28px; padding: 17px 19px; border-left: 3px solid var(--sage); background: rgba(115, 135, 120, .1); }
.hub-note strong { color: var(--plum-dark); font-family: Georgia, serif; }
.hub-note span { color: var(--muted); font-size: .83rem; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.hub-card { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 250, 242, .62); }
.hub-card.is-preview { opacity: .72; }
.hub-card h2 { margin: 7px 0 10px; font-size: 1.27rem; line-height: 1.45; }
.hub-card h2 a { color: var(--plum-dark); text-decoration: none; text-underline-offset: 4px; }
.hub-card h2 a:hover { text-decoration: underline; }
.hub-card > p:not(.hub-card-kicker):not(.hub-card-meta) { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.75; }
.hub-card-meta { margin: 14px 0 0; color: var(--ochre); font-size: .71rem; font-weight: 700; }

.content-footer { padding: 28px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.content-footer p { margin: 0 0 12px; color: var(--plum-dark); font-family: Georgia, serif; font-size: 1rem; }
.content-footer div { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.content-footer a { color: var(--plum); text-underline-offset: 3px; }
.content-footer small { font-size: .71rem; }

@media (max-width: 700px) {
  .content-header, .content-footer, main { width: min(100% - 28px, 780px); }
  .content-header { display: block; padding-top: 20px; }
  .content-header nav { margin-top: 17px; line-height: 1.5; }
  .memory-article, .hub-main { padding: 48px 0 65px; }
  h1 { font-size: clamp(2.1rem, 11vw, 3.45rem); }
  .article-lead { font-size: 1rem; }
  .article-meta { display: grid; gap: 3px; }
  .article-figure { margin-bottom: 32px; }
  .article-section { margin-top: 35px; }
  .sponsor-box { padding: 20px 18px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { padding: 19px 18px; }
}
