@font-face {
  font-family: Vazirmatn;
  src: url("vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: #172f29;
  background: #fafbf7;
  color-scheme: light;
  line-height: 1.75;
  --ink: #172f29;
  --emerald: #123f34;
  --green: #245745;
  --paper: #fafbf7;
  --muted: #51655e;
  --blue: #204f72;
  --line: #d7ded4;
  --gutter: clamp(22px, 5.25vw, 88px);
  --measure: 1240px;
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .choice:has(input:focus-visible) {
  outline: 3px solid #3773a7;
  outline-offset: 4px;
}
.hero :focus-visible { outline-color: #b6d2fb; }
.skip { position: absolute; z-index: 4; inset-inline-start: 1rem; top: -5rem; padding: 8px 14px; background: white; }
.skip:focus { top: 1rem; }
.shell { width: min(var(--measure), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
section[id] { scroll-margin-block-start: 20px; }

.masthead { border-block-end: 1px solid var(--line); background: var(--paper); }
.head { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-size: 1.38rem; font-weight: 900; color: var(--emerald); white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  padding-block-end: 2px;
  border-radius: 6px 6px 13px 6px;
  background: var(--emerald);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}
.head nav { display: flex; gap: clamp(22px, 3vw, 48px); align-items: center; color: var(--muted); font-weight: 630; }
.head nav a:hover, .foot a:hover { color: var(--emerald); text-decoration: underline; text-underline-offset: .28em; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 780;
  line-height: 1.55;
  text-align: center;
}
.button-outline { min-height: 42px; border-color: #a7baae; color: var(--emerald); }
.button-outline:hover { background: #e6efe6; }
.button-paper { color: var(--emerald); background: var(--paper); }
.button-paper:hover { background: #e1eee0; }
.button-emerald { color: white; background: var(--emerald); cursor: pointer; }
.button-emerald:hover { background: var(--green); }
.text-link { width: fit-content; color: var(--blue); font-weight: 720; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); background: var(--emerald); color: var(--paper); }
.hero-copy {
  align-self: center;
  padding-block: clamp(42px, 5.3vw, 94px) clamp(47px, 5.6vw, 96px);
  padding-inline-end: clamp(25px, 4vw, 78px);
  padding-inline-start: max(var(--gutter), (100vw - var(--measure)) / 2);
}
.hero-context { color: #c9ded1; font-weight: 650; }
h1 { margin-block: 13px 18px; font-size: clamp(3rem, 5.45vw, 6.1rem); line-height: 1.13; font-weight: 850; }
.hero-intro { max-width: 33rem; color: #e1ebe4; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-block-start: 26px; }
.hero .text-link { color: #dbeada; }
.hero-photo { display: block; position: relative; min-height: clamp(410px, 37vw, 640px); }
.hero-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 55%; }

h2 { font-size: clamp(1.7rem, 3.25vw, 3.15rem); font-weight: 820; line-height: 1.32; }
.grade-section { background: #eaf1e6; border-block-end: 1px solid #dae5d6; }
.grade-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.45fr); align-items: center; gap: clamp(16px, 3vw, 46px); padding-block: 27px; }
.grade-intro h2 { font-size: clamp(1.4rem, 2.05vw, 2rem); }
.grade-intro p { margin-block-start: 4px; color: var(--muted); }
.grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grades li { border-inline-start: 1px solid #bfcebe; }
.grades li:last-child { border-inline-end: 1px solid #bfcebe; }
.grades a { display: grid; justify-items: center; padding: 4px 2px 6px; font-size: .99rem; font-weight: 700; }
.grades a:hover { color: white; background: var(--green); }
.grades span { font-size: 1.82rem; font-weight: 850; line-height: 1.32; }

.practice { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(24px, 6vw, 100px); padding-block: clamp(54px, 7vw, 110px); }
.practice-copy p { margin-block: 10px 19px; max-width: 30rem; color: var(--muted); font-size: 1.06rem; }
.notebook {
  background: repeating-linear-gradient(to bottom, #f8fbff 0 29px, #dce8f1 29px 30px);
  border: 1px solid #c8d8e6;
  border-inline-start: 8px solid #204f72;
  border-radius: 5px 5px 9px 9px;
  padding: clamp(17px, 3vw, 34px);
}
.notebook-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding-block-end: 9px; border-block-end: 1px solid #bacbd8; color: var(--blue); }
.notebook-heading span { font-size: .94rem; font-weight: 670; }
fieldset { margin: 16px 0; padding: 0; border: 0; min-inline-size: 0; }
legend { margin-block-end: 10px; padding: 0; font-size: clamp(1.08rem, 2vw, 1.38rem); font-weight: 800; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { display: flex; align-items: center; min-height: 43px; gap: 6px; padding: 5px 10px; border: 1px solid #bfced9; border-radius: 5px; background: white; cursor: pointer; }
.choice input { margin: 0; accent-color: var(--emerald); }
.choice:has(:checked) { border-color: var(--emerald); background: #e7f2eb; }
.feedback-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.feedback-row .button { min-height: 43px; }
#sample-feedback { flex: 1 1 12rem; font-weight: 670; line-height: 1.55; }
#sample-feedback[data-result="correct"] { color: #1c6241; }
#sample-feedback[data-result="incorrect"] { color: #794619; }

.resources { background: #eaf0f5; border-block: 1px solid #dce4ec; }
.resources-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(24px, 6vw, 100px); padding-block: clamp(36px, 5.2vw, 76px); }
.resource-list { border-block-start: 1px solid #b9c9d6; }
.resource-list li { border-block-end: 1px solid #b9c9d6; }
.resource-list a { display: grid; grid-template-columns: minmax(120px, .7fr) 1.3fr; align-items: baseline; gap: 5px 15px; padding-block: 12px; }
.resource-list strong { font-size: 1.08rem; color: var(--blue); }
.resource-list a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.resource-list span { color: #495e6d; }

.faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(24px, 6vw, 100px); padding-block: clamp(44px, 6vw, 96px); }
.faq details { border-block-end: 1px solid var(--line); padding-block: 11px; }
.faq details:first-child { border-block-start: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 750; padding-block: 3px; }
.faq details p { padding-block-start: 5px; color: var(--muted); }
.footer { border-block-start: 1px solid var(--line); background: #eef2ea; }
.foot, .foot div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.foot { justify-content: space-between; padding-block: 23px; }
.foot div a { color: var(--muted); font-weight: 620; }

@media (max-width: 900px) {
  .head nav { gap: 17px; }
  .grade-layout { grid-template-columns: 1fr; gap: 15px; }
  .grade-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
  .hero-photo { min-height: 395px; }
}
@media (max-width: 700px) {
  .head { min-height: 64px; }
  .head nav { display: none; }
  .head .button { min-height: 40px; padding-inline: 9px; font-size: .89rem; }
  .hero, .practice, .faq, .resources-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 30px var(--gutter) 34px; }
  h1 { font-size: clamp(2.75rem, 10vw, 4rem); margin-block: 9px 12px; }
  .actions { margin-block-start: 20px; gap: 10px 15px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.65; }
  .grade-layout { padding-block: 20px; }
  .grades { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .grades li:nth-child(3n) { border-inline-end: 1px solid #bfcebe; }
}
@media (max-width: 360px) {
  .resource-list a { grid-template-columns: 1fr; gap: 1px; }
}
