@font-face {
  font-family: 'Hello Scratchy';
  src: url('fonts/Hello-Scratchy-Solid.woff2') format('woff2'),
       url('fonts/Hello-Scratchy-Solid.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hello GoodNotes';
  src: url('fonts/Hello-GoodNotes.woff2') format('woff2'),
       url('fonts/Hello-GoodNotes.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Morning Grown';
  src: url('fonts/morning_grown-webfont.woff2') format('woff2'),
       url('fonts/Morning%20Grown.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FEFCF8;
  --ink: #1A1A1A;
  --muted: #8A857A;
  --yellow: #F4E27A;
  --line: #E8E4DA;
}

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

/* CONTAINER */
.site {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
}

h2, h3 {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

/* HEADER */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.5rem 0 1.5rem;
}

.wordmark,
a.wordmark,
.wordmark:hover,
a.wordmark:hover,
.wordmark:visited,
a.wordmark:visited {
  display: block;
  width: 100%;
  max-width: min(440px, 100%);
  text-decoration: none;
  margin-bottom: 1rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* NAV — plain text only, no pills */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.nav-link,
a.nav-link {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1A1A;
  background: transparent;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-link[aria-current="page"],
a.nav-link:hover,
a.nav-link:focus,
a.nav-link[aria-current="page"] {
  background: #F4E27A;
  padding: 2px 5px;
  color: #1A1A1A;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

main {
  flex: 1;
}

.page-section {
  margin: 0;
  padding: 0 0 3rem;
}

.page-section:last-of-type {
  padding-bottom: 5rem;
}

.label {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
}

.page-section:first-of-type .label {
  margin-top: 0;
}

.body-copy,
main p {
  max-width: 460px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.body-copy + .body-copy {
  margin-top: 1rem;
}

.teach-philosophy {
  max-width: 560px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.teach-aside {
  margin-top: 1.5rem;
  max-width: 480px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #8A857A;
  border-left: 2px solid #F4E27A;
  padding-left: 16px;
}

.teach-ctas {
  clear: both;
  margin-top: 3rem;
}

.teach-cta-line {
  margin: 0;
  max-width: none;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1A1A1A;
}

.teach-cta-line + .teach-cta-line {
  margin-top: 1rem;
}

.teach-doc-link {
  color: #1A1A1A;
  text-decoration: none;
}

.teach-doc-link:hover {
  background: #F4E27A;
  color: #1A1A1A;
  text-decoration: none;
}

.contact-block {
  margin-top: 1rem;
}

.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A857A;
  margin-top: 14px;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  background: #FEFCF8;
  border: 1px solid #E8E4DA;
  border-radius: 3px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #D96A8E;
  outline: none;
}

.contact-form button {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #F4E27A;
  color: #1A1A1A;
  border: none;
  border-radius: 3px;
  padding: 12px 28px;
  margin-top: 20px;
  align-self: flex-start;
  cursor: pointer;
}

.contact-form button:hover {
  background: #D96A8E;
  color: #FEFCF8;
}

.contact-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.field-error,
.form-error {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #C4453D;
  margin-top: 4px;
}

.form-success {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  color: #1A1A1A;
  background: #F4E27A;
  padding: 12px 16px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.form-success:empty,
.form-error:empty,
.field-error:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.teaching-intro {
  overflow: hidden;
}

.teaching-photo-wrap {
  float: right;
  width: 320px;
  max-width: 100%;
  margin: 0 0 20px 32px;
}

.teaching-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.teaching-photo-caption {
  margin: 10px 0 0;
  width: 100%;
  max-width: 320px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #8A857A;
}

.teaching-intro .label {
  margin-top: 0;
}

@media (max-width: 699px) {
  .teaching-photo-wrap {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 0 1.5rem 0;
  }

  .teaching-photo {
    width: 100%;
    max-width: 280px;
  }

  .teaching-photo-caption {
    width: 100%;
    max-width: 280px;
    text-align: left;
  }

  .teach-aside {
    max-width: 100%;
  }

  .contact-form {
    max-width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .contact-form button {
    width: 100%;
    min-height: 44px;
    align-self: stretch;
  }
}

.section-heading {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.meta,
.photo-caption,
.field-label,
.btn,
.site-copyright {
  font-family: "DM Mono", ui-monospace, monospace;
}

.meta {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* CAPTION */
.photo-caption {
  margin-top: 10px;
  max-width: 480px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #8A857A;
  line-height: 1.5;
}

.ph {
  color: var(--ink);
}

.essay-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.5;
  color: #1A1A1A;
}

.essay-list li {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.essay-list li:last-child {
  margin-bottom: 0;
}

.essay-list a {
  text-decoration: none;
  color: #1A1A1A;
}

.essay-list a:hover {
  background: #F4E27A;
  text-decoration: none;
}

.teach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .teach-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  max-width: 100%;
}

.card h2 {
  font-size: 1.1rem;
  margin: 0;
}

.card .body-copy {
  margin-top: 0.75rem;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.field:focus,
.field:focus-visible {
  outline: none;
  background: var(--yellow);
}

textarea.field {
  min-height: 8rem;
  resize: vertical;
}

.form-stack {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-stack > p {
  margin: 0;
}

.btn {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.65rem 1.1rem;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  border-radius: 0;
}

.btn:hover,
.btn:focus,
.btn:focus-visible {
  outline: none;
  background: var(--yellow);
  text-decoration: none;
}

.about-layout {
  display: block;
}

.about-copy {
  display: block;
  overflow: hidden;
  max-width: none;
  width: 100%;
}

.about-copy .body-copy {
  max-width: none;
  width: auto;
  font-size: 16px;
  line-height: 1.6;
}

.about-copy .body-copy + .body-copy {
  margin-top: 1rem;
}

.portrait-float {
  float: right;
  width: 300px;
  margin: 0 0 1.5rem 32px;
  shape-margin: 20px;
}

.portrait-wrap {
  position: relative;
  width: 250px;
  height: 312px;
  margin-left: auto;
}

.portrait-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .portrait-float {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 0 1.5rem 0;
  }

  .portrait-wrap {
    position: static;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-left: 0;
    margin-bottom: 0;
  }

  .portrait-wrap > img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .about-copy .body-copy {
    max-width: 100%;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }
}

/* PHOTO + HERO */
.hero {
  position: relative;
  width: 100%;
}

.photo-wide {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.photo-wide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero-lines {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 16px;
  line-height: 2.2;
  color: #1A1A1A;
}

.hero-lines li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.hero-lines li::marker {
  content: none;
}

.hl {
  background: #F4E27A;
  padding: 3px 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lines a {
  text-decoration: none;
  color: #1A1A1A;
}

.hero-lines a:hover {
  text-decoration: underline;
  color: #1A1A1A;
  background: #F4E27A;
}

@media (max-width: 699px) {
  .hero-lines {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 14px;
    text-align: left;
  }

  .photo-caption {
    font-size: 12px;
    max-width: 100%;
    margin-top: 1rem;
  }

  .more-about {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    box-sizing: border-box;
  }
}

.more-about {
  display: inline-block;
  margin-top: 3rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #1A1A1A;
  background: #F4E27A;
  padding: 3px 5px;
  text-decoration: none;
  text-align: left;
}

.more-about:hover {
  color: #1A1A1A;
  background: #F4E27A;
  text-decoration: underline;
}

.coaching-copy {
  margin-top: 1.5rem;
}

.coaching-copy + .coaching-copy {
  margin-top: 1rem;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  padding: 0 0 3rem;
  margin-top: 4rem;
  border-top: 1px solid #E8E4DA;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}

.site-footer-links a {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1A1A;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
}

.site-footer-links a:hover {
  background: #F4E27A;
  padding: 2px 5px;
  color: #1A1A1A;
}

.site-copyright {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #8A857A;
}

/* ——— Mobile ——— */
@media (max-width: 699px) {
  .wordmark,
  a.wordmark {
    max-width: 100%;
  }

  .site-nav {
    row-gap: 8px;
    column-gap: 16px;
  }

  .nav-link,
  a.nav-link {
    font-size: 12px;
    padding: 6px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link[aria-current="page"],
  a.nav-link:hover,
  a.nav-link:focus,
  a.nav-link[aria-current="page"] {
    padding: 6px 5px;
  }

  .essay-list {
    font-size: 14px;
  }

  .essay-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0 0 1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .essay-list .meta {
    display: block;
    font-size: 13px;
  }

  .site-footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }

  .site-footer-links a:hover {
    padding: 6px 5px;
  }
}
