@font-face {
  font-family: "Hondana Sans";
  src: url("./body.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Hondana Sans";
  src: url("./body-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Hondana Serif";
  src: url("./heading.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf5;
  --white: #fffefa;
  --ink: #1a3028;
  --muted: #4d6057;
  --green: #205e46;
  --deep: #102c26;
  --forest: #183a30;
  --gold: #f3d38a;
  --line: #dce3d8;
  --serif: "Hondana Serif", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Hondana Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.34;
}

h2 {
  font-size: clamp(1.78rem, 3.12vw, 2.58rem);
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #287c55;
  outline-offset: 5px;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
}

.container {
  width: min(100% - 88px, 1152px);
  margin-inline: auto;
}

.site-header, .site-footer {
  color: #f8f5eb;
  background: var(--deep);
}

.site-header {
  border-bottom: 1px solid #ffffff22;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 73px;
  gap: 26px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #eed08f50;
  border-radius: 8px;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.2vw, 48px);
}

.site-nav a {
  padding-block: 10px;
  color: #ecede3;
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--gold);
}

.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
  color: #fdf9ed;
}

.hero-photo, .hero-shade {
  position: absolute;
  inset-block: 0;
  right: 0;
  height: 100%;
  width: min(72%, 1110px);
}

.hero-photo {
  z-index: -2;
  object-fit: cover;
  object-position: center 54%;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, var(--deep) 0%, #102c26f0 13%, #102c26ad 32%, #102c262b 58%, #102c2605 100%),
    linear-gradient(0deg, #102c2654, transparent 27%);
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 516px;
  padding-block: 67px 73px;
}

.hero-copy {
  max-width: 650px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0e4c5;
  font-size: .83rem;
  letter-spacing: .09em;
  font-weight: 700;
}

.hero-kicker > span:first-child {
  width: 24px;
  border-bottom: 1px solid var(--gold);
}

.kicker-separator {
  color: #d9be87;
}

.hero h1 {
  margin-top: 21px;
  font-size: clamp(2.65rem, 5.3vw, 4.7rem);
  line-height: 1.27;
}

.hero h1 span {
  color: var(--gold);
}

.hero-lead {
  max-width: 535px;
  margin-top: 25px;
  color: #f0f0e6;
  font-size: clamp(.92rem, 1.33vw, 1.07rem);
  line-height: 1.94;
}

.hero-actions, .book-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 14px 28px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .17s ease, color .17s ease, border-color .17s ease;
}

.button span[aria-hidden] {
  font-size: 1.12em;
}

.button-gold {
  min-height: 50px;
  background: var(--gold);
  color: #182d25;
}

.button-gold:hover, .button-amazon:hover {
  background: #f8dfa6;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: #f1efe4;
  font-size: .87rem;
  font-weight: 700;
  text-decoration-color: #f0e4c584;
  text-underline-offset: 5px;
}

.section {
  padding-block: 70px 76px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--green);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .10em;
}

.section-label::before {
  content: "";
  width: 15px;
  border-bottom: 1px solid currentColor;
}

.section-heading > p:last-child:not(.section-label) {
  max-width: 51em;
  margin-top: 15px;
  color: var(--muted);
}

.admissions {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
}

.admissions-copy p:not(.section-label) {
  margin-top: 12px;
}

.admissions-copy p:not(.section-label, .intro-answer) {
  color: var(--muted);
}

.intro-answer {
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  color: var(--green);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.admissions-copy .text-link {
  margin-top: 13px;
}

.text-link:hover, .publisher:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.grade-card {
  padding: clamp(19px, 3.1vw, 32px);
  border: 1px solid #dce4d8;
  border-radius: 13px;
  background: #eff3ec;
}

.grade-card figcaption {
  margin-bottom: 13px;
  font-size: .93rem;
  font-weight: 700;
}

.grade-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(4px, 1.15vw, 16px);
  align-items: center;
  text-align: center;
}

.grade-equation div {
  padding: 8px 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  line-height: 1.5;
  white-space: nowrap;
}

