:root {
  --ink: #192321;
  --ink-deep: #172e2c;
  --coral: #d5a447;
  --coral-dark: #b44d32;
  --sky: #dcebe7;
  --sky-strong: #d8d0c2;
  --white: #fffdf8;
  --paper: #f6f1e7;
  --panel: #fffdf8;
  --teal: #235d59;
  --gold: #d5a447;
  --line: #d8d0c2;
  --muted: #596562;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-gutter: clamp(1.25rem, 4.2vw, 4.75rem);
  --section-space: clamp(5rem, 9vw, 9rem);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--white);
  background: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--gold, #d5a447);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.4rem;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
}

.brand,
.footer-brand {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border-radius: 0.55rem;
}

.primary-navigation {
  display: flex;
  gap: clamp(1.6rem, 4vw, 4.5rem);
  font-size: 1.05rem;
}

.primary-navigation a,
.header-cta,
.footer a,
.text-link,
.course-copy a {
  transition: color 180ms ease, transform 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.footer nav a:hover,
.course-copy a:hover,
.text-link:hover {
  color: var(--teal);
}

.header-cta {
  justify-self: end;
  color: var(--teal);
  font-weight: 800;
}

.header-cta:hover {
  color: var(--coral-dark);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--white);
}

.menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-close-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(26rem, 1.05fr);
  min-height: min(790px, calc(100vh - 5.4rem));
  max-width: var(--max-width);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8.5rem) var(--page-gutter);
  background: var(--panel, #fffdf8);
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 7rem);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 30rem;
  margin: 2.1rem 0 0;
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.75rem;
}

