/* Japan Proven — design language (v3)
   Subject: Japanese matcha & snacks, verified against Japanese primary sources.
   Taken from the material itself: the cream of washi and tea-house packaging,
   sumi ink, matcha green as the structural colour, and a vermillion seal
   (the hanko — Japan's mark of proof) used only as a stamp and hairline,
   never as a field. Tables are set like the spec sheets on Japanese labels:
   hairline rules, small print, tabular figures.
   v3 adds the picture plane: a hero still life, illustrated article cards
   and full-bleed bands, so the page is composed, not just stacked. */

:root {
  --paper: #faf6ec;
  --paper-deep: #f2ecda;
  --matcha-wash: #edf0df;
  --card: #fffdf6;
  --ink: #23281e;
  --ink-soft: #3c4136;
  --matcha: #44603a;
  --matcha-deep: #2e4726;
  --shu: #b23a26;
  --muted: #71735f;
  --line: #ddd3b8;
  --line-soft: #e7dfc9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.75;
}

img { max-width: 100%; }

/* ---------- Masthead ---------- */

.masthead {
  border-top: 6px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.6rem 1rem 0;
  text-align: center;
}
.masthead-inner { max-width: 880px; margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--shu);
  color: #fff8ee;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 4px;
  transform: rotate(-2deg);
}
.wordmark {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.015em;
}
.wordmark em {
  font-style: normal;
  color: var(--matcha-deep);
}
.tagline {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.98rem;
}

.site-nav {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 0.85rem;
}
.site-nav a:hover { color: var(--shu); }

/* ---------- Layout ---------- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem 3.5rem;
}
article, .page { max-width: 720px; margin: 0 auto; padding-top: 2.4rem; }

/* ---------- Type ---------- */

h1 {
  font-size: 2rem;
  line-height: 1.28;
  letter-spacing: 0.005em;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.32rem;
  line-height: 1.4;
  margin: 2.4rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.4rem;
  color: var(--matcha-deep);
}
p { margin: 0 0 1.05rem; }
a { color: var(--matcha-deep); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--shu); }
strong { color: var(--ink); }

.lede { font-size: 1.16rem; line-height: 1.65; }

/* Kicker: the label strip above a heading */
.kicker {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shu);
  margin: 0 0 0.6rem;
}

/* Byline: set like the fine print on a Japanese label —
   hairlines above and below, small sans, everything checkable. */
.byline {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0 0.7rem;
  margin: 0 0 1.6rem;
}

.disclosure {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-left: 3px solid var(--shu);
  padding: 0.8rem 1rem;
  margin: 1.8rem 0;
}

.note {
  background: var(--paper-deep);
  border-left: 3px solid var(--shu);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Home: hero ---------- */

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--ink);
  padding-top: 2.9rem;
  padding-bottom: 2.9rem;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2.4rem;
  align-items: center;
}
.hero-text::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 4px;
  background: var(--shu);
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.05rem);
  line-height: 1.16;
  margin-bottom: 1.1rem;
}
.hero .lede { font-size: 1.13rem; margin-bottom: 0; }
.hero-media { margin: 0; }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--matcha-wash);
}

/* ---------- Home: pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.2rem 0 0.5rem;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--matcha);
  padding: 1rem 1.1rem 0.4rem;
}
.pillar .no {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--shu);
}
.pillar h3 { margin: 0.3rem 0 0.4rem; color: var(--ink); font-size: 1.02rem; }
.pillar p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ---------- Home: covering band ---------- */

.band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background: var(--matcha-wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 2.8rem;
  padding-top: 0.4rem;
  padding-bottom: 1.7rem;
}
.band h2 { border-top: none; padding-top: 1.1rem; }
.band p:last-child { margin-bottom: 0; }

/* ---------- Article cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 0.6rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--matcha);
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease;
}
.card:hover { box-shadow: 0 8px 22px rgba(35, 40, 30, 0.12); }
.card-media { display: block; line-height: 0; }
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line-soft);
}
.card-body { padding: 1rem 1.15rem 1.2rem; }
.check-cat {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha);
  margin: 0 0 0.25rem;
}
.check-title {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.check-title a { color: var(--ink); text-decoration: none; }
.check-title a:hover { color: var(--shu); text-decoration: underline; text-underline-offset: 3px; }
.check-desc { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; margin: 0; }

/* Text-only list (kept from v2; unused by the card layouts) */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.05rem;
}
.check-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Article header image ---------- */

.article-hero { margin: 0 0 1.9rem; }
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* ---------- Tables: spec-sheet rules ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.94rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th, tr:first-child th {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
}
tbody tr:hover { background: #fdfaf1; }

/* ---------- Article furniture ---------- */

.article-nav {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-nav a { color: var(--ink-soft); text-decoration: none; }
.article-nav a:hover { color: var(--shu); }

ul { padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 3px double var(--ink);
  background: var(--paper-deep);
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 1.6rem 1rem 2.2rem;
}
footer p { margin: 0.2rem 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--shu); }

/* ---------- v4: verdict box, contents, checked dates, related ---------- */

/* Checked-date stamp: sits under the byline, set like a spec label */
.checked-line {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  margin: -0.9rem 0 1.5rem;
}
.checked-line::before {
  content: "✓ ";
  color: var(--shu);
}

/* The 60-second answer: the conclusion, first */
.verdict {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--shu);
  padding: 1.05rem 1.25rem 0.55rem;
  margin: 1.7rem 0;
}
.verdict-title {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shu);
  margin: 0 0 0.55rem;
}
.verdict h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  font-size: 1.18rem;
}
.verdict ul { margin: 0 0 0.8rem; }
.verdict p { margin-bottom: 0.8rem; }
.verdict table { margin: 0.6rem 0 1rem; }

/* Contents: the map of the check, right after the verdict */
.toc {
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  padding: 0.95rem 1.25rem 0.55rem;
  margin: 1.7rem 0;
}
.toc-title {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  margin: 0 0 0.5rem;
}
.toc ol { margin: 0 0 0.55rem; padding-left: 1.4rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.97rem; }

/* Checked date on article cards */
.check-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.check-date::before {
  content: "✓ ";
  color: var(--shu);
}

/* Related checks: the way onward at the end of an article */
.related { margin-top: 2.6rem; }
.related h2 { margin-top: 0; }

/* Claim labels on the methodology page */
.label-list { list-style: none; padding-left: 0; }
.label-list li {
  border-top: 1px solid var(--line-soft);
  padding: 0.7rem 0 0.25rem;
  margin-bottom: 0.4rem;
}
.label-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--card);
  background: var(--matcha);
  padding: 0.14rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.55rem;
  white-space: nowrap;
}
.label-tag.reported { background: var(--muted); }
.label-tag.unknown { background: var(--shu); }

/* ---------- Narrow ---------- */

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wordmark { font-size: 1.6rem; }
  .seal { width: 1.7rem; height: 1.7rem; font-size: 1rem; }
  h1 { font-size: 1.55rem; }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2.1rem;
    padding-bottom: 2.1rem;
  }
  .hero h1 { font-size: 1.9rem; }
  .hero-media img { box-shadow: 8px 8px 0 var(--matcha-wash); }
  .pillars { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  article, .page { padding-top: 1.8rem; }
  .site-nav a { margin: 0 0.45rem; }
  table { font-size: 0.86rem; }
  th, td { padding: 0.4rem 0.4rem; }
}
