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

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

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

@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #12110f;
  --paper-raised: #1c1a16;
  --ink: #f0ebe3;
  --ink-soft: #c6c0b4;
  --rule: #3a372f;
  --rule-strong: #5a554c;
  --oxblood: #d26454;
  --focus: #f0ebe3;
  --header-h: 4.25rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 40rem;
  --wide: 68rem;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: clamp(1.0625rem, 0.98rem + 0.35vw, 1.125rem);
  --small: 0.8125rem;
  --h2: clamp(1.65rem, 1.2rem + 1.5vw, 2.15rem);
  --h1: clamp(2.4rem, 1.4rem + 3.4vw, 4.15rem);
  --shadow: 0 0 0 1px rgba(240, 235, 227, 0.06);
}

[data-theme="light"] {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-raised: #faf8f3;
  --ink: #1b1914;
  --ink-soft: #4a4640;
  --rule: #d4cfc3;
  --rule-strong: #bdb6a8;
  --oxblood: #9a3228;
  --focus: #1b1914;
  --shadow: 0 0 0 1px rgba(27, 25, 20, 0.06);
}

[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --paper: #f3f0e8;
    --paper-raised: #faf8f3;
    --ink: #1b1914;
    --ink-soft: #4a4640;
    --rule: #d4cfc3;
    --rule-strong: #bdb6a8;
    --oxblood: #9a3228;
    --focus: #1b1914;
    --shadow: 0 0 0 1px rgba(27, 25, 20, 0.06);
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
}

html:focus-within {
  scroll-behavior: smooth;
}

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

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

  .status-dot::after {
    animation: none !important;
    content: none;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--oxblood);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
  color: var(--paper);
  outline-color: var(--paper);
}

.wrap {
  width: min(100%, var(--wide));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  width: min(100%, calc(var(--measure) + var(--gutter) * 2));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  margin-right: auto;
}

.wordmark:hover {
  color: inherit;
}

.wordmark img {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.wordmark-text {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  min-height: 2.35rem;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle-bars {
  display: block;
  width: 0.95rem;
  height: 0.7rem;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1.5px no-repeat;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--ink);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: var(--small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  color: inherit;
}

.site-nav a[aria-current="page"] {
  text-decoration-thickness: 1.5px;
}

@media (max-width: 879px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--rule);
  }

  .site-header:has([data-nav-toggle][aria-expanded="true"]) .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 880px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }
}

.hero {
  padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  display: flex;
  align-items: center;
  gap: 0.38em;
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--h1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.status-dot {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 0.145em;
  height: 0.145em;
  min-width: 0.5rem;
  min-height: 0.5rem;
  border-radius: 50%;
  background: var(--oxblood);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--oxblood);
  animation: status-pulse 2.8s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  65% {
    transform: scale(2.55);
    opacity: 0;
  }
  100% {
    transform: scale(2.55);
    opacity: 0;
  }
}

.core-line {
  margin: 1.1rem 0 2.1rem;
  color: var(--oxblood);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.hero-copy {
  max-width: 38rem;
}

.hero-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.section,
.hero,
.legal-main,
.not-found {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section {
  padding-block: clamp(3.25rem, 6vw, 5.75rem);
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: 0;
}

.section h2 {
  margin: 0 0 1.5rem;
  max-width: 18em;
  font-family: var(--font-serif);
  font-size: var(--h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.work-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.work-list li {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .work-list li {
    grid-template-columns: minmax(11rem, 16rem) 1fr;
    align-items: start;
  }
}

.work-list h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.work-list p {
  margin: 0;
  color: var(--ink-soft);
}

.principles {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  max-width: 42rem;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.35rem 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.principle-num {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--oxblood);
}

.principles h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.principles p {
  margin: 0;
  grid-column: 2;
  color: var(--ink-soft);
}

.process-chain {
  margin: 0 0 2rem;
  color: var(--oxblood);
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.process-steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.process-steps li {
  padding-top: 0.9rem;
  border-top: 2px solid var(--oxblood);
}

.process-steps h3 {
  margin: 0 0 0.55rem;
  color: var(--oxblood);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.process-steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.availability {
  max-width: 38rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.availability p {
  margin: 0 0 0.85rem;
  max-width: 38rem;
}

.availability p:last-of-type {
  margin-bottom: 0;
}

.availability-label {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--oxblood);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-block h3 {
  margin: 0 0 0.45rem;
  font-size: var(--small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.email-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.note {
  max-width: var(--measure);
  margin: 0;
  color: var(--ink-soft);
}

.legal-main {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
}

.legal-main h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: var(--h2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-lede {
  margin: 0 0 2.25rem;
  max-width: var(--measure);
}

.legal-main h2 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-main p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 2.5rem 3rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-line {
  margin: 0.35rem 0 1.4rem;
  color: var(--oxblood);
  font-family: var(--font-serif);
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.footer-nav a {
  font-size: var(--small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
}

.not-found {
  padding-block: 6rem 8rem;
}

.not-found h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: var(--h2);
}

.not-found p {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  color: var(--ink-soft);
}
