@font-face {
  font-family: Playfair;
  src: url("assets/fonts/playfair-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  size-adjust: 114%;
}

@font-face {
  font-family: Playfair;
  src: url("assets/fonts/playfair-medium-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  size-adjust: 114%;
}

@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #191919;
  --paper: #f5f4ef;
  --white: #fff;
  --accent: #e2f779;
  --accent-hover: #eefaa8;
  --plum: #54283a;
  --muted: #52504b;
  --line: #d8d5cc;
  --content-width: 78rem;
  --gutter: clamp(1.125rem, 4.75vw, 4.75rem);
  --section-space: clamp(2.875rem, 6vw, 6rem);
  --navigation-offset: clamp(.75rem, 2vw, 1.5rem);
  --navigation-height: 2.75rem;
  --display-font: Playfair, Georgia, serif;
  --body-font: Inter, system-ui, sans-serif;
  font-family: var(--body-font);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navigation-offset) + var(--navigation-height) + .75rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: .012em;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 500;
  line-height: 1.07;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.7vw, 4.75rem);
  letter-spacing: .005em;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 2.25rem);
  letter-spacing: .005em;
}

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
  letter-spacing: inherit;
}

button, summary, select {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

.section {
  padding-block: var(--section-space);
}

.eyebrow {
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: var(--gutter);
  padding: .625rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s, color .16s, border-color .16s;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--plum);
}

.button-outline {
  border-color: currentColor;
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.text-link {
  display: inline-block;
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  position: fixed;
  z-index: 6;
  inset-block-start: var(--navigation-offset);
  inset-inline-end: max(var(--gutter), calc((100% - var(--content-width)) / 2));
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  --outline-shadow: #180e0a88;
  --control-background: #21171066;
  --control-hover-background: #21171091;
}

.site-header[data-light-background] {
  color: var(--ink);
  --outline-shadow: #fff9;
  --control-background: #f5f4efae;
  --control-hover-background: #f5f4efda;
}

.wordmark {
  font-family: var(--display-font);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.15;
  text-decoration: none;
}

.main-nav {
  position: absolute;
  inset: calc(100% + .5rem) 0 auto auto;
  display: grid;
  width: min(18rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - var(--navigation-offset) - var(--navigation-height) - 1.25rem);
  overflow: auto;
  padding: .25rem .875rem;
  border: 1px solid var(--line);
  border-radius: .375rem;
  background: #f5f4efed;
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 .75rem 1.75rem #19191921;
  font-size: 1rem;
  font-weight: 650;
}

.main-nav[data-open="false"] {
  display: none;
}

.main-nav a {
  padding: .625rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  text-underline-offset: .25em;
}

.main-nav a:last-child {
  border-bottom: 0;
}

.main-nav a:hover {
  text-decoration: underline;
}

.header-cta, .menu-toggle {
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 78%, transparent);
  border-radius: .375rem;
  background: var(--control-background);
  backdrop-filter: blur(6px);
  color: inherit;
  filter: drop-shadow(0 1px 2px var(--outline-shadow));
}

.header-cta:hover, .menu-toggle:hover, .menu-toggle[aria-expanded="true"] {
  border-color: currentColor;
  background: var(--control-hover-background);
}

.header-cta {
  min-height: var(--navigation-height);
  padding: .5rem clamp(.55rem, 1.35vw, .9375rem);
  font-size: clamp(.8125rem, 1.3vw, .9375rem);
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  width: var(--navigation-height);
  height: var(--navigation-height);
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: 0;
}

.menu-toggle span {
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  transition: transform .16s, opacity .16s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(35rem, 78svh, 50rem);
  align-items: end;
  color: var(--white);
}

.hero-copy {
  padding-block: clamp(5.75rem, 8vw, 6.25rem) clamp(3.25rem, 7vw, 6.25rem);
  text-shadow: 0 1px 16px #180e0a66;
}

.hero-brand {
  position: absolute;
  inset: var(--navigation-offset) 0 auto;
  display: flex;
  min-height: var(--navigation-height);
  align-items: center;
  padding-inline-end: clamp(13rem, 29vw, 15.25rem);
  font-size: clamp(.9375rem, 1.9vw, 1.35rem);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 8px #180e0a90;
}

.hero h1 {
  margin-top: clamp(1.125rem, 2.05vw, 2.125rem);
  font-size: clamp(1.625rem, min(calc(.9rem + 4.65vw), 8.4vw), 6rem);
  letter-spacing: .012em;
  word-spacing: .055em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: wrap;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-description {
  max-width: 31rem;
  margin-top: clamp(1.25rem, 2.4vw, 2.25rem);
  font-size: clamp(1rem, 1.45vw, 1.1875rem);
}

.hero-link {
  margin-top: 1.375rem;
  font-size: .9375rem;
}

.photo-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
}

