:root {
  color-scheme: light;
  --ink: #183b30;
  --body: #304139;
  --muted: #53645a;
  --paper: #f8f7f1;
  --white: #fffefa;
  --edge: #d6dbcf;
  --pine: #224f3f;
  --copper: #a35c35;
  --serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", "Noto Serif CJK SC", serif;
  --sans: "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a85225; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.skip, .skip-link {
  position: absolute; z-index: 8; left: .8rem; top: .8rem; padding: .55rem 1rem;
  background: white; color: var(--ink); transform: translateY(-180%);
}
.skip:focus, .skip-link:focus { transform: translateY(0); }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Masthead */
.mast { background: var(--white); border-bottom: 1px solid #e4e4d9; }
.mast-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex: 0 1 auto; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand img, .brand > svg { width: 42px; height: 42px; flex: 0 0 auto; }
.brand span { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.58rem); font-weight: 750; line-height: 1.2; letter-spacing: .04em; }
.main-nav { display: flex; gap: clamp(1.15rem, 3.1vw, 2.8rem); align-items: center; font-size: .94rem; font-weight: 650; line-height: 1.4; }
.main-nav a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--copper); }
.main-nav .search-link { border-left: 1px solid var(--edge); padding-inline-start: clamp(.95rem, 2.4vw, 2.2rem); min-height: 1.7rem; }
.main-nav .search-link .icon { width: 19px; height: 19px; }

