@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #f7f3ea;
  --ivory: #fffcf6;
  --oat: #eae1d2;
  --sage-mist: #e1e8db;
  --sage: #a3b398;
  --forest: #2f4a3a;
  --ink: #29372e;
  --muted: #596356;
  --clay: #bf795f;
  --clay-ink: #9a5845;
  --butter: #e5ce91;
  --line: rgba(47, 74, 58, 0.18);
  --shadow: 0 18px 50px rgba(62, 52, 40, 0.08), 0 3px 10px rgba(62, 52, 40, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
  border-radius: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.7rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
  font-size: 1.65rem;
}

.shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--forest);
  color: var(--ivory);
  transform: translateY(-160%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.footer-brand {
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
}

.brand img {
  width: 142px;
  height: 48px;
  object-fit: contain;
}

.nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a,
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"],
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--clay-ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 6vw, 86px);
  min-height: 660px;
  padding-block: 72px 82px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--forest);
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 28px;
}

.lede {
  max-width: 580px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 12px 19px;
  border: 2px solid var(--forest);
  border-radius: 13px;
  background: var(--forest);
  color: var(--ivory);
  font-size: 0.93rem;
  font-weight: 720;
  text-decoration: none;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
}

.hero-art {
  position: relative;
  margin: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 64%;
  aspect-ratio: 1;
  right: -6%;
  bottom: -7%;
  border-radius: 50%;
  background: var(--butter);
  opacity: 0.42;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.apps-section {
  padding-block: 88px 104px;
  border-top: 1px solid var(--line);
}

.section-heading,
.method-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h2,
.method-heading h2 {
  margin-bottom: 0;
}

.section-index {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-left: 72px;
}

.app-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 34px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.app-card--sage {
  background: var(--sage-mist);
}

.app-card--oat {
  background: var(--oat);
}

.app-card-main {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: start;
  gap: 24px;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(41, 55, 46, 0.11);
}

.app-card h3 {
  margin-bottom: 10px;
}

.app-card p {
  max-width: 31ch;
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover span {
  transform: translateX(3px);
}

.text-link span {
  transition: transform 160ms ease;
}

.approach-section {
  padding-block: 96px;
  background: var(--forest);
  color: var(--ivory);
}

.approach-inner {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 680px) 1fr;
  align-items: center;
}

.approach-inner .section-index {
  align-self: start;
  color: rgba(255, 252, 246, 0.68);
}

.approach-inner h2 {
  margin-bottom: 22px;
}

.approach-inner p:not(.section-index) {
  max-width: 60ch;
  color: rgba(255, 252, 246, 0.78);
}

.approach-inner .text-link {
  color: var(--ivory);
}

.paper-leaf {
  justify-self: end;
  width: 94px;
  height: 94px;
  display: block;
  border-radius: 10px 56px 56px 56px;
  background: var(--sage);
  transform: rotate(-12deg);
}

.paper-leaf::after {
  content: "";
  width: 64%;
  height: 1px;
  display: block;
  margin: 45% 0 0 14%;
  background: rgba(47, 74, 58, 0.55);
  transform: rotate(45deg);
  transform-origin: left;
}

.hello-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 64px;
  padding-block: 104px;
}

.hello-copy {
  max-width: 700px;
  padding-left: 72px;
  position: relative;
}

.hello-copy > .section-index {
  position: absolute;
  left: 0;
}

.hello-copy h2 {
  margin-bottom: 20px;
}

.hello-copy > p:not(.section-index) {
  color: var(--muted);
}

.email-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  margin: 4px 0 27px;
  color: var(--forest);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.support-note {
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.inline-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.hello-art {
  width: 210px;
  height: auto;
  justify-self: end;
}

.site-footer {
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-brand img {
  width: 126px;
  height: 42px;
  object-fit: contain;
}

.footer-links {
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.studio-page {
  padding-block: 80px 112px;
}

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.studio-intro h1 {
  margin-bottom: 30px;
}

.studio-intro > div > p:not(.eyebrow) {
  color: var(--muted);
}

.studio-figure {
  margin: 0;
}

.studio-figure img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.studio-figure figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.studio-method {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 76px;
  margin-top: 112px;
  padding-top: 76px;
  border-top: 1px solid var(--line);
}

.method-heading {
  grid-template-columns: 58px 1fr;
  margin: 0;
}

.method-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.method-list section {
  padding: 0 0 30px;
}

.method-list section + section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.method-list h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.method-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.studio-closing {
  max-width: 650px;
  margin: 82px 0 0 auto;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.studio-closing p {
  color: var(--muted);
}

.document-page {
  max-width: 800px;
  padding-block: 82px 112px;
}

.document-page h1 {
  margin-bottom: 13px;
}

.document-updated {
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 0.88rem;
}

.document-page h2 {
  margin: 46px 0 13px;
  font-size: 1.6rem;
}

.document-page p {
  color: var(--muted);
}

.not-found {
  min-height: calc(100vh - 89px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  padding-block: 80px;
}

.not-found h1 {
  margin-bottom: 18px;
}

.not-found > p:not(.eyebrow) {
  margin-bottom: 32px;
  color: var(--muted);
}

.paper-leaf--large {
  width: 84px;
  height: 84px;
  margin-bottom: 30px;
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 48px, 720px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    padding-block: 64px 72px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    width: min(100%, 640px);
  }

  .app-grid {
    padding-left: 0;
  }

  .approach-inner {
    grid-template-columns: 60px minmax(0, 1fr) 90px;
    gap: 12px;
  }

  .hello-section {
    grid-template-columns: 1fr 190px;
  }

  .hello-copy {
    padding-left: 60px;
  }

  .hello-art {
    width: 175px;
  }

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

  .footer-links {
    justify-content: flex-end;
  }

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

  .studio-intro {
    grid-template-columns: 1fr;
  }

  .studio-figure {
    width: min(100%, 650px);
  }

  .studio-method {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 0;
    padding-block: 16px;
    align-items: flex-start;
  }

  .brand img {
    width: 106px;
    height: 44px;
  }

  .nav {
    justify-content: flex-end;
    gap: 4px 17px;
    flex-wrap: wrap;
  }

  .nav a {
    min-height: 42px;
    font-size: 0.79rem;
  }

  .hero {
    gap: 40px;
    padding-block: 50px 58px;
  }

  .hero h1 {
    margin-bottom: 22px;
  }

  .hero-art img {
    max-height: 270px;
  }

  .hero-art::before {
    right: 0;
  }

  .apps-section {
    padding-block: 58px 64px;
  }

  .section-heading,
  .method-heading {
    grid-template-columns: 44px 1fr;
    margin-bottom: 30px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 240px;
    padding: 27px;
  }

  .app-card-main {
    grid-template-columns: 66px 1fr;
    gap: 19px;
  }

  .app-icon {
    width: 66px;
    height: 66px;
    border-radius: 17px;
  }

  .approach-section {
    padding-block: 62px;
  }

  .approach-inner {
    grid-template-columns: 42px 1fr;
  }

  .approach-inner .paper-leaf {
    display: none;
  }

  .hello-section {
    grid-template-columns: 1fr;
    padding-block: 64px;
  }

  .hello-copy {
    padding-left: 44px;
  }

  .hello-art {
    display: none;
  }

  .email-link {
    font-size: 1.5rem;
  }

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

  .footer-links {
    justify-content: flex-start;
    gap: 0 20px;
  }

  .studio-page,
  .document-page {
    padding-block: 54px 72px;
  }

  .studio-method {
    margin-top: 68px;
    padding-top: 54px;
  }

  .studio-closing {
    margin-top: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