.grade-equation div span {
  display: block;
  font-size: .79rem;
  font-weight: 700;
}

.grade-equation div strong {
  font-size: clamp(1.65rem, 3vw, 2.22rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
}

.grade-equation div small {
  padding-left: 2px;
  font-size: .68rem;
}

.grade-equation .grade-current {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff8e4;
}

.grade-plus {
  font-size: 1.16rem;
  color: var(--muted);
}

.grade-card > p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin-top: 13px;
}

.grade-card > p b {
  font-size: .93rem;
}

.grade-card > p span, .grade-card > a {
  color: var(--muted);
  font-size: .77rem;
}

.grade-card > a {
  display: inline-block;
  margin-top: 8px;
  text-underline-offset: 3px;
}

.small-break {
  display: none;
}

.study-section {
  background: #eaf0e7;
}

.study-grid, .book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.study-grid {
  margin-top: 26px;
}

.study-card, .book-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.study-card {
  padding: clamp(19px, 2.65vw, 29px);
}

.study-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.subject-marker {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 1.17rem;
  font-weight: 700;
}

.subject-english {
  color: #20543f;
  background: #dfede3;
}

.subject-math {
  color: #285271;
  background: #e4edf3;
}

.study-heading h3 {
  font-size: 1.25rem;
  line-height: 1.45;
}

.study-heading h3 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
}

.study-example {
  padding: 9px 13px;
  border: 1px solid #e4e8de;
  border-radius: 6px;
  background: #f5f6ef;
  font-size: .94rem;
  font-weight: 700;
}

.study-example + p {
  margin-top: 12px;
  font-size: .92rem;
}

.study-card .text-link {
  margin-top: 9px;
}

.study-note {
  display: flex;
  align-items: baseline;
  gap: 3px 16px;
  margin-top: 20px;
  padding: 11px 15px;
  border-left: 3px solid #719879;
  color: var(--muted);
  font-size: .9rem;
}

.study-note strong {
  flex: none;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 23px;
  margin-top: 25px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f0f3ec;
}

.filters {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  margin: 0;
}