/* Feature */
.hero { background: var(--paper); border-bottom: 1px solid #e5e5d8; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); align-items: center;
  gap: clamp(2.3rem, 5.4vw, 5.6rem); padding-block: clamp(2.6rem, 4vw, 4.15rem);
}
.hero-copy { padding-block: .35rem; min-width: 0; }
.eyebrow, .kicker {
  color: var(--copper); font-size: .82rem; font-weight: 750; line-height: 1.5; letter-spacing: .095em;
}
.hero .eyebrow, .section-heading .kicker, .article-head .eyebrow { display: flex; align-items: center; gap: .7rem; }
.hero .eyebrow::before, .section-heading .kicker::before, .article-head .eyebrow::before {
  content: ""; width: 25px; height: 2px; flex: 0 0 auto; background: #b47a4e;
}
.hero h1 {
  margin-block: 1.05rem 1.2rem; font: 700 clamp(3rem, 5.05vw, 4.9rem)/1.24 var(--serif);
  color: #163e31; letter-spacing: .008em; font-feature-settings: "palt"; overflow-wrap: anywhere;
}
.hero h1 .emphasis { color: #275441; }
.lead { color: #435347; font-size: 1.02rem; line-height: 1.98; }
.hero .lead { max-width: 34em; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 48px; padding: .65rem 1.45rem; margin-top: 1.55rem; border: 1px solid var(--pine);
  border-radius: 5px; background: var(--pine); color: #fffefa; text-decoration: none;
  font-size: .94rem; font-weight: 700; line-height: 1.5; transition: background-color .15s, border-color .15s;
}
.primary:hover { background: #163a2d; border-color: #163a2d; }
.hero-photo {
  width: 100%; aspect-ratio: 1.55; overflow: hidden; border-radius: 9px; background: #dedacc;
}
.hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: 60% 52%; }

/* Two main routes */
.section, .directory { padding-block: clamp(3.15rem, 5.8vw, 5.25rem); }
.section-heading { margin-bottom: 1.6rem; }
.section-heading .kicker { margin-bottom: .4rem; }
.section-heading h2 {
  font: 700 clamp(1.85rem, 3.15vw, 2.6rem)/1.4 var(--serif); letter-spacing: .025em;
}
.section-heading > p:not(.kicker) { color: var(--muted); margin-top: .4rem; }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.path-card {
  --route-ink: #254936; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem);
  padding: clamp(1.25rem, 2.55vw, 2.25rem); min-height: 183px; border: 1px solid #d2dccc; border-radius: 9px;
  background: #edf2e8; text-decoration: none; color: var(--route-ink);
  transition: border-color .15s, box-shadow .15s;
}
.path-card.unlock { --route-ink: #633f28; background: #f8f0e4; border-color: #e5d7c5; }
.path-card:hover { border-color: #829882; box-shadow: 0 3px 10px #2343330b; }
.path-card.unlock:hover { border-color: #b49774; }
.path-card .path-art { height: auto; width: clamp(82px, 10.4vw, 144px); flex: 0 0 auto; }
.path-copy { min-width: 0; }
.path-copy h3 { font: 700 clamp(1.35rem, 2.05vw, 1.75rem)/1.5 var(--serif); color: var(--route-ink); letter-spacing: .035em; }
.path-copy p { margin-top: .4rem; color: #4e5c50; line-height: 1.75; font-size: .94rem; }
.unlock .path-copy p { color: #605549; }
.path-link, .read-link { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: .88rem; }
.path-link { margin-top: .75rem; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #8e9e89; }
.unlock .path-link { text-decoration-color: #b29b80; }

/* Article index and filters */
.directory { background: var(--paper); border-top: 1px solid #e5e5da; }
.filters, .filter-row, .directory-controls, .search-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.chip {
  min-height: 42px; padding: .4rem 1.12rem; border: 1px solid #c8d0c2; border-radius: 999px;
  background: var(--white); line-height: 1.45; color: #3e5346; font-size: .94rem; font-weight: 650;
}
.chip:hover { border-color: var(--pine); }
.chip[aria-pressed="true"] { color: white; background: var(--pine); border-color: var(--pine); }
.search-field {
  display: flex; align-items: center; gap: .65rem; width: min(100%, 340px); min-height: 44px;
  border: 1px solid #c6cebf; padding: .36rem .85rem; border-radius: 5px; background: var(--white); color: var(--muted);
}
.filters + .search-field { margin-top: .85rem; }
.search-field:focus-within { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.search-field input { font-size: 1rem; color: var(--body); width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; }
.search-field input::placeholder { color: #69766b; }
.result-count { font-size: .88rem; margin-block: 1rem .7rem; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.article-tile {
  display: flex; flex-direction: column; gap: .45rem; min-width: 0; padding: 1.35rem;
  border: 1px solid var(--edge); border-radius: 6px; background: var(--white); text-decoration: none;
}
.article-tile:hover { border-color: #839580; }
.topic { display: inline-flex; align-self: start; color: #50705a; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.article-tile h3 { font: 700 1.25rem/1.55 var(--serif); }
.article-tile p { color: var(--muted); font-size: .95rem; }
.read-link { color: var(--pine); margin-top: auto; padding-top: .6rem; }
.empty, .empty-state { color: var(--muted); padding-block: 1rem; }

/* Reading layout */
.reading { padding-block: 1.3rem clamp(3rem, 7vw, 6rem); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; color: var(--muted); font-size: .875rem; }
.crumbs a:hover { color: var(--pine); }
.article-head { margin: 2.8rem 0 2rem; padding: 0 0 2.15rem; border-bottom: 1px solid var(--edge); }
.article-head h1 { font: 700 clamp(2.1rem, 4.5vw, 3.4rem)/1.42 var(--serif); margin-block: .6rem .9rem; letter-spacing: .025em; }
.article-head .lead { max-width: 54em; }
.article-layout { display: grid; grid-template-columns: minmax(185px, .32fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.contents { border-top: 2px solid #476b54; border-bottom: 1px solid var(--edge); padding-block: .9rem 1.1rem; color: var(--ink); }
.contents h2, .contents h3, .contents > strong, .contents > p:first-child { font-size: 1.04rem; font-weight: 700; }
.contents ol, .contents ul { margin: .5rem 0 0; padding-inline-start: 1.3rem; }
.contents li + li { margin-top: .4rem; }
.contents a { color: #445d4d; font-size: .93rem; }
.contents a:hover, .sources a:hover { color: #855334; }
.body { min-width: 0; max-width: 850px; line-height: 1.95; overflow-wrap: anywhere; }
.body-section + .body-section { margin-top: 2.45rem; }
.body h2, .related h2 { font: 700 clamp(1.48rem, 2.6vw, 2rem)/1.5 var(--serif); margin-bottom: .8rem; letter-spacing: .025em; }
.body p + p, .body ul, .body ol { margin-top: .8rem; }
.body h3 { font: 700 1.19rem/1.6 var(--serif); }
.body ul, .body ol { padding-inline-start: 1.45rem; margin-bottom: 0; }
.body li + li { margin-top: .45rem; }
.body li::marker { color: #648168; }
.body a, .related a { color: #2d5743; }
.body .sources { margin-top: .95rem; font-size: .875rem; color: var(--muted); }
.sources a { text-decoration-color: #829380; }
.sources a + a { margin-inline-start: .6rem; }
.table-wrap { overflow-x: auto; margin-block: .9rem; }
.body table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.75; }
.body th, .body td { border: 1px solid var(--edge); vertical-align: top; text-align: left; padding: .7rem .85rem; overflow-wrap: anywhere; }
.body th { color: var(--ink); background: #edf1e8; }
.body tbody tr:nth-child(even) { background: #f8f8f2; }
.dial-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; list-style: none;
  margin: 1.15rem 0; padding: 0 !important;
}
.dial-steps li {
  min-width: 0; margin: 0 !important; padding: .8rem .55rem; text-align: center; background: var(--paper);
  border: 1px solid var(--edge); border-radius: 6px; line-height: 1.6;
}
.dial-steps svg { width: min(90%, 98px); height: auto; margin: 0 auto .45rem; }
.dial-steps strong, .dial-steps span { display: block; }
.dial-steps span { font-size: .9rem; }
.related { border-top: 1px solid var(--edge); margin-top: 2.3rem; padding-top: 1.6rem; }
.related ul { margin-block: .3rem; }

/* Site footer */
footer { background: #193b2f; color: #eef2e9; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem 2rem; padding-block: 1.9rem; }
footer .brand, footer .brand span, footer a { color: #f4f5eb; }
footer p, footer small { color: #d8e2d7; }
footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; }
footer a:not(.brand):hover { text-decoration: underline; }

@media (max-width: 930px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { gap: 1.75rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.7rem, 6.1vw, 3.6rem); }
  .hero-photo { aspect-ratio: 1.21; }
  .path-card { gap: .8rem; padding: 1.15rem; }
  .path-card .path-art { width: clamp(76px, 10vw, 98px); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: .8rem; }
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 60px; gap: .7rem; }
  .brand { gap: .42rem; }
  .brand img, .brand > svg { width: 32px; height: 32px; }
  .brand span { font-size: 1.16rem; }
  .main-nav { gap: .65rem; font-size: .84rem; }
  .main-nav .search-link { padding-inline-start: .6rem; }
  .main-nav .search-link .icon { width: 17px; height: 17px; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 1.55rem; }
  .hero-copy { padding: 0; }
  .eyebrow, .kicker { font-size: .77rem; }
  .hero h1 { margin-block: .58rem .65rem; font-size: clamp(2.7rem, 10vw, 3.55rem); line-height: 1.2; }
  .hero .lead { font-size: .97rem; line-height: 1.82; }
  .primary { min-height: 44px; margin-top: .85rem; }
  .hero-photo { aspect-ratio: 2.14; border-radius: 6px; }
  .hero-photo img { object-position: 61% 58%; }
  .section, .directory { padding-block: 2.2rem; }
  .section-heading { margin-bottom: 1.05rem; }
  .section-heading h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .path-grid { grid-template-columns: 1fr; gap: .7rem; }
  .path-card { min-height: 134px; padding: 1.05rem 1.1rem; gap: 1rem; }
  .path-card .path-art { width: clamp(76px, 22vw, 102px); }
  .path-copy h3 { font-size: 1.36rem; }
  .path-copy p { margin-top: .18rem; font-size: .94rem; }
  .path-link { margin-top: .42rem; }
  .article-grid { gap: .7rem; }
  .article-tile { padding: 1.05rem; }
  .article-tile h3 { font-size: 1.16rem; }
  .reading { padding-top: .95rem; }
  .article-head { margin: 1.5rem 0 1.15rem; padding-bottom: 1.2rem; }
  .article-head h1 { font-size: clamp(1.85rem, 7vw, 2.45rem); }
  .article-head .lead { line-height: 1.85; }
  .article-layout { grid-template-columns: 1fr; gap: 1.55rem; }
  .contents { background: #f1f4eb; padding: .8rem 1rem; border: 1px solid #d2dccd; border-radius: 5px; }
  .body-section + .body-section { margin-top: 1.8rem; }
  .dial-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .body th, .body td { padding: .55rem; }
  .foot-inner { align-items: flex-start; padding-block: 1.45rem; }
}
@media (max-width: 480px) {
  .main-nav { gap: .55rem; }
  .main-nav .search-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .main-nav .search-link { border: 0; min-width: 31px; padding: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .search-field { width: 100%; }
  .hero .lead br { display: none; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 28px); }
  .mast-inner { flex-wrap: wrap; gap: .15rem .75rem; padding-block: .4rem; }
  .main-nav { margin-inline-start: auto; }
  .mast-inner .main-nav a { min-height: 35px; }
  .brand span { font-size: 1.05rem; }
  .path-card { padding: .85rem; gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  *, *::before, *::after { box-shadow: none !important; }
  :root, body, .hero, .directory, footer { background: white; color: black; }
  .wrap { width: 100%; }
  .mast, .hero-photo, .primary, .main-nav, .contents, .filters, .search-field, .related, footer { display: none; }
  .article-layout, .hero-grid { display: block; }
  .article-head { margin-top: 0; }
  .reading { padding: 0; }
  .body-section h2 { break-after: avoid; }
  .dial-steps li, tr { break-inside: avoid; }
}

.directory-controls { justify-content: space-between; gap: .75rem 1.25rem; }
.topic { padding: .08rem .52rem; border-radius: 3px; background: #eaf0e4; }
.article-tile.unlock .topic { background: #f4eadc; color: #755438; }
.contents nav > p { font-weight: 700; }
.hub-links { display: flex; flex-wrap: wrap; align-items: stretch; gap: .45rem .6rem; margin-top: 1.2rem; }
.hub-links a {
  display: flex; align-items: center; min-height: 44px; padding: .38rem .8rem; border: 1px solid #c9d6c8; border-radius: 4px;
  background: #f1f5ed; color: #345540; text-decoration: none; font-size: .9rem; line-height: 1.5;
}
.hub-links a:hover { border-color: #80977f; text-decoration: underline; }
.body .sources { margin-top: 1.1rem; border-left: 2px solid #c7d4c4; padding-left: .75rem; }
.body .sources > span { color: #46594a; font-weight: 700; }
.body .sources ul { list-style: none; padding: 0; margin-top: .15rem; }
.body .sources li + li { margin-top: .12rem; }
.dial-figure { margin-block: 1.3rem; }
.dial-figure figcaption { color: #3e5848; font-size: .96rem; font-weight: 700; }
.related ul { padding: 0; list-style: none; border-bottom: 1px solid var(--edge); }
.related li { margin: 0 !important; border-top: 1px solid var(--edge); }
.related a { display: block; padding: .65rem .1rem; text-decoration-color: #a2b3a2; }
@media (max-width: 480px) {
  .directory-controls { align-items: stretch; flex-direction: column; }
  .mast-inner { flex-wrap: wrap; gap: .12rem .65rem; }
  .main-nav { margin-inline-start: auto; }
  .hub-links { flex-direction: column; }
}

.body .partner-links {
  margin-block: 2rem; padding: 1rem 1.15rem; border: 1px solid var(--edge);
  border-radius: 5px; color: var(--body); background: var(--paper);
}
.partner-links > strong { color: var(--muted); font-size: .87rem; }
.body .partner-links ul { margin: .5rem 0 0; padding: 0; list-style: none; }
.partner-links li { border-top: 1px solid var(--edge); padding-top: .5rem; }
.partner-links a { font-weight: 700; }
.partner-links p { font-size: .94rem; }
@media (max-width: 560px) {
  .mast-inner {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .55rem; row-gap: 0; padding-top: .45rem; padding-bottom: 0;
  }
  .mast-inner .brand { grid-column: 1 / -1; grid-row: 1; justify-self: start; min-height: 38px; }
  .mast-inner .main-nav { display: contents; }
  .mast-inner .main-nav a:not(.search-link) {
    grid-row: 2; align-self: stretch; justify-content: center; min-height: 39px; border-top: 1px solid #e3e7dc;
    font-size: .87rem; white-space: nowrap;
  }
  .mast-inner .main-nav a:nth-child(1) { grid-column: 1; }
  .mast-inner .main-nav a:nth-child(2) { grid-column: 2; }
  .mast-inner .main-nav .search-link {
    grid-column: 2; grid-row: 1; justify-self: end; min-height: 38px; padding-inline: .3rem;
  }
  .main-nav .search-link span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

.info-page .body { max-width: 48rem; margin-inline: auto; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 680px) {
  .foot-inner nav { width: 100%; gap: .1rem 1.2rem; }
}
