@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

.theme-across {
  --paper: #f7f8ff;
  --surface: #fff;
  --ink: #161c47;
  --muted: #475076;
  --accent: #3345ce;
  --accent-hover: #2635a9;
  --line: #d5daf1;
  --tint: #e9edff;
  --panel: #242f87;
  --panel-ink: #fff;
  --panel-muted: #e0e6ff;
  --panel-button: #dbf887;
  --panel-button-ink: #202754;
  --heading: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --heading-weight: 700;
  --round: 17px;
}
.theme-real {
  --paper: #fcf5e9;
  --surface: #fffbf2;
  --ink: #2e211b;
  --muted: #65493a;
  --accent: #a12f22;
  --accent-hover: #7e2119;
  --line: #dbbd9f;
  --tint: #f2e3cc;
  --panel: #742b22;
  --panel-ink: #fff8ee;
  --panel-muted: #ffeedc;
  --panel-button: #ffdfaa;
  --panel-button-ink: #4b2921;
  --heading: "Instrument Serif", Georgia, serif;
  --heading-weight: 400;
  --round: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-padding-top: 1.25rem;
}
body {
  margin: 0;
  font: 400 1rem/1.6 "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  line-height: 1.05;
}
p, ul, ol { margin-top: 0; margin-bottom: 0; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip-link {
  z-index: 2;
  position: absolute;
  top: .75rem;
  left: .75rem;
  transform: translateY(-175%);
  background: var(--surface);
  padding: .65rem 1rem;
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  min-height: 5.25rem;
  padding-block: .85rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  max-width: 100%;
}
.brand:hover { color: var(--accent); }
.brand img { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-text {
  display: grid;
  gap: .21rem;
  font-weight: 750;
  line-height: 1.08;
}
.brand-text small { color: var(--muted); font-size: .73rem; font-weight: 500; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.5rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover, .site-nav [aria-current] { color: var(--accent); text-decoration: underline; }
.site-nav .nav-cta { color: var(--accent); }
.arrow { display: inline-block; vertical-align: -.15em; width: 1em; height: 1em; flex: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr);
  gap: clamp(2.5rem, 6.25vw, 6.5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.75rem);
}
.theme-real .hero {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(2.25rem, 5.75vw, 5.75rem);
}
.eyebrow {
  color: var(--accent);
  font-size: .735rem;
  font-weight: 750;
  letter-spacing: .095em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero h1 {
  max-width: 14ch;
  margin-block: 1rem 1.25rem;
  font-size: clamp(3rem, 6.3vw, 6.1rem);
  line-height: .97;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.theme-real .hero h1 {
  max-width: 13ch;
  font-size: clamp(3.6rem, 7.15vw, 7.1rem);
  letter-spacing: -.035em;
}
.lede {
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  line-height: 1.6;
}
.hero .button { margin-top: 1.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 2.95rem;
  border-radius: var(--round);
  padding: .7rem 1.12rem;
  background: var(--accent);
  color: var(--surface);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: var(--surface); }
.hero-art { width: 100%; height: auto; }
.theme-real .hero-art { box-shadow: .57rem .57rem 0 #b9816154; }

.guide-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 5.2vw, 4rem) clamp(3rem, 6.6vw, 5.5rem);
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-bottom: 1.7rem;
}
.section-heading h2, .related h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.8rem);
  letter-spacing: -.035em;
}
.section-heading p { color: var(--muted); max-width: 38ch; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.guide-card { height: 100%; }
.guide-card a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .65rem;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: clamp(1.2rem, 2.7vw, 2.05rem);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.guide-card a:hover { border-color: var(--accent); }
.guide-card a:hover h3 { text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .12em; }
.guide-card h3 {
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.theme-real .guide-card h3 { font-size: clamp(1.75rem, 3.15vw, 2.65rem); }
.guide-card p { color: var(--muted); max-width: 60ch; }
.card-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 750;
}

.cluster-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  list-style: none;
  padding: 0;
}
.cluster-nav a {
  display: inline-flex;
  align-items: center;
  padding: .5rem .85rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--surface);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.cluster-nav a:hover { border-color: var(--accent); text-decoration: underline; }
.guide-cluster { margin-top: clamp(1.75rem, 4vw, 3.35rem); }
.guide-cluster h3 {
  margin-bottom: .85rem;
  font-size: clamp(1.6rem, 3.35vw, 2.8rem);
  letter-spacing: -.025em;
}
.guide-cluster h3:target { color: var(--accent); }
.guide-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  padding: 0;
  list-style: none;
}
.guide-link-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .65rem;
  row-gap: .25rem;
  height: 100%;
  min-height: 2.9rem;
  padding: .62rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.4;
  text-decoration: none;
}
.guide-link-list a:hover { border-color: var(--accent); color: var(--accent); }
.guide-link-list a:hover .guide-link-title { text-decoration: underline; }
.guide-link-title { font-weight: 750; }
.guide-link-list .arrow { align-self: start; margin-top: .22rem; color: var(--accent); }
.guide-link-summary { grid-column: 1 / -1; color: var(--muted); font-size: .895rem; }

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 4.75vw, 3.5rem);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  border-radius: var(--round);
  background: var(--panel);
  color: var(--panel-ink);
}
.cta-panel h2 { font-size: clamp(2rem, 4.2vw, 3.45rem); letter-spacing: -.03em; }
.cta-panel p { margin-top: .65rem; max-width: 58ch; color: var(--panel-muted); }
.cta-panel a:not(.button) { color: var(--panel-ink); }
.cta-panel .button { justify-self: start; background: var(--panel-button); color: var(--panel-button-ink); }
.cta-panel .button:hover { background: #fff; }
.cta-panel a:focus-visible { outline-color: var(--panel-button); }

.breadcrumb {
  padding-block: 1.4rem;
  color: var(--muted);
  font-size: .875rem;
}
.article-head {
  padding-block: clamp(1.6rem, 5.25vw, 4rem) clamp(1.75rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.article-head h1 {
  max-width: 18ch;
  margin-block: .7rem 1rem;
  font-size: clamp(2.45rem, 6.3vw, 5.45rem);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.theme-real .article-head h1 {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  letter-spacing: -.033em;
}
.article-head .lede { max-width: 61ch; }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: .88rem;
}
.article-body {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 50rem);
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3.25rem, 7vw, 5.25rem);
}
.article-body.no-index { grid-template-columns: minmax(0, 50rem); }
.contents {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow: auto;
  padding: 1rem 1rem 1rem 1.2rem;
  border-left: 2px solid var(--line);
}
.contents p { margin-bottom: .65rem; color: var(--ink); font-weight: 750; }
.contents ul { list-style: none; padding-left: 0; }
.contents li + li { margin-top: .5rem; }
.contents a { display: block; color: var(--muted); font-size: .875rem; }
.contents a:hover { color: var(--accent); }
.prose {
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.prose > * + * { margin-top: 2.35rem; }
.prose section > * + * { margin-top: .95rem; }
.prose h2 { font-size: clamp(1.65rem, 3.5vw, 2.65rem); letter-spacing: -.028em; }
.theme-real .prose h2 { font-size: clamp(2.05rem, 3.8vw, 3.05rem); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .55rem; }
.prose li::marker { color: var(--accent); }
.sources { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.sources h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.sources li { font-size: .96rem; }
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: .935rem; line-height: 1.55; }
th, td { padding: .85rem .95rem; min-width: 9rem; text-align: left; vertical-align: top; }
thead th { background: var(--tint); }
tbody th, tbody td { border-top: 1px solid var(--line); }
tbody th { min-width: 7.25rem; }
td, th { overflow-wrap: anywhere; }
.related { border-top: 1px solid var(--line); padding-block: 2.25rem clamp(3rem, 6vw, 5rem); }
.related h2 { margin-bottom: 1.25rem; font-size: clamp(1.8rem, 3.5vw, 2.9rem); }

.footer { border-top: 1px solid var(--line); padding-block: 2rem 2.55rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}
.footer p { margin-top: .8rem; color: var(--muted); font-size: .88rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer nav a { font-size: .875rem; font-weight: 650; }
.not-found { padding-block: 5rem; }
.not-found h1 { margin-bottom: .85rem; font-size: clamp(2.5rem, 7vw, 5rem); }

@media (max-width: 53rem) {
  .hero, .theme-real .hero { gap: 2rem; }
  .article-body { grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 43rem) {
  .wrap { width: min(100% - 2rem, 72rem); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: .65rem 1.25rem; }
  .site-nav { gap: .2rem 1.15rem; }
  .site-nav a { min-height: 2.75rem; }
  .hero, .theme-real .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 2.75rem 2.5rem;
    gap: 1.75rem;
  }
  .hero h1, .theme-real .hero h1 { max-width: none; text-wrap: pretty; }
  .hero-art { width: min(100%, 27rem); }
  .guide-grid, .guide-link-list, .article-body, .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .contents {
    position: static;
    max-height: none;
    overflow: visible;
    background: var(--tint);
  }
  .contents a { padding-block: .34rem; }
  .contents li + li { margin-top: .04rem; }
  .article-head h1 { max-width: none; text-wrap: pretty; }
  .article-byline { display: grid; }
}
@media (max-width: 24rem) {
  .hero h1 { font-size: 2.65rem; }
  .theme-real .hero h1 { font-size: 3.1rem; }
  .theme-real .article-head h1 { font-size: 2.8rem; }
}

/* Primary paths into the tools and Hanashi. */
.hero-actions, .article-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.3rem;
  margin-top: 1.55rem;
}
.hero-actions .button { margin-top: 0; }
.hero-actions > a:not(.button), .article-actions > a:not(.button) { font-size: .91rem; font-weight: 750; }
.tool-section .guide-card a { border-top: 3px solid var(--accent); }
.featured-row { background: var(--tint); }
.featured-row th { color: var(--accent-hover); }
.article-cta {
  background: var(--tint);
  padding: 1.15rem 1.35rem;
  border-left: .25rem solid var(--accent);
  border-radius: 0 var(--round) var(--round) 0;
}
.article-cta p { margin-bottom: .75rem; }
.article-actions .button, .article-cta .button { max-width: 100%; }
.tool-head h1, .theme-real .tool-head h1 { max-width: 23ch; }
.tool-content { padding-block: 2rem 4.5rem; }
.tool-content h2 { font-size: clamp(1.65rem, 3.65vw, 2.85rem); }
.tool-content h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.tool-content [hidden] { display: none !important; }
.tool-columns, .demo-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 1.25rem;
  align-items: start;
}
.demo-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.tool-form, .tool-result, .tool-callout, .option-card {
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--surface);
  padding: clamp(1.2rem, 3vw, 2.3rem);
  min-width: 0;
}
.tool-form, .tool-result, .tool-callout, .option-card > div:last-child, [data-finder-result] {
  display: grid;
  gap: .8rem;
  justify-items: start;
}
.tool-form { justify-items: stretch; }
.tool-form .button { justify-self: start; margin-top: .45rem; }
.tool-form label, .tool-filter { font-size: .92rem; font-weight: 750; }
.tool-form label { margin-bottom: -.45rem; }
.tool-form h2 { margin-bottom: .3rem; }
.tool-form select, .tool-filter select, .share-fallback textarea {
  width: 100%;
  border: 1px solid var(--muted);
  border-radius: .27rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  min-height: 2.8rem;
  padding: .55rem .65rem;
}
.tool-content button { font-family: inherit; cursor: pointer; border: 0; }
.tool-content select:focus-visible, .tool-content button:focus-visible, .tool-content textarea:focus-visible,
.tool-content summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tool-content summary { cursor: pointer; font-weight: 700; padding-block: .38rem; }
.tool-note { color: var(--muted); font-size: .89rem; }
.tool-links, .tool-related { color: var(--muted); font-size: .94rem; }
.tool-links { display: grid; gap: .4rem; margin-top: .35rem; }
.tool-related { margin-top: 1.25rem; }
.finder-practice {
  display: grid;
  gap: .35rem;
  margin-block: .15rem;
  padding: .9rem 1rem;
  background: var(--tint);
  border-left: 3px solid var(--accent);
}
.finder-practice h3 { font: 750 .9rem/1.4 "DM Sans", system-ui, sans-serif; }
.finder-secondary {
  border-top: 1px solid var(--line);
  padding-top: .8rem;
  margin-top: .15rem;
}
.tool-callout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  margin-block: 0 1.7rem;
  color: var(--panel-ink);
  background: var(--panel);
}
.tool-columns + .tool-callout { margin-top: 1.7rem; }
.callout-copy { display: grid; gap: .6rem; }
.tool-callout p { max-width: 62ch; color: var(--panel-muted); }
.tool-callout .button { color: var(--panel-button-ink); background: var(--panel-button); }
.tool-callout .button:hover { color: var(--panel-button-ink); background: #fff; }
.tool-callout .button:focus-visible { outline-color: var(--panel-button); }
.tool-sources {
  margin-top: 1.2rem;
  padding: .25rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--paper);
  max-width: 100%;
}
.tool-sources ul { padding: .3rem 1.25rem .7rem; }
.agenda-list, .option-list { padding: 0; list-style: none; display: grid; gap: .8rem; width: 100%; }
.agenda-list { margin-top: 1.1rem; }
.agenda-list li { padding: .85rem 1rem; border-left: 3px solid var(--accent); background: var(--tint); }
.agenda-list li > :not(:first-child), .agenda-phrase { margin-top: .45rem; }
.agenda-japanese { font-size: 1.14rem; font-weight: 700; }
.agenda-followup { color: var(--muted); font-size: .92rem; }
.tool-sources .agenda-phrase { margin-block: .65rem; }
[data-agenda-results] { width: 100%; }
[data-agenda-results] > p + p { margin-top: .75rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; max-width: 100%; }
.share-actions button:not(.button) {
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: .7rem 1rem;
  min-height: 2.95rem;
  color: var(--accent);
  font-weight: 750;
  background: var(--paper);
}
.share-fallback { font-size: .88rem; width: 100%; }
[data-share-status]:empty { display: none; }
.tool-filter { display: grid; max-width: 27rem; margin-block: 1rem .6rem; gap: .35rem; }
.option-list { margin-top: .7rem; }
.option-card { display: grid; grid-template-columns: minmax(9rem, .6fr) minmax(0, 1.4fr); gap: .9rem 1.6rem; }
.option-card h3 { margin-top: .5rem; }
.option-card[data-option="host"] { background: var(--tint); border-left: .25rem solid var(--accent); }
.demo-exchange { width: 100%; display: grid; gap: .95rem; padding: 0; list-style: none; }
.demo-exchange li {
  width: min(100%, 32rem);
  margin-right: min(8%, 2rem);
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0 var(--round) var(--round) var(--round);
  background: var(--tint);
}
.demo-exchange li:nth-child(even) {
  justify-self: end;
  margin-right: 0;
  margin-left: min(8%, 2rem);
  border-radius: var(--round) 0 var(--round) var(--round);
  background: var(--paper);
}
.demo-exchange strong { color: var(--accent-hover); font-size: .85rem; }
.demo-speech { margin-block: .25rem .65rem; }
.demo-dialogue details { border-top: 1px solid var(--line); }
.demo-dialogue summary { color: var(--accent-hover); font-size: .88rem; }
.demo-dialogue details p { color: var(--muted); font-size: .94rem; }
@media (max-width: 47rem) {
  .tool-columns, .demo-layout, .option-card, .tool-callout { grid-template-columns: minmax(0, 1fr); }
  .tool-content { padding-bottom: 3rem; }
  .demo-exchange li { width: calc(100% - .7rem); margin-inline: 0; }
}
