:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --white: #fffef9;
  --ink: #182b25;
  --soft: #4b5f54;
  --line: #c8cec0;
  --accent: #d9f495;
  --dark: #12372a;
  --body-font: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --display-font: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.85 var(--body-font); }
a { color: #275442; text-underline-offset: .24em; }
a:hover { color: #0a3421; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2e7753; outline-offset: 4px; }
button, summary { cursor: pointer; }
.skip-link { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .65rem; background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1152px, calc(100% - 80px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 69px; gap: 12px; }
.brand, .external { text-decoration: none; font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand span { display: inline-block; width: .87rem; height: .87rem; border-radius: 50%; background: var(--dark); box-shadow: inset 0 0 0 3px #aae054; }
.external { font-size: .81rem; }
.external span, .button span { margin-left: .18em; }
.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 100% 35%, #e4ebd5, transparent 70%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(28px, 5vw, 78px); padding-block: clamp(44px, 7.5vw, 104px); }
.label { color: var(--soft); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.eyebrow { display: inline-block; margin: 0 0 16px; border-left: 3px solid #658343; padding-left: .65rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 19px; font: 700 clamp(2.4rem, 5vw, 4.4rem)/1.12 var(--display-font); letter-spacing: -.065em; }
.hero-title { display: block; font: 500 clamp(6rem, 12.7vw, 10.5rem)/.9 Baskerville, Georgia, serif; letter-spacing: -.065em; }
.period { color: #57763b; }
.lede { max-width: 29em; margin-bottom: 23px; color: #394f42; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; justify-content: center; padding: 8px 15px; border: 1px solid var(--dark); border-radius: 3px; text-decoration: none; font-size: .84rem; font-weight: 700; }
.primary, .primary:hover { color: var(--accent); background: var(--dark); }
.primary:hover { background: #234d3e; }
.secondary:hover { background: #e7ebdc; }
.video-card { margin: 0; border: 1px solid var(--dark); border-radius: 4px; overflow: hidden; background: var(--dark); box-shadow: 9px 9px 0 #c8d6b2; }
.video-card > a { display: block; color: var(--white); text-decoration: none; }
.video-card > a:focus-visible { outline-offset: -4px; outline-color: var(--accent); }
.video-image { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: #284738; }
.video-image img { display: block; width: 100%; height: auto; }
.play { position: absolute; display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; color: var(--ink); background: var(--accent); box-shadow: 0 3px 15px #17272083; }
.video-card a:hover .play { background: #f0ffd2; }
.video-caption { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; gap: 10px; }
.video-caption strong, .video-caption small { display: block; line-height: 1.55; }
.video-caption small { color: #d6e0d3; }
.stamp, .time, .timeline a { font-family: "IBM Plex Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
.stamp { font-size: .8rem; white-space: nowrap; color: var(--accent); }
.layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(30px, 7vw, 100px); padding-block: 60px 30px; }
.contents { position: sticky; top: 26px; align-self: start; border-top: 2px solid var(--ink); padding-top: 11px; }
.contents .label { margin-bottom: 5px; }
.contents a { display: block; padding: 6px 0; font-size: .85rem; color: var(--soft); text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.body { max-width: 765px; }
.body section { margin-bottom: 58px; scroll-margin-top: 20px; }
.section-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 14px; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--soft); font-size: .77rem; font-weight: 700; letter-spacing: .04em; }
.time { display: inline-block; font-size: .79rem; font-weight: 600; }
h2 { margin-bottom: .55em; font: 700 clamp(1.8rem, 3.35vw, 2.65rem)/1.38 var(--display-font); letter-spacing: -.035em; overflow-wrap: anywhere; }
h3 { font-size: 1.04rem; line-height: 1.6; margin-bottom: .28em; }
p { margin-bottom: 1em; }
.steps { margin: 22px 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 37px 1fr; align-items: start; gap: .9rem; border-top: 1px solid var(--line); padding: 16px 0; counter-increment: steps; }
.steps li::before { content: counter(steps); background: #e6eddb; border-radius: 50%; color: var(--dark); min-width: 34px; aspect-ratio: 1; text-align: center; font-weight: 700; line-height: 2.3; }
.steps p, .callout p { margin-bottom: 0; }
.steps a { font-size: .84rem; }
.small-note { padding: 13px 15px; background: #e8ede0; color: #394f42; font-size: .83rem; }
.small-note a, .source-link { display: inline-block; margin-left: .55em; }
.prompt { margin-block: 19px; padding: 16px 19px; background: var(--dark); color: var(--white); border-radius: 4px; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.prompt-head h3 { margin: 0; color: var(--accent); font-size: .83rem; }
button { font: inherit; font-size: .78rem; background: var(--accent); color: var(--ink); border: 0; border-radius: 3px; min-height: 36px; padding: 3px 11px; }
button:hover { background: #efffcd; }
.prompt button:focus-visible { outline-color: var(--accent); }
.prompt p { margin: 0; }
.copy-status { display: block; color: var(--accent); font-size: .8rem; }
.copy-status:empty { display: none; }
.callout { padding: 13px 16px; border-left: 4px solid #86ae44; background: #e6eed9; }
.callout strong { display: block; margin-bottom: 3px; }
.simple-steps, .recipe ol { padding-left: 1.5em; }
.simple-steps li, .recipe li { margin-bottom: .45em; }
.recipe-list { border-top: 1px solid var(--line); }
.recipe-list details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px; list-style: none; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: #375549; font: 500 1.25rem/1 Menlo, monospace; }
details[open] > summary::after { content: "−"; }
details[open] > summary, summary:hover { background: #e9edde; }
.recipe { padding: 0 14px 15px; }
.recipe p { margin-bottom: .7em; }
.reference-list { margin: 0 0 26px; }
.reference-list > div { display: grid; grid-template-columns: minmax(125px, .8fr) 2fr; gap: 6px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.reference-list dt { font-weight: 700; }
.reference-list dd { margin: 0; }
.reference-list a { margin-left: .5em; }
.timeline-toggle { border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.timeline { list-style: none; margin: 0; padding: 0 13px; }
.timeline li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 8px; padding: 13px 0; border-top: 1px solid #e1e4d9; }
.timeline a { font-size: .85rem; }
.timeline p { color: var(--soft); font-size: .9rem; line-height: 1.7; margin-bottom: 0; }
footer { border-top: 1px solid var(--line); padding-top: 17px; font-size: .82rem; color: var(--soft); }
footer p { margin-bottom: .28em; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .layout { grid-template-columns: 152px minmax(0, 1fr); gap: 24px; }
  .hero-grid { gap: 30px; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 54px; }
  .brand { font-size: .85rem; }
  .external { font-size: .74rem; }
  .hero-grid, .layout { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 34px; }
  .hero-title { font-size: clamp(5.6rem, 21vw, 8rem); }
  .video-card { max-width: 480px; margin-right: 6px; box-shadow: 6px 6px 0 #c8d6b2; }
  .layout { gap: 27px; padding-top: 27px; }
  .contents { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .contents .label { grid-column: 1 / -1; }
  .contents a { padding-block: 7px; }
  .body section { margin-bottom: 42px; }
  .reference-list > div { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 60px minmax(0, 1fr); }
  .source-link, .small-note a { margin-left: 0; margin-right: .5em; }
  .time { margin-right: .4em; }
}
@media print {
  .topbar, .contents, .video-card, .actions, button { display: none !important; }
  .shell { width: 100%; display: block; }
  .hero-grid, .layout { padding-block: 10px; }
  body, .hero { background: white; color: black; }
  .prompt { background: white; color: black; border: 1px solid #777; }
  .prompt h3 { color: black; }
}
