html, body { overscroll-behavior-y: none; }

@font-face {
  font-family: "Open Sauce One";
  src: url("./2b782abc4e416c2a72796e22c7f73fc0ff0eb683b31477b3ed55c672d366e8d8.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce One";
  src: url("./dcd801c7db08643dac66362f87b0b7c67edb240dd6c1462a56ba53690c3f2b43.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1c1917;
  --paper: #faf7f1;
  --pink: #edbfd7;
  --line: #d9cfc5;
  --muted: #574e4a;
  color-scheme: light;
  font: 100%/1.6 "Open Sauce One", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid #a03e70; outline-offset: 4px; }
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - clamp(32px, 8vw, 112px))); margin-inline: auto; }
.dark { background: var(--ink); color: var(--paper); }
.dark a:focus-visible { outline-color: var(--pink); }
.site-header { padding-top: 10px; background: #f4f1ed; }
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(1280px, calc(100% - 30px));
  min-height: 56px;
  padding: 8px 8px 8px 16px;
  border-radius: 32px;
}
.brand { display: block; width: min(100%, 220px); }
.brand img { display: block; width: 100%; height: auto; }
.desktop-nav { display: flex; gap: clamp(24px, 3.35vw, 48px); }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.book-session {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 32px;
  background: #f4f1ed;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.035em;
}
.book-session:hover { background: var(--pink); }
.mobile-menu { display: none; }
.skip { position: absolute; z-index: 1; background: var(--paper); color: var(--ink); padding: 8px 16px; }
.skip:not(:focus) { clip-path: inset(50%); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin-block: clamp(24px, 4vw, 52px) 24px;
}
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; max-height: 295px; object-fit: cover; border-radius: 14px; }
h1 { font-size: clamp(2.6rem, 7vw, 6.7rem); line-height: .96; letter-spacing: -.075em; }
.hero p { max-width: 46ch; margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.14rem); }