.filters legend {
  float: left;
  margin-right: 10px;
  padding: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-options button {
  min-height: 37px;
  padding: 5px 11px;
  border: 1px solid #cad8cb;
  border-radius: 6px;
  background: var(--white);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.filter-options button:hover {
  border-color: var(--green);
}

.filter-options button[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fdfaf0;
}

.book-count {
  margin-left: auto;
  color: var(--muted);
  font-size: .79rem;
}

.book-grid {
  margin-top: 18px;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(17px, 2.45vw, 28px);
}

.book-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 90px;
  margin-bottom: 4px;
}

.book-title {
  min-width: 0;
}

.book-title h3 {
  margin-block: 2px;
  font-size: clamp(.96rem, 1.56vw, 1.17rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.book-title > p, .book-card > p {
  color: var(--muted);
  font-size: .88rem;
}

.book-title .book-meta {
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
}

.book-meta span {
  margin-inline: 4px;
}

.book-cover {
  position: relative;
  display: grid;
  align-content: end;
  gap: 12px;
  flex: 0 0 67px;
  height: 88px;
  padding: 8px 4px 9px 8px;
  overflow: hidden;
  border-left: 4px solid #152c2428;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 3px 8px #13362b24;
  line-height: 1.1;
}

.book-cover b {
  font-family: Georgia, serif;
  font-size: 23px;
}

.book-cover i {
  width: 30px;
  height: 2px;
  border-top: 1px solid currentColor;
  opacity: .45;
}

.book-cover-mint { background: #d7e9d7; color: #255740; }
.book-cover-blue { background: #dce8f0; color: #2c4e65; }
.book-cover-gold { background: #f1e1b9; color: #614a26; }
.book-cover-rose { background: #eaccc1; color: #6c3c33; }

.book-card .book-fit {
  color: var(--ink);
}

.book-fit strong {
  font-size: .83rem;
}

.book-actions {
  gap: 7px 16px;
  margin-top: auto;
  padding-top: 6px;
}

.button-amazon {
  border-color: #e7c478;
  background: #f4d68f;
  color: #282d22;
}

.publisher {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 5px;
  color: var(--muted);
  font-size: .76rem;
  text-decoration: none;
}

.books-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .78rem;
}

.faq-section {
  border-top: 1px solid #e4e7dd;
  background: #f2f4ec;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 28px 55px;
}

.faq-layout h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
}

.faq-list details {
  border-bottom: 1px solid #d4ded1;
}

.faq-list details:first-child {
  border-top: 1px solid #d4ded1;
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 13px 28px 13px 2px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.7;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before, .faq-list summary::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 5px;
  width: 12px;
  border-top: 1.5px solid var(--green);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  display: none;
}

.faq-list details p {
  padding: 0 18px 13px 2px;
  color: var(--muted);
  font-size: .88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 15px 26px;
  padding-block: 27px 31px;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
}

.footer-inner p {
  margin-top: 4px;
  color: #dce6d9;
  font-size: .77rem;
}

.footer-sources a {
  text-underline-offset: 4px;
}

@media (max-width: 1020px) {
  .hero-photo, .hero-shade {
    width: 78%;
  }

  .desktop-break {
    display: none;
  }

  .hero-lead {
    max-width: 450px;
  }

  .admissions {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 48px);
  }

  .hero-inner {
    min-height: 452px;
    padding-block: 51px 55px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 7vw, 3.33rem);
  }

  .section {
    padding-block: 54px 59px;
  }

  .admissions {
    gap: 25px;
  }

  .study-heading h3 small {
    display: block;
    margin: 0;
  }

  .book-head {
    gap: 12px;
  }

  .book-cover {
    flex-basis: 57px;
    height: 78px;
  }

  .faq-layout {
    gap: 24px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 38px);
  }

  .header-inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 3px 12px;
    padding-top: 12px;
  }

  .wordmark {
    min-height: 40px;
    gap: 9px;
    font-size: 1.15rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-icon svg {
    width: 20px;
    height: 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 7px;
  }

  .site-nav a {
    min-height: 43px;
    padding-block: 9px;
    font-size: .80rem;
  }

  .hero-inner {
    min-height: 493px;
    align-items: start;
    padding-block: 29px 161px;
  }

  .hero-photo, .hero-shade {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 55%;
  }

  .hero-photo {
    object-position: center 60%;
  }

  .hero-shade {
    background: linear-gradient(180deg, var(--deep) 0%, #102c26ce 19%, #102c2650 44%, #102c260a 83%);
  }

  .hero-kicker {
    font-size: .75rem;
    gap: 6px;
  }

  .hero-kicker > span:first-child {
    width: 18px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(2.05rem, 8.6vw, 2.85rem);
  }

  .hero-lead {
    margin-top: 15px;
    line-height: 1.78;
  }

  .hero-actions {
    gap: 6px 14px;
    margin-top: 19px;
  }

  .button-gold {
    min-height: 46px;
    gap: 10px;
    padding-inline: 12px;
    font-size: .83rem;
  }

  .hero-secondary {
    gap: 4px;
    font-size: .77rem;
  }

  .section {
    padding-block: 42px 47px;
  }

  .admissions, .faq-layout, .study-grid, .book-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .study-grid {
    gap: 12px;
    margin-top: 17px;
  }

  .study-heading h3 small {
    display: inline;
    margin-left: 7px;
  }

  .study-note {
    flex-wrap: wrap;
  }

  .filter-bar {
    gap: 8px 14px;
    margin-top: 18px;
    padding: 10px;
  }

  .filter-options button {
    min-height: 42px;
  }

  .book-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .book-head {
    min-height: 76px;
  }

  .faq-list summary {
    min-height: 47px;
  }
}

@media (max-width: 350px) {
  .small-break {
    display: inline;
  }

  .hero-secondary {
    min-height: 36px;
  }

  .study-heading h3 small {
    display: block;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

