@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #151f37;
  --muted: #4f596a;
  --paper: #fbfaf7;
  --gold: #f4cf8b;
  --rule: #dbdcd9;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 4rem);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #8a5a14; outline-offset: 5px; }

.shell {
  width: min(calc(100% - var(--gutter) * 2), 82rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  background: var(--paper);
  padding: 0.6rem 1rem;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header { min-height: 5.25rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
  place-items: center;
  border-radius: 0.52rem;
  background: var(--ink);
  color: var(--gold);
}

.brand-mark span {
  position: relative;
  width: 1.125rem;
  height: 0.1875rem;
  transform: rotate(-42deg);
  border-radius: 1rem;
  background: currentColor;
}

.brand-mark span::before {
  position: absolute;
  top: -0.36rem;
  right: 0.065rem;
  width: 0.47rem;
  height: 0.91rem;
  border-block: 0.125rem solid currentColor;
  border-radius: 0.16rem;
  background: var(--ink);
  box-shadow: inset 0.13rem 0 currentColor, inset -0.13rem 0 currentColor;
  content: "";
}

.header nav { display: flex; align-items: center; gap: clamp(0.85rem, 3vw, 2rem); }

.header nav a {
  padding-block: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header nav a:hover, .hero-credit a:hover { text-decoration: underline; text-underline-offset: 0.24em; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--ink);
  color: var(--paper);
}

.hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-height: 34.5rem;
  padding: clamp(2rem, 5vw, 4.6rem);
}

.eyebrow {
  color: #78551f;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

h1 {
  margin-top: 1.2rem;
  font-size: clamp(3.8rem, 7vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
}

h1 em { color: var(--gold); }

.hero-description {
  max-width: 28rem;
  margin-top: 1.55rem;
  color: #e3e7ef;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.button {
  display: inline-block;
  margin-top: 1.8rem;
  border-radius: 0.46rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #ffdfa5; }
.hero a:focus-visible { outline-color: var(--gold); }

.hero-credit { margin-top: 1.15rem; color: #c7cedb; font-size: 0.875rem; }
.hero-credit a { color: var(--paper); text-decoration: none; font-weight: 600; }

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 38rem;
  object-fit: cover;
  object-position: center 52%;
}

.exams, .approach { padding-block: clamp(3.75rem, 7vw, 6rem); }
.approach { border-top: 1px solid var(--rule); background: #fff; }
.section-heading h2 { margin-top: 0.55rem; font-size: clamp(2.75rem, 5.4vw, 5rem); line-height: 1; }
.section-heading h2 + p { margin-top: 0.9rem; max-width: 38rem; color: var(--muted); }

.exam-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.exam-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  padding: clamp(1.1rem, 2vw, 1.65rem);
  background: #fff;
}

.exam-card h3 { font-size: 2.6rem; line-height: 1; }
.exam-card .exam-name { margin-block: 0.55rem 0.75rem; color: var(--ink); font-weight: 700; }
.exam-card p { color: var(--muted); line-height: 1.55; }

.exam-card a {
  margin-top: auto;
  padding-top: 0.85rem;
  color: #78551f;
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.exam-card a:hover { color: var(--ink); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 4.8vw, 5rem);
  margin-top: 2.4rem;
}

.principles article { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.principles h3 { font-size: clamp(1.8rem, 2.65vw, 2.45rem); line-height: 1.12; }
.principles p { margin-top: 0.62rem; max-width: 24rem; color: var(--muted); }

.company { background: #eef0f2; }

.company-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 1.5rem 3rem;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.company-inner > p { max-width: 27rem; color: var(--muted); }

.footer { padding-block: 1.8rem; }
.footer .wordmark { font-size: 1.62rem; }
.footer p { color: var(--muted); font-size: 0.875rem; }

/* Footer links to the legal and support pages (Nov 24). Apple wants
   Privacy and Terms reachable from the website, not only the app. */
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.875rem; }
.footer-links a { color: var(--muted); text-underline-offset: 0.2em; }
.footer-links a:hover { color: var(--ink); }

/* Long-text pages: privacy, terms, support (Nov 24).
   A narrow column so lines stay easy to read. */
.legal { max-width: 46rem; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem); }
.legal h1 { margin-top: 0.6rem; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; }
.legal .updated { margin-top: 0.9rem; color: var(--muted); font-size: 0.9rem; }
.legal h2 { margin-top: 2.4rem; font-size: 2rem; line-height: 1.1; }
.legal h3 { margin-top: 1.4rem; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.legal p, .legal ul { margin-top: 0.8rem; color: #2c3547; }
.legal ul { padding-left: 1.3rem; }
.legal li + li { margin-top: 0.4rem; }
.legal a { color: #78551f; font-weight: 600; text-underline-offset: 0.18em; }
.legal .callout { margin-top: 1.6rem; border-radius: 0.8rem; background: #fff; border: 1px solid var(--rule); padding: 1.1rem 1.3rem; }

@media (max-width: 64rem) {
  .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 50rem) {
  .hero-content { min-height: 29rem; }
  h1 { font-size: clamp(3.2rem, 8vw, 4.8rem); }
  .desktop-break { display: none; }
}

@media (max-width: 40rem) {
  .header { min-height: 4.5rem; }
  .header .wordmark { font-size: 1.65rem; gap: 0.45rem; }
  .header nav { gap: 0.8rem; }
  .header nav a { font-size: 0.875rem; }
  .hero-inner, .principles, .company-inner { grid-template-columns: 1fr; }
  .hero-content { min-height: auto; padding: 2.3rem 1.5rem; }
  h1 { max-width: 28rem; font-size: clamp(3.5rem, 12vw, 5rem); }
  .hero-photo { aspect-ratio: 4 / 3; height: auto; object-position: center 52%; }
  .principles { gap: 1.6rem; margin-top: 1.8rem; }
  .company-inner { align-items: start; }
  .company-inner h2 { text-wrap: balance; }
  .footer { align-items: flex-start; flex-direction: column; }
  .legal h2 { font-size: 1.75rem; }
}

@media (max-width: 34rem) {
  .exam-grid { grid-template-columns: 1fr; }
}

@media (max-width: 23rem) {
  .header, .header nav { gap: 0.65rem; }
  .header .brand-mark { display: none; }
}
