/* Memodate, memodateapp.com: the article pages (/articles/<slug>/).
   Loaded after site.css, which holds the tokens, the nav, the panel and the footer. */

/* ---------- the head: the Articles tab's panel, a breadcrumb, the H1, the byline ---------- */
.a-head { padding-bottom: 46px; }
.a-hero { max-width: 820px; margin: 0 auto; text-align: center; padding: 30px 16px 0; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mu); }
.crumbs ol { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--lab); }
.crumbs a { color: var(--teal); text-decoration: none; display: inline-block; padding: 6px 0; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.a-hero h1 { font-size: 54px; line-height: 1.04; letter-spacing: -1.3px; margin-top: 12px; }
.byline { margin-top: 18px; font-size: 14.5px; color: var(--ink); }
.byline .made { display: block; color: var(--mu); margin-top: 4px; font-size: 14px; }
.byline a { color: var(--teal); text-underline-offset: 3px; }

/* ---------- the reading column ---------- */
.a-main { max-width: 1080px; margin: 0 auto; padding: 40px 16px 0; }
.prose { max-width: 700px; margin: 0 auto; }
.prose > * + * { margin-top: 18px; }
.prose + .prose { margin-top: 22px; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; color: #33424A; }
.prose .lede { font-family: var(--serif); font-size: 23px; line-height: 1.45; color: var(--ink); letter-spacing: -.1px; }
.prose h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.6px; text-align: left; margin-top: 56px; scroll-margin-top: 16px; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; margin-top: 30px; text-wrap: balance; }
.prose h2 + p, .prose h3 + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.answer { font-weight: 500; color: var(--ink) !important; }
.pw b, .w b { color: var(--pegGold); font-weight: 600; }
.mono { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* callouts and the link card to the other article */
.callout { background: var(--card); border: 1px solid var(--ln); border-radius: 20px; padding: 18px 20px; }
.callout p { font-size: 16.5px; }
.linkcard { display: flex; gap: 16px; align-items: center; text-decoration: none; background: #fff; border: 1px solid var(--ln); border-radius: 20px; padding: 14px 18px 14px 14px; box-shadow: 0 10px 30px rgba(20, 40, 50, .06); }
.prose a.linkcard { color: var(--ink); }
.linkcard:hover { border-color: #D3CFC3; }
.linkcard .lc-tile { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.linkcard .lc-tile span { min-width: 34px; height: 40px; padding: 0 6px; border-radius: 10px; background: var(--bone); box-shadow: 0 3px 0 var(--ln); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.linkcard .lc-k { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.linkcard .lc-t { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.25; margin-top: 2px; }

/* tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--ln); border-radius: 18px; overflow: hidden; font-size: 16px; }
.tbl caption { caption-side: top; text-align: left; font-size: 14.5px; color: var(--mu); padding: 0 2px 10px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid #F0EEE8; line-height: 1.5; }
.tbl thead th { border-top: 0; background: var(--card); font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--mu); font-weight: 600; }
.tbl td .src { display: block; font-size: 14px; margin-top: 4px; }
.tbl .yr { font-family: var(--mono); font-weight: 600; white-space: nowrap; }

/* the ten sounds table (the guide) */
.sounds .dg { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; width: 64px; }
.sounds .snd { white-space: nowrap; }
.sounds .hook { display: flex; gap: 14px; align-items: center; }
.sounds .hook img { width: 76px; height: 76px; border-radius: 14px; flex: 0 0 76px; }
.sounds .hook p { font-size: 15.5px; line-height: 1.5; margin: 0; }
.chipline { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--bone); border: 1px solid var(--ln); font-weight: 600; letter-spacing: 1px; color: var(--teal); font-size: 15px; }
.chip-s .play { width: 30px; height: 30px; box-shadow: none; }

/* the play button: a small gold coin */
.play { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--gold); color: var(--goldInk); box-shadow: 0 3px 0 var(--goldDeep); display: inline-grid; place-items: center; }
.play svg { width: 14px; height: 14px; margin-left: 2px; }
.play:hover { background: #FFD36A; }
.play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--goldDeep); }
.play.on { background: var(--teal); color: #fff; box-shadow: 0 3px 0 #1F5866; }
.play[hidden] { display: none; }
.chip-s .play:active { transform: none; }

/* figures */
.fig { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.fig figure { width: 150px; text-align: center; }
.fig img { width: 150px; height: 150px; border-radius: 22px; }
.fig figcaption { margin-top: 8px; font-size: 15px; color: var(--mu); }
.fig figcaption .w { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); line-height: 1.2; }
.plus { align-self: center; font-family: var(--serif); font-size: 30px; color: var(--lab); }

/* quote */
.pull { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(30, 85, 96, .07); }
.pull blockquote { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--ink); }
.pull figcaption { font-size: 14.5px; color: var(--mu); margin-top: 8px; }

/* ---------- the 00-99 list ---------- */
.key10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; max-width: 760px; margin: 26px auto 0; padding: 0; list-style: none; }
.key10 li { background: #fff; border: 1px solid var(--ln); border-radius: 14px; box-shadow: 0 3px 0 var(--ln); text-align: center; padding: 10px 2px 8px; }
.key10 .d { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.key10 .s { display: block; font-weight: 600; font-size: 12.5px; letter-spacing: .6px; color: var(--teal); margin-top: 5px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; margin: 34px auto 0; max-width: 900px; }
.tools .gp { border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; }
.tools .gp[hidden] { display: none; }
.decnav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; }
.decnav a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: #fff; border: 1px solid var(--ln); font-family: var(--mono); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); }
.decnav a:hover { border-color: var(--teal); color: var(--teal); }
.print-title { display: none; }
.decade { padding-top: 44px; scroll-margin-top: 8px; }
.decade h2 { text-align: left; font-size: 30px; letter-spacing: -.4px; }
.decade h2 .wing { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--mu); letter-spacing: 0; margin-left: 6px; }
.pegs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 16px; padding: 0; list-style: none; }
.peg { background: var(--card); border: 1px solid var(--ln); border-radius: 20px; padding: 10px 10px 12px; display: flex; flex-direction: column; }
.peg img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; background: #141C20; }
.peg .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.peg .n { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--mu); font-variant-numeric: tabular-nums; }
.peg .w { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; letter-spacing: -.2px; color: var(--ink); overflow-wrap: anywhere; }
.list-after { margin-top: 30px; }

/* ---------- the end: related reading and the early-access close ---------- */
.a-cta { text-align: center; padding: 72px 0 64px; max-width: 640px; margin: 0 auto; }
.a-cta h2 { font-size: 36px; }
.a-cta p { margin: 12px auto 0; color: var(--mu); font-size: 17px; line-height: 1.6; }
.a-cta .btns { margin-top: 22px; }
.a-main + .foot, main + .foot { margin-top: 20px; }

/* the Articles index: whole cards are links */
a.art-card { color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.art-card:hover { border-color: #D3CFC3; box-shadow: 0 12px 30px rgba(20, 40, 50, .08); transform: translateY(-2px); }
a.art-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 22px; }
.art-read { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); font-weight: 600; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .pegs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .a-head { padding-bottom: 34px; }
  .a-hero { padding: 24px 4px 0; }
  .a-hero h1 { font-size: 38px; letter-spacing: -.9px; }
  .byline, .byline .made { font-size: 15px; }
  .prose p, .prose li { font-size: 17px; }
  .prose .lede { font-size: 20.5px; }
  .prose h2 { font-size: 28px; margin-top: 46px; }
  .prose h3 { font-size: 21px; }
  .pegs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .peg { border-radius: 18px; padding: 8px 8px 10px; }
  .peg .w { font-size: 22px; }
  .key10 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .key10 .s { font-size: 15px; letter-spacing: .2px; }
  .decade h2 { font-size: 27px; }
  .decade h2 .wing { display: block; margin: 2px 0 0; }
  .fig figure { width: 132px; }
  .fig img { width: 132px; height: 132px; }
  .linkcard .lc-t { font-size: 18px; }
  .a-cta h2 { font-size: 30px; }
  /* the sounds table becomes one card per digit */
  .sounds thead { display: none; }
  .sounds caption { display: block; padding: 14px 14px 4px; border-bottom: 1px solid #F0EEE8; }
  .sounds, .sounds tbody, .sounds tr, .sounds td, .sounds th { display: block; }
  .sounds tr { display: grid; grid-template-columns: 54px 1fr; gap: 6px 10px; padding: 14px; border-top: 1px solid #F0EEE8; }
  .sounds tbody tr:first-child { border-top: 0; }
  .tbl.sounds th, .tbl.sounds td { border: 0; padding: 0; }
  .sounds td { grid-column: 2; }
  .sounds .dg { grid-column: 1; grid-row: 1 / span 3; width: auto; }
  .sounds .spl { color: var(--mu); }
  .sounds .hook img { width: 64px; height: 64px; flex-basis: 64px; }
  .tbl { font-size: 15.5px; }
  .tbl th, .tbl td { padding: 10px; }
  .tbl td .src { font-size: 15px; }
  .crumbs { font-size: 13px; }
  .crumbs a { padding: 12px 2px; }
  .crumbs li[aria-current] { display: none; }
  .a-main { padding-top: 30px; }
  .linkcard .lc-k, .tbl thead th, .tbl caption { font-size: 15px; letter-spacing: .4px; }
}
@media (max-width: 380px) {
  .chip-s { padding: 0 8px 0 10px; }
}

/* ---------- print: the 00-99 list prints as a two-page sheet ---------- */
@media print {
  @page { margin: 10mm; }
  body { background: #fff; display: block; min-height: 0; font-size: 10pt; }
  .nav, .foot, .play, .tools, .crumbs, .a-cta, .no-print { display: none !important; }
  .panel { margin: 0; border-radius: 0; background: none; }
  .panel::before { display: none; }
  a { text-decoration: none; }
  .prose a::after { content: ""; }
  /* the list page prints the sheet alone */
  .listpage .a-head, .listpage .prose, .listpage .key10, .listpage .list-after { display: none !important; }
  .listpage .a-main { max-width: none; padding: 0; }
  .listpage .print-title { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-size: 15pt; border-bottom: .3mm solid #ccc; padding-bottom: 2mm; margin-bottom: 2mm; }
  .listpage .print-title small { font-family: var(--mono); font-size: 8pt; color: #555; }
  .listpage .half { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 3mm; break-after: page; page-break-after: always; }
  .listpage .half:last-of-type { break-after: auto; page-break-after: auto; }
  .listpage .decade { padding-top: 0; break-inside: avoid; }
  .listpage .decade h2 { font-size: 10pt; letter-spacing: 0; padding: 1mm 0 1.5mm; border-bottom: .2mm solid #ddd; }
  .listpage .decade h2 .wing { display: none; }
  .listpage .pegs { display: block; margin: 0; }
  .listpage .peg { display: grid; grid-template-columns: 15mm 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 2mm; height: 23mm; padding: 1.5mm 0; border: 0; border-bottom: .2mm solid #eee; border-radius: 0; background: none; break-inside: avoid; }
  .listpage .peg img { grid-row: span 2; width: 15mm; height: 15mm; border-radius: 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .listpage .peg .row { display: contents; }
  .listpage .peg .n { font-size: 8.5pt; color: #444; align-self: end; }
  .listpage .peg .w { font-size: 12pt; align-self: start; }
  .listpage .peg .w b { color: #8A5F00; }
  /* the guide prints as plain reading */
  .a-hero h1 { font-size: 24pt; }
  .prose h2 { font-size: 16pt; margin-top: 8mm; }
  .prose p, .prose li { font-size: 10.5pt; }
}

@media (prefers-reduced-motion: reduce) {
  a.art-card, a.art-card:hover { transition: none; transform: none; }
}
.a-gap { height: 72px; }