.directory, .related { margin-bottom: clamp(48px, 8vw, 100px); }
.directory { border: 1px solid var(--ink); border-radius: 16px; background: #fffdf8; }
.directory-head, .directory-terms { padding: clamp(18px, 3.4vw, 40px); }
.directory-head h2, .related h2 { font-size: clamp(1.55rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -.06em; }
.related h2 { margin-bottom: 22px; }
.term-panel { background: #f0e9e1; padding: clamp(22px, 5vw, 62px); border-radius: 14px; }
.term-categories { margin-top: 16px; }
.term-categories ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.term-categories a { display: block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 24px; font-size: .88rem; text-decoration: none; }
.term-categories a:hover { background: var(--pink); border-color: var(--pink); }
.directory-terms { min-width: 0; border-radius: 0 0 15px 15px; }
.term-group + .term-group { margin-top: clamp(28px, 5vw, 56px); }
.term-group h3 { margin-bottom: 12px; color: var(--pink); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -.045em; scroll-margin-top: 20px; }
.term-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #1c19175e; }
.term-list li { border-bottom: 1px solid #1c19175e; }
.term-list a {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: clamp(14px, 2.5vw, 26px) 2px;
  text-decoration: none;
}
.term-list a:hover strong { text-decoration: underline; }
.term-list strong { font-size: clamp(1.1rem, 2.6vw, 1.9rem); line-height: 1.16; letter-spacing: -.035em; }

.term-group .term-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; border: 0; }
.term-group .term-list li { min-width: 0; border: 0; }
.term-group .term-list a {
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #ffffff38;
  border-radius: 10px;
  background: #ffffff08;
}
.term-group .term-list a:is(:hover, :focus-visible) { border-color: var(--pink); }
.term-group .term-list strong { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.term-group .term-list a > span { grid-column: 1; grid-row: 2; color: #ddd1ca; font-size: .9rem; }

.article-trail {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-block: clamp(24px, 4vw, 46px) 18px;
  font-size: .88rem;
}
.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(22px, 5vw, 64px);
  border-radius: 14px;
  background: var(--pink);
}
.article-head h1 { font-size: clamp(2.2rem, 5.2vw, 5.2rem); overflow-wrap: anywhere; }
.definition { padding-left: clamp(16px, 3vw, 38px); border-left: 1px solid #1c19175e; }
.definition p { font-size: clamp(1rem, 1.55vw, 1.2rem); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
  align-items: start;
  gap: clamp(35px, 7vw, 98px);
  padding-block: clamp(30px, 6vw, 78px);
}
.prose { max-width: 66ch; min-width: 0; font-size: clamp(1rem, 1.45vw, 1.12rem); line-height: 1.7; }
.prose h2 { margin: 1.55em 0 .45em; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.14; letter-spacing: -.045em; scroll-margin-top: 18px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .3em; font-size: 1.15rem; }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p { margin-top: .9em; }
.prose li + li { margin-top: .45em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose a { color: #75324f; }
.prose code { overflow-wrap: anywhere; background: #efe7df; padding-inline: .2em; }
.contents {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 24px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.contents h2 { margin-bottom: 10px; font-size: 1rem; }
.contents ul { list-style: none; padding: 0; font-size: .9rem; }
.contents a { display: block; padding-block: 4px; }
.site-footer { background: #b8caa5; padding-top: 80px; }
.site-footer .shell { width: min(1280px, calc(100% - 40px)); }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px; }
.footer-studio { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.footer-studio h2 { max-width: 9em; font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1; letter-spacing: -.06em; }
.footer-studio a { display: block; width: fit-content; overflow-wrap: anywhere; font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.045em; text-decoration: none; }
.footer-studio a + a { font-size: clamp(1.2rem, 1.75vw, 1.55rem); margin-top: 4px; }
.footer-studio a:hover { text-decoration: underline; }
.footer-columns h3 { font-size: .79rem; letter-spacing: .05em; text-transform: uppercase; color: #414e3a; margin-bottom: 14px; }
.footer-navigation nav + h3 { margin-top: 64px; }
.footer-navigation nav { display: grid; justify-items: start; gap: 4px; }
.footer-navigation a { padding: 3px 12px; border: 1px solid var(--ink); border-radius: 32px; background: var(--pink); text-decoration: none; font-size: clamp(1.15rem, 1.8vw, 1.58rem); font-weight: 700; line-height: 1.35; letter-spacing: -.045em; }
.footer-navigation a:hover { background: var(--ink); color: white; }
.footer-social, .footer-social nav { display: flex; align-items: center; }
.footer-social { align-self: start; gap: 16px; }
.footer-social h3 { margin: 0; white-space: nowrap; }
.footer-social nav a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); }
.footer-social nav a:hover { background: #39332e; }
.footer-social img { display: block; filter: brightness(0) invert(1); }
.footer-brand { display: block; margin-block: clamp(70px, 11vw, 158px) clamp(40px, 9.5vw, 136px); }
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 12px; font-size: .75rem; text-transform: uppercase; letter-spacing: .045em; }
.footer-credit a { text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

@media (max-width: 809px) {
  .site-header { padding-top: 8px; }
  .masthead { display: flex; justify-content: space-between; padding-left: 15px; }
  .brand { width: min(100%, 160px); }
  .masthead > .desktop-nav, .masthead > .book-session { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: var(--ink); cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
  .mobile-menu:not([open]) nav { display: none; }
  .mobile-menu nav { position: absolute; z-index: 1; inset: calc(100% + 6px) 0 auto; display: grid; justify-items: start; gap: 10px; padding: 18px; border-radius: 22px; background: var(--ink); color: var(--paper); }
  .mobile-menu .book-session { justify-self: start; }
  .footer-columns { grid-template-columns: 1fr; gap: 48px; }
  .footer-navigation nav + h3 { margin-top: 44px; }
  .footer-social { flex-direction: column; align-items: flex-start; }
  .footer-credit { justify-content: center; text-align: center; }
}

@media (max-width: 760px) {
  .hero, .article-head, .article-layout { grid-template-columns: 1fr; }
  .hero img { aspect-ratio: 2; }
  .definition { border-left: 0; border-top: 1px solid #1c19175e; padding: 14px 0 0; }
  .contents { grid-column: 1; grid-row: 1; position: static; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; }
  .brand { flex-basis: 135px; }
  .term-list a { grid-template-columns: 1fr; gap: 4px; }
  .term-list a > span { grid-column: 1; grid-row: 2; }
}

/* Motion counterparts to the homepage navigation and scroll reveal. */
.site-header { position: relative; z-index: 10; background: transparent; padding-bottom: 10px; }
.masthead { animation: masthead-appear 400ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes masthead-appear {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}
.desktop-nav { gap: clamp(4px, 1.65vw, 24px); }
.desktop-nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 12px;
  border-radius: 32px;
}
.desktop-nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transform: scale(.3) rotate(-35deg);
  transition: opacity 180ms, transform 240ms cubic-bezier(.22, 1, .36, 1);
}
.desktop-nav a:focus-visible { color: var(--ink); }
.desktop-nav a:focus-visible::before { opacity: 1; transform: none; }
.desktop-nav a span { transition: color 180ms; }
.footer-credit a { opacity: .65; transition: opacity 200ms; }
.footer-credit a:is(:hover, :focus-visible) { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .masthead .desktop-nav a:hover { color: var(--ink); text-decoration: none; }
  .desktop-nav a:hover::before { opacity: 1; transform: none; }
  .footer-navigation a, .footer-social a { transition: background-color 200ms, color 200ms, transform 200ms cubic-bezier(.22, 1, .36, 1); }
  .footer-navigation a:hover, .footer-social a:hover { transform: translateY(-2px); }
}
@supports (animation-timeline: view()) {
  .site-footer { overflow: clip; view-timeline-name: --footer-entry; }
  .site-footer > .shell {
    animation: footer-parallax linear both;
    animation-timeline: --footer-entry;
    animation-range: entry 0% entry 100%;
  }
  @keyframes footer-parallax {
    from { transform: translateY(var(--footer-offset, -200px)); }
    to { transform: translateY(0); }
  }
}

@media (max-width: 809px) {
  .site-header { padding-bottom: 8px; }
  .mobile-menu summary span { position: relative; box-shadow: none; transition: background-color 160ms; }
  .mobile-menu summary span::before, .mobile-menu summary span::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform 230ms cubic-bezier(.22, 1, .36, 1);
  }
  .mobile-menu summary span::before { transform: translateY(-5px); }
  .mobile-menu summary span::after { transform: translateY(5px); }
  .mobile-menu[open] summary span { background: transparent; }
  .mobile-menu[open] summary span::before { transform: rotate(-45deg); }
  .mobile-menu[open] summary span::after { transform: rotate(45deg); }
  .mobile-menu[open] nav { animation: menu-appear 230ms cubic-bezier(.22, 1, .36, 1) both; transform-origin: top right; }
  .site-footer { --footer-offset: -60px; }
}
@keyframes menu-appear {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .masthead, .mobile-menu[open] nav, .site-footer > .shell { animation: none; }
  .desktop-nav a::before, .desktop-nav a span, .mobile-menu summary span,
  .mobile-menu summary span::before, .mobile-menu summary span::after,
  .footer-navigation a, .footer-social a, .footer-credit a { transition: none; }
  .footer-navigation a:hover, .footer-social a:hover { transform: none; }
}