.button {
  display: inline-flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button-primary {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.button-secondary {
  background: var(--white);
}

.hero-portrait,
.about-portrait {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: var(--paper);
}

.hero-portrait > img {
  position: absolute;
  z-index: 4;
  right: 3%;
  bottom: -11%;
  width: min(76%, 590px);
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

.grid-lines {
  background-image:
    linear-gradient(var(--sky-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--sky-strong) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-portrait .grid-lines {
  position: absolute;
  z-index: 1;
  top: 8%;
  right: 3%;
  width: 66%;
  height: 56%;
  opacity: 0.65;
}

.portrait-frame {
  position: absolute;
  z-index: 2;
  top: 16%;
  right: 10%;
  width: 72%;
  height: 64%;
  border: 1px solid var(--line);
}

.portrait-accent {
  position: absolute;
  z-index: 0;
  right: 1.5%;
  bottom: 0;
  width: 76%;
  height: 48%;
  background: var(--sky);
}

.dot-matrix {
  position: absolute;
  z-index: 5;
  top: 31%;
  right: 6%;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 17px;
}

.dot-matrix span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.intro-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1px solid var(--line);
}

.intro-strip > div {
  min-height: 13rem;
  padding: 3.2rem var(--page-gutter);
}

.intro-strip > div:first-child {
  border-right: 1px solid var(--line);
}

.intro-strip span,
.section-label {
  display: block;
  margin: 0 0 1rem;
  color: var(--coral-dark);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.intro-strip h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-family: var(--serif);
  font-weight: 500;
}

.focus-note {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--sky);
}

.focus-note svg {
  width: 3.5rem;
  height: 3.5rem;
}

.focus-note p {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.focus-note strong {
  font-size: 1.25rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-space) var(--page-gutter);
}

.courses {
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.courses-heading {
  position: relative;
  max-width: 44rem;
}

.courses-heading::after {
  position: absolute;
  top: -2.1rem;
  left: calc(100% + 4rem);
  width: 52vw;
  height: 15rem;
  background-image:
    linear-gradient(var(--sky) 1px, transparent 1px),
    linear-gradient(90deg, var(--sky) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 6rem);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-heading > p:last-child {
  max-width: 34rem;
  margin: 1.7rem 0 2.8rem;
  font-size: 1.25rem;
}

.course-list {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
}

.course-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(18rem, 0.85fr) minmax(22rem, 1.2fr);
  min-height: 18rem;
  align-items: center;
  padding: 2.25rem 2rem;
}

.course-row + .course-row {
  border-top: 1px solid var(--line);
}

.course-number {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  padding-top: 1.5rem;
  border-right: 1px solid var(--line);
  color: var(--coral);
  font-size: clamp(3.2rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
}

.course-copy {
  padding: 0 clamp(2rem, 4vw, 4rem);
}

.course-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-family: var(--serif);
  font-weight: 500;
}

.course-copy p {
  max-width: 28rem;
  margin: 1.35rem 0;
  font-size: 1.08rem;
}

.course-copy a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--coral-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.course-copy a svg,
.text-link svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 180ms ease;
}

.course-copy a:hover svg,
.text-link:hover svg {
  transform: translateX(5px);
}

.course-illustration {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
}

.illustration-wash {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 68%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: var(--sky);
}

.course-illustration::after {
  position: absolute;
  right: 2%;
  bottom: 8%;
  left: 2%;
  height: 1px;
  background: var(--ink);
  content: "";
}

.course-illustration .icon {
  position: absolute;
  z-index: 2;
  color: var(--ink);
}

.featured-books {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.featured-book {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  min-height: 18rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.featured-cover {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sky);
}

.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-cover .generated-cover {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: .9rem;
  color: var(--white);
  background: var(--ink-deep);
}

.featured-cover .generated-cover > span { color: var(--gold); font-size: .55rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.featured-cover .generated-cover > strong { font: 500 clamp(1rem, 2vw, 1.5rem)/1 var(--serif); }
.featured-cover .generated-cover > small { color: #c9d6d3; font-size: .6rem; }

.featured-book h3 {
  margin: 0;
  font: 500 clamp(1.75rem, 3vw, 2.75rem)/1 var(--serif);
  letter-spacing: -0.045em;
}

.featured-book h3 a { text-decoration: none; }
.featured-book > div > p:not(.section-label) { color: var(--muted); }
.catalog-loading { grid-column: 1 / -1; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-action { display: flex; justify-content: center; margin-top: 2.5rem; }

.apps {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(30rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  color: var(--white);
  background: var(--ink-deep);
}

.apps-copy h2 {
  max-width: 13ch;
  margin: 0;
  font: 500 clamp(3.25rem, 6vw, 6rem)/.98 var(--serif);
  letter-spacing: -.065em;
}

.apps-copy > p:not(.section-label) {
  max-width: 38rem;
  margin: 1.7rem 0 2rem;
  color: #dce5e2;
  font-size: 1.15rem;
}

.platform-list { border-top: 1px solid rgba(255,255,255,.35); }
.platform-list article { position: relative; padding: 1.6rem 8rem 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.platform-list article > span { position: absolute; top: 1.8rem; right: 0; color: var(--gold); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.platform-list h3 { margin: 0; font: 500 2.2rem/1 var(--serif); }
.platform-list p { margin: .6rem 0; color: #c5d2cf; }
.platform-list a { color: var(--gold); font-weight: 850; }

.icon-file { left: 12%; top: 16%; width: 4.5rem; height: 4.5rem; }
.icon-bulb { right: 14%; top: 8%; width: 4rem; height: 4rem; color: var(--coral) !important; }
.icon-bot { right: 7%; bottom: 9%; width: 4.5rem; height: 4.5rem; }

.illustration-laptop {
  position: absolute;
  z-index: 3;
  right: 25%;
  bottom: 8%;
  display: flex;
  width: 12.5rem;
  height: 8rem;
  align-items: center;
  justify-content: space-evenly;
  border: 2px solid var(--ink);
  border-bottom-width: 8px;
  background: var(--white);
}

.illustration-laptop svg { width: 3rem; height: 3rem; }
.illustration-laptop svg:last-child { color: var(--coral); }

.icon-building { right: 9%; top: 12%; width: 9rem; height: 9rem; }
.icon-house { left: 22%; bottom: 8%; width: 10rem; height: 10rem; }
.icon-presentation { right: 6%; bottom: 8%; width: 6rem; height: 6rem; }
.icon-key { right: 20%; bottom: 8%; width: 4rem; height: 4rem; color: var(--coral) !important; }

.for-sale {
  position: absolute;
  z-index: 4;
  bottom: 13%;
  left: 10%;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--coral);
  font-size: 0.75rem;
  font-weight: 900;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.9fr);
  align-items: stretch;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.about-copy {
  align-self: center;
  padding-top: var(--section-space);
  padding-right: var(--page-gutter);
  padding-bottom: var(--section-space);
}

.about h2 span {
  color: var(--coral);
}

.about-body {
  max-width: 38rem;
  margin-top: 2.7rem;
  padding-top: 2rem;
  border-top: 3px solid var(--coral);
}

.about-body p:first-child {
  font-size: clamp(1.2rem, 1.75vw, 1.5rem);
}

.about-body p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.experience-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 42rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-rail > div {
  padding-right: 1.25rem;
}

.experience-rail > div + div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.experience-rail dt,
.experience-rail dd {
  margin: 0;
}

.experience-rail dt {
  font-weight: 900;
}

.experience-rail dd {
  color: var(--muted);
  font-size: 0.92rem;
}

.about-portrait {
  min-height: 52rem;
}

.about-portrait .grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.about-portrait img {
  position: absolute;
  z-index: 2;
  right: -2%;
  bottom: -11%;
  width: 96%;
  height: auto;
}

.contact {
  position: relative;
  overflow: hidden;
  overflow-anchor: none;
  padding: clamp(5rem, 8vw, 8rem) var(--page-gutter);
  color: #fffaf2;
  background: linear-gradient(135deg, var(--ink-deep), var(--teal));
}

.contact-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 15rem;
  opacity: 0.35;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  max-width: none;
}

.contact-inner > p {
  max-width: 48rem;
  margin: 1.7rem auto 2.3rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
}

.newsletter-form {
  max-width: 58rem;
  margin: 0 auto;
  text-align: left;
}

.newsletter-form label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.form-row input,
.form-row button {
  min-height: 5.4rem;
  border: 2px solid var(--ink);
  border-radius: 0;
}

.form-row input {
  min-width: 0;
  padding: 0 1.5rem;
  background: var(--white);
  font-size: 1.25rem;
}

.form-row button {
  margin-left: -2px;
  padding: 0 2.5rem;
  color: var(--ink);
  background: var(--coral);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.form-row button:hover {
  color: var(--white);
  background: var(--teal);
}

.newsletter-form > p {
  margin: 0.8rem 0 0;
  color: rgba(255, 250, 242, 0.74);
}

.newsletter-form .form-error {
  margin-top: 12px;
  color: #fffdf8;
  font-weight: 700;
}

.newsletter-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-form {
  max-width: 64rem;
  margin: 0 auto;
  text-align: left;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.contact-form label { display: block; font-weight: 850; }
.contact-form label > span { opacity: .72; font-size: .82rem; font-weight: 500; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 3.6rem;
  margin-top: .45rem;
  padding: .75rem .9rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}
.contact-form textarea { resize: vertical; }
.contact-message-field, .contact-consent { grid-column: 1 / -1; }
.contact-consent { display: flex !important; gap: .75rem; align-items: flex-start; font-size: .92rem; }
.contact-consent input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; margin-top: .15rem; accent-color: var(--gold); }
.contact-form > button {
  min-height: 4rem;
  margin-top: 1.25rem;
  padding: .8rem 2.4rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}
.contact-form > button:disabled { cursor: wait; opacity: .7; }
.contact-form .form-error { color: var(--white); font-weight: 750; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact .form-success { margin: 0 auto; text-align: left; }

.form-success {
  display: flex;
  max-width: 48rem;
  min-height: 7rem;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}

.form-success > svg {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
}

.form-success strong {
  font-size: 1.3rem;
}

.form-success p {
  margin: 0.25rem 0 0;
}

.footer {
  padding: 4.5rem var(--page-gutter) 2rem;
  color: var(--white);
  background: var(--ink-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 3rem;
  max-width: 78rem;
  align-items: center;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 800;
}

.footer-inner > p {
  margin: 0;
  font-size: 1.2rem;
}

.copyright {
  max-width: 78rem;
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: var(--page-gutter);
}

.error-page main {
  width: min(100%, 52rem);
  padding: clamp(2rem, 7vw, 6rem);
  border: 1px solid var(--ink);
}

.error-page h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.error-page main > p:not(.section-label) {
  max-width: 34rem;
  margin: 1.75rem 0 2rem;
  font-size: 1.2rem;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--page-gutter) 1.25rem;
    border-bottom: 1px solid var(--ink);
    background: var(--white);
  }

  .primary-navigation.is-open {
    display: flex;
  }

  .primary-navigation a {
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--sky-strong);
    font-size: 1.2rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .course-row {
    grid-template-columns: 6.5rem 1fr;
  }

  .featured-books { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }

  .course-illustration {
    grid-column: 2;
    min-height: 12rem;
  }

  .course-number {
    grid-row: span 2;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer nav {
    border-right: 0;
  }

  .footer-inner > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --section-space: 4.5rem;
  }

  html {
    scroll-padding-top: 4.5rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    min-height: 4.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    border: 0;
  }

  .hero-copy {
    min-height: 36rem;
    justify-content: flex-end;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 17vw, 5.7rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-portrait {
    min-height: 33rem;
    border-top: 1px solid var(--line);
  }

  .hero-portrait > img {
    right: 0;
    bottom: -10%;
    width: 88%;
  }

  .intro-strip {
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
  }

  .intro-strip > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip > div {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .courses-heading::after {
    top: -1.5rem;
    left: 64%;
    width: 42vw;
    height: 9rem;
  }

  .courses {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
  }

  .featured-book { grid-template-columns: 6.5rem 1fr; min-height: auto; padding: 1.2rem; }
  .featured-book h3 { font-size: 1.75rem; }
  .apps { grid-template-columns: 1fr; }
  .apps-copy h2 { font-size: clamp(3.25rem, 15vw, 5rem); }
  .platform-list article { padding-right: 0; padding-top: 3.6rem; }
  .platform-list article.platform-web { padding-top: 1.6rem; }
  .platform-list article > span { top: 1rem; right: auto; left: 0; }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .course-row {
    grid-template-columns: 4.2rem 1fr;
    padding: 1.5rem 1.15rem 2rem;
  }

  .course-number {
    font-size: 2.75rem;
  }

  .course-copy {
    padding: 0 0 0 1.25rem;
  }

  .course-copy h3 {
    font-size: 2.15rem;
  }

  .course-illustration {
    grid-column: 1 / -1;
    min-height: 13rem;
    margin-top: 1.5rem;
  }

  .course-number {
    grid-row: auto;
  }

  .about {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
  }

  .about-copy {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

  .experience-rail {
    grid-template-columns: 1fr;
  }

  .experience-rail > div,
  .experience-rail > div + div {
    padding: 0.75rem 0;
    border-left: 0;
  }

  .experience-rail > div + div {
    border-top: 1px solid var(--sky-strong);
  }

  .about-portrait {
    min-height: 36rem;
  }

  .about-portrait img {
    width: 106%;
  }

  .contact-grid {
    width: 12rem;
    height: 12rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .form-row input,
  .form-row button {
    min-height: 4.6rem;
  }

  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-message-field, .contact-consent { grid-column: auto; }
  .contact-form > button { width: 100%; }

  .form-row button {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem 1.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 0;
  }

  .footer-inner > p {
    grid-column: auto;
  }

  .footer-inner,
  .footer-inner > * {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .featured-book {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .featured-book > div {
    min-width: 0;
  }

  .featured-book .text-link {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