.hero-photo {
  --photo-position: center 42%;
  --hero-top-shade: linear-gradient(180deg, #180e0a75, #180e0a4d min(4.5rem, 14%), transparent min(10rem, 32%));
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #775d4b;
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  background:
    var(--hero-top-shade),
    linear-gradient(90deg, #180e0aa3, #180e0a61 54%, #180e0a0f),
    linear-gradient(0deg, #180e0a42, transparent 72%);
  content: "";
}

.about-grid, .approach-grid, .questions-grid, .application-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 5.5rem);
}

.section-heading > p, .section-topline > p {
  max-width: 36rem;
  margin-top: .875rem;
  color: var(--muted);
}

.method-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--line);
}

.method-tab {
  min-height: 2.875rem;
  padding: .625rem clamp(.4375rem, 2vw, 1.125rem);
  border: 1px solid transparent;
  border-radius: .25rem .25rem 0 0;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
}

.method-tab:hover {
  background: var(--white);
}

.method-tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.method-tab[aria-selected="true"]:focus-visible {
  outline-color: var(--ink);
}

.method-panel {
  padding: clamp(1.125rem, 2.6vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.method-panel h3, .steps h3, .application-result h3 {
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 700;
  line-height: 1.26;
}

.method-panel h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

.method-panel p {
  margin-top: .625rem;
  color: var(--muted);
}

.start-section {
  background-color: #4b332a;
  background-image: linear-gradient(#1b110c99, #1b110ca6), url("assets/steps-strength.webp");
  background-position: center, center 84%;
  background-size: cover;
  color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.125rem, 3.25vw, 3.5rem);
  margin: clamp(1.625rem, 3.75vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  border-top: 1px solid #ffffff80;
  padding-top: .875rem;
}

.step-number {
  display: block;
  font-size: clamp(1.875rem, 3.65vw, 3.125rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: 1;
}

.steps h3 {
  margin-top: .5rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  text-wrap: wrap;
}

.steps p {
  margin-top: .625rem;
}

.about-section {
  background: var(--white);
}

.about-copy {
  max-width: 38rem;
  color: var(--muted);
}

.about-copy p + p {
  margin-top: .875rem;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.625rem, 1.5vw, 1.25rem);
  margin-top: clamp(1.375rem, 3.25vw, 2.75rem);
}

.about-photo {
  aspect-ratio: 4 / 5;
  background: #d4d5d4;
}

.about-photo:first-child {
  --photo-position: center 52%;
}

.competition {
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 3.2vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.competition h3 {
  max-width: 32ch;
  font-size: clamp(1.625rem, 3.4vw, 3.25rem);
}

.competition-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin: clamp(1rem, 2.25vw, 1.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.competition-results li {
  display: grid;
  grid-template-columns: 1.625rem minmax(0, 1fr);
  align-items: start;
  gap: .625rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.45vw, 1.1875rem);
  font-weight: 650;
}

.competition-medal {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.125em;
  line-height: 1.45;
}

.competition-note {
  margin-top: .875rem;
  color: var(--muted);
}

.competition-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(12rem, 46vw, 20rem);
  gap: clamp(.625rem, 1.5vw, 1.25rem);
  min-width: 0;
  margin-top: clamp(1.375rem, 3vw, 2.375rem);
  padding-bottom: .625rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: #8e8880 var(--paper);
  scrollbar-width: thin;
}

.competition-photo {
  aspect-ratio: 2 / 3;
  background: var(--paper);
  scroll-snap-align: start;
}

.competition-photo img {
  object-fit: contain;
}

.competition-controls {
  display: flex;
  justify-content: flex-end;
  gap: .625rem;
  margin-top: .75rem;
}

.competition-controls .button {
  min-height: 2.75rem;
  font-size: .875rem;
}

.competition-controls .button:disabled {
  background: transparent;
  color: var(--ink);
  opacity: .45;
  cursor: default;
}

.formats-section {
  border-bottom: 1px solid var(--line);
}

.section-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  margin-bottom: clamp(1.375rem, 3vw, 2.5rem);
}

.section-topline > p {
  max-width: 26rem;
  margin: 0;
}

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

.price-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: var(--white);
}

.price-card-full {
  border-color: var(--accent);
  background: var(--accent);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  margin-top: .875rem;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: .012em;
  line-height: 1.15;
}

.price-period {
  font-family: var(--body-font);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: 0;
}

.price-features {
  display: grid;
  flex: 1;
  align-content: start;
  gap: .625rem;
  width: 100%;
  margin: 1.5rem 0;
  padding: 1.25rem 0 0 1.125rem;
  border-top: 1px solid #19191940;
}

.price-card .button {
  width: 100%;
}

.pricing-footnote {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .9375rem;
}

.questions-grid .text-link {
  margin-top: 1.25rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details > p {
  max-width: 39rem;
  padding-bottom: 1.25rem;
  color: var(--muted);
}

.faq-plus {
  position: relative;
  flex: 0 0 1rem;
  height: 1rem;
}

.faq-plus::before, .faq-plus::after {
  position: absolute;
  top: calc(50% - 1px);
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
}

.faq-plus::after {
  rotate: 90deg;
}

.faq-list details[open] .faq-plus::after {
  content: none;
}

.application-section {
  background: var(--ink);
  color: var(--white);
}

.application-intro p {
  max-width: 29rem;
  margin-top: .875rem;
  color: #e1ddd7;
}

.contact-link {
  margin-top: .9375rem;
  color: var(--accent);
}

.application-body {
  min-width: 0;
}

#application-form, .application-result {
  padding: clamp(1.125rem, 2.75vw, 2.125rem);
  border-radius: .25rem;
  background: var(--white);
  color: var(--ink);
}

.field {
  display: grid;
  gap: .375rem;
  margin-bottom: .9375rem;
}

.field label, .format-choice legend {
  font-size: .9375rem;
  font-weight: 650;
}

.field input, .field textarea, .field select, .application-result textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.875rem;
  padding: .65rem .75rem;
  border: 1px solid #aaa69e;
  border-radius: .25rem;
  background: var(--paper);
  color: var(--ink);
}

