body { margin: 0; }
img { max-width: 100%; }

/* Layout: a quiet two-column magazine page. A narrow rail of thin numerals and facts on the left, reading column on the right; the only image is a clock face stopped at 16:20. */
:root {
  --bg: #f3f4ef;
  --surface: #e9ebe4;
  --ink: #121412;
  --muted: #666b64;
  --line: #d5d8cf;
  --accent: #4c6a50;
  --f-num: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f110f; --surface: #181b18; --ink: #eceee7; --muted: #949a91; --line: #2b2f2a; --accent: #93b295;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f110f; --surface: #181b18; --ink: #eceee7; --muted: #949a91; --line: #2b2f2a; --accent: #93b295;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.label {
  font-family: var(--f-num);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* background: asanoha (hemp-leaf) lattice drawn as a rippling sheet of thin lines behind the masthead and hero */
#asanoha {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}
.wrap { position: relative; z-index: 1; }

/* utility bar: section links on the left, light/dark choice on the right */
.util {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 14px 0;
}
.util nav, .theme { display: flex; align-items: center; gap: 14px; }
.util a, .theme button {
  font-family: var(--f-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.util a { font-family: var(--f-body); letter-spacing: 0.14em; }
.theme button { background: none; border-width: 0 0 1px; border-style: solid; border-color: transparent; border-radius: 0; cursor: pointer; }
.util a:hover, .theme button:hover { color: var(--ink); }
.util a[aria-current="page"], .theme button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme span { color: var(--line); font-size: 12px; }

/* masthead */
.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
}
.logo-mark {
  font-family: var(--f-num);
  font-weight: 200;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.05em;
}
.logo-mark i {
  font-style: normal;
  color: var(--accent);
  position: relative;
  top: -0.07em;
  margin-inline: 0.03em;
}
.logo-kana { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.mast-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 64px);
}
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(27px, 4.3vw, 46px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.hero p { margin: 0; max-width: 30em; color: var(--muted); }
.clock { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.clock svg { width: 100%; max-width: 300px; height: auto; display: block; }
.clock .ring, .clock .tick { stroke: var(--line); }
.clock .tick-q { stroke: var(--muted); }
.clock .hand-m { stroke: var(--ink); }
.clock .hand-h { stroke: var(--accent); }
.clock .pin { fill: var(--ink); }
.clock figcaption { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); text-align: center; }
figure { margin: 0; }

/* contents */
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.index a {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 20px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.index .n { font-family: var(--f-num); font-weight: 300; font-size: 20px; color: var(--muted); }
.index .t { font-family: var(--f-head); font-weight: 500; font-size: 18px; line-height: 1.6; }
.index a:hover .t { color: var(--accent); }

/* article */
.story {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
  padding-block: clamp(56px, 8vw, 92px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.rail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rail .num {
  font-family: var(--f-num);
  font-weight: 200;
  font-size: 96px;
  line-height: 0.85;
  letter-spacing: 0.02em;
}
.facts { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--f-num); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 14px; line-height: 1.6; }
.facts .cat { font-family: var(--f-num); letter-spacing: 0.12em; color: var(--accent); }

.read { display: flex; flex-direction: column; gap: 32px; min-width: 0; max-width: 37em; }
.read h2 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.block { display: flex; flex-direction: column; gap: 10px; }
.block p { margin: 0; }
.summary p { font-size: 18px; font-weight: 500; line-height: 1.9; }
.summary { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.text { gap: 1.25em; }
.point { background: var(--surface); padding: 26px 28px 28px; }
.point .label { color: var(--accent); }

.links { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.watch {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  line-height: 1.5;
}
.watch:hover { background: var(--ink); color: var(--bg); }
.watch span { font-family: var(--f-num); }
.src { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); }
.src a { text-underline-offset: 4px; text-decoration-color: var(--line); }
.src a:hover { color: var(--ink); text-decoration-color: currentColor; }

.video { width: 100%; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--surface); }

/* footer */
.foot { display: flex; flex-direction: column; gap: 10px; padding-block: 40px 64px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.foot p { margin: 0; max-width: 46em; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .clock svg { max-width: 210px; }
  .index a { grid-template-columns: 2.6em minmax(0, 1fr); }
  .index .label { grid-column: 2; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail { flex-direction: row; align-items: flex-end; gap: 24px; }
  .rail .num { font-size: 68px; }
  .facts { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .logo-mark { font-size: 38px; }
}

/* archive */
.arc-head { display: flex; flex-direction: column; gap: 14px; padding-block: clamp(40px, 6vw, 64px) 32px; }
.arc-head h1 { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(27px, 4vw, 40px); line-height: 1.5; letter-spacing: 0.02em; }
.arc-head p { margin: 0; max-width: 32em; color: var(--muted); }
.filters { display: flex; flex-direction: column; gap: 18px; padding-block: 24px; border-block: 1px solid var(--line); }
.filter { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: baseline; gap: 8px 16px; }
.filter .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.chip small { margin-left: 6px; font-family: var(--f-num); font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] small { color: inherit; opacity: 0.7; }
.chip.empty { color: var(--muted); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.arc-count { padding-block: 22px 6px; }
.arc-list { list-style: none; margin: 0; padding: 0; }
.arc-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px 56px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.arc-item .when { display: flex; flex-direction: column; gap: 2px; }
.arc-item .when b { font-family: var(--f-num); font-weight: 300; font-size: 20px; letter-spacing: 0.04em; }
.arc-item .what { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 37em; }
.arc-item h2 { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.6; letter-spacing: 0.02em; }
.arc-item h2 a { text-decoration: none; }
.arc-item h2 a:hover { color: var(--accent); }
.arc-item p { margin: 0; color: var(--muted); font-size: 15px; }
.arc-item .tags { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.arc-item .tags .cat { color: var(--accent); }
.arc-none { padding-block: 48px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .filter { grid-template-columns: minmax(0, 1fr); }
  .arc-item { grid-template-columns: minmax(0, 1fr); }
  .arc-item .when { flex-direction: row; align-items: baseline; gap: 14px; }
}

/* article pages, and anything toggled with the hidden attribute */
[hidden] { display: none !important; }
.read h1 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.read h2 a { text-decoration: none; }
.read h2 a:hover { color: var(--accent); }
.more { display: flex; flex-direction: column; gap: 16px; padding-block: 40px 8px; }

/* about */
.prose { display: flex; flex-direction: column; gap: 44px; max-width: 37em; padding-block: 8px 56px; border-top: 1px solid var(--line); padding-top: 44px; }
.prose section { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.6; letter-spacing: 0.02em; }
.prose p { margin: 0; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

/* language switch, next to the light/dark choice */
.prefs { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 60px; }   /* stays against the right edge, also when it drops to its own row */
.lang { display: flex; align-items: center; gap: 14px; }
.util .lang a { font-family: var(--f-num); letter-spacing: 0.18em; }
.lang a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lang span { color: var(--line); font-size: 12px; }

/* English pages: Latin text wants tighter leading and a narrower column than Japanese */
html[lang="en"] body { line-height: 1.75; }
html[lang="en"] .read, html[lang="en"] .prose { max-width: 34em; }
html[lang="en"] .hero h1 { line-height: 1.28; letter-spacing: 0; }
html[lang="en"] .read h1, html[lang="en"] .read h2, html[lang="en"] .arc-item h2, html[lang="en"] .arc-head h1 { line-height: 1.35; letter-spacing: 0; }
html[lang="en"] .index .t { line-height: 1.4; }
html[lang="en"] .summary p { line-height: 1.65; }

/* footer links */
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-nav a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line); }
.foot-nav a:hover { text-decoration-color: currentColor; }

/* contact form */
.contact { display: flex; flex-direction: column; gap: 26px; max-width: 34em; padding-block: 40px 56px; border-top: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 9em; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .note { margin: 0; font-size: 13px; color: var(--muted); }
.contact .status { margin: 0; padding: 12px 14px; background: var(--surface); font-size: 14px; }
.contact button.watch { font: inherit; font-size: 14px; color: var(--ink); background: none; border-radius: 0; cursor: pointer; }
.contact button.watch:hover { background: var(--ink); color: var(--bg); }
.contact button.watch:disabled { opacity: 0.5; cursor: default; }
.contact-done { display: flex; flex-direction: column; gap: 12px; max-width: 34em; padding-block: 44px 64px; border-top: 1px solid var(--line); }
.contact-done h2 { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.6; }
.contact-done p { margin: 0; }