.field select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.25rem center, right .9375rem center;
  background-repeat: no-repeat;
  background-size: .3125rem .3125rem;
}

.field textarea, .application-result textarea {
  resize: vertical;
}

.field-hint, .optional {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 450;
}

.format-choice {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-width: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.format-choice legend {
  margin-bottom: .5rem;
  padding: 0;
}

.format-choice label {
  position: relative;
  display: flex;
  align-items: stretch;
}

.format-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.format-choice span {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .375rem .625rem;
  border: 1px solid #aaa69e;
  border-radius: .25rem;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
}

.format-choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.format-choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.form-submit {
  width: 100%;
}

.application-section .form-submit:focus-visible {
  outline-color: var(--ink);
}

#form-note, .application-result > p, .application-result textarea,
.result-actions, .edit-application {
  margin-top: 1rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}

.result-actions .button {
  flex: 1 1 auto;
}

.site-footer {
  border-top: 1px solid #ffffff36;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: flex;
  min-height: 4.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}

.toast {
  position: fixed;
  z-index: 10;
  right: var(--gutter);
  bottom: 1rem;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  padding: .75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: .25rem;
  background: var(--accent);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 750;
}

@media (max-width: 62rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }
}

@media (max-width: 46rem) {
  .about-grid, .approach-grid, .questions-grid, .application-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.375rem;
  }

  .hero {
    min-height: clamp(32rem, 78svh, 50rem);
  }

  .hero-copy {
    padding-block: 5.75rem 2.625rem;
  }

  .hero-photo {
    --photo-position: center 49%;
  }

  .hero-photo::after {
    background: var(--hero-top-shade), linear-gradient(0deg, #180e0abf, #180e0a7d min(27rem, 86%), #180e0a14);
  }

  .about-grid {
    gap: 1.25rem;
  }

  .about-photos {
    width: min(100%, 35rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: auto;
  }

  .about-photo {
    aspect-ratio: 2 / 3;
  }

  .about-photo:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1;
  }

  .competition-results {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-topline {
    display: grid;
    align-items: start;
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 35rem) {
  .site-header {
    gap: .375rem;
  }

  .header-cta {
    padding-inline: .4rem;
  }

  .menu-toggle {
    width: 2.5rem;
  }

  .hero-brand {
    padding-inline-end: 12.375rem;
    font-size: clamp(.875rem, 3.8vw, .9375rem);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-scroll-effect].scroll-pending {
    opacity: 0;
  }

  .scroll-revealed[data-scroll-effect="heading"] {
    animation: reveal-heading .8s cubic-bezier(.26, .62, .26, 1);
  }

  .about-photo:nth-child(2) {
    --photo-reveal-delay: .14s;
  }

  .about-photo:nth-child(3) {
    --photo-reveal-delay: .28s;
  }

  .scroll-revealed[data-scroll-effect="photo"] {
    animation: reveal-photo .78s cubic-bezier(.4, 0, .22, 1) var(--photo-reveal-delay, 0s) backwards;
  }
}

@keyframes reveal-heading {
  from { opacity: 0; transform: translateY(clamp(1.5rem, 3vw, 2.25rem)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-photo {
  from { opacity: .25; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0); }
}

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

  .button, .menu-toggle span {
    transition: none;
  }
}
