@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --radius: 18px;

  --bg: #f7f2ea;
  --surface: #fffcf7;
  --ink: #221d17;
  --muted: #5e554b;
  --line: #e7ddcf;
  --line-strong: #cdbfac;
  --accent: #a9471f;
  --accent-strong: #8f3a17;
  --accent-ink: #fff8f1;
  --accent-soft: #f4e0d2;
  --accent-on-ink: #f2a47f;
  --sage: #4f6a47;
  --sage-soft: #dde7d6;
  --code-bg: #1f1a15;
  --code-ink: #eadfce;
  --shadow: 0 30px 60px -30px rgb(34 29 23 / 0.45), 0 2px 6px rgb(34 29 23 / 0.06);
  --shadow-sm: 0 8px 20px -10px rgb(34 29 23 / 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120e;
    --surface: #201a15;
    --ink: #f2eadf;
    --muted: #bbaf9f;
    --line: #372e26;
    --line-strong: #54473a;
    --accent: #e58258;
    --accent-strong: #ee9670;
    --accent-ink: #1b110b;
    --accent-soft: #3a2418;
    --accent-on-ink: #a3431d;
    --sage: #9cb891;
    --sage-soft: #26311f;
    --code-bg: #0e0b09;
    --code-ink: #eadfce;
    --shadow: 0 30px 60px -30px rgb(0 0 0 / 0.85), 0 2px 6px rgb(0 0 0 / 0.3);
    --shadow-sm: 0 8px 20px -10px rgb(0 0 0 / 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.mark__bg {
  fill: var(--accent);
}
.mark__c {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3.4;
  stroke-linecap: round;
}
.mark__knot {
  fill: var(--accent-ink);
}

/* Header */
.site-header {
  padding-block: 22px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 560px) {
  .site-nav li:not(:first-child) {
    display: none;
  }
}

/* Hero */
.hero {
  padding-block: clamp(24px, 5vw, 64px) clamp(40px, 6vw, 72px);
}
.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--sage);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero h1 em,
.cta__card h2 em {
  font-style: italic;
  font-weight: 500;
}
.hero h1 em {
  color: var(--accent);
}
.lede {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__art {
  justify-self: center;
  width: min(100%, 520px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background: var(--accent-strong);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
}

/* Hero composition: code card + booking widget */
.studio {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-block: 26px 40px;
}
.code-card {
  grid-area: 1 / 1 / 2 / 11;
  align-self: start;
  overflow: hidden;
  border-radius: 16px;
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: var(--shadow);
  rotate: -2deg;
}
.code-card__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.code-card__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e58258;
}
.code-card__bar span:nth-child(2) {
  background: #e7bd86;
}
.code-card__bar span:nth-child(3) {
  background: #9cc28f;
}
.code-card pre {
  margin: 0;
  padding: 16px 18px 22px;
  overflow: hidden;
  font: 500 clamp(0.62rem, 0.45rem + 0.9vw, 0.8rem) / 1.8 var(--mono);
}
.code-line {
  display: block;
  white-space: pre;
}
.tok-k {
  color: #f0a07a;
}
.tok-f {
  color: #a9cf9c;
}
.tok-t {
  color: #e7bd86;
}
.tok-s {
  color: #e9d8a6;
}
.tok-c {
  color: #9a8c7c;
  font-style: italic;
}
.booking-card {
  z-index: 1;
  grid-area: 1 / 4 / 2 / 13;
  margin-top: clamp(118px, 26vw, 150px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  rotate: 1.5deg;
}
.booking-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.booking-card__head strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.booking-card__badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.booking-card__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 14px;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.day small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.day--off {
  opacity: 0.4;
  text-decoration: line-through;
}
.day--on {
  background: var(--accent);
  color: var(--accent-ink);
}
.day--on small {
  color: inherit;
}
.booking-card__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.slot {
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slot--on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.slot--off {
  opacity: 0.45;
  text-decoration: line-through;
}
.booking-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.85rem;
}
.booking-card__cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip {
  position: absolute;
  z-index: 2;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}
.chip--a {
  top: 0;
  right: 0;
}
.chip--b {
  bottom: 0;
  left: 0;
}
.chip--b::before {
  background: var(--sage);
}
@media (max-width: 520px) {
  .code-card {
    grid-column: 1 / 12;
  }
  .booking-card {
    grid-column: 2 / 13;
  }
}

/* Tech stack strip */
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stack__label,
.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stack__label {
  color: var(--muted);
}
.stack__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack__list li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Sections */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}
.section--alt {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.section__head {
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.kicker {
  color: var(--accent);
}
.section__head h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
}
.section__head p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

/* Booking spotlight */
.spotlight {
  display: grid;
  gap: 32px 64px;
  align-items: start;
}
@media (min-width: 960px) {
  .spotlight {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.spotlight__head {
  margin-bottom: 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  font-weight: 500;
  line-height: 1.45;
}
.features__check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
}
.features__check .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.step__num {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}
.step h3 {
  margin-top: 10px;
  font-size: 1.6rem;
}
.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* Closing call-out */
.cta {
  padding-block: 0 clamp(64px, 9vw, 112px);
}
.cta__card {
  position: relative;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 72px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.cta__card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--bg) 32%, transparent);
  border-radius: 18px;
  pointer-events: none;
}
.cta__card h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}
.cta__card h2 em {
  color: var(--accent-on-ink);
}
.cta__card p {
  max-width: 36rem;
  margin: 18px auto 0;
  color: color-mix(in srgb, var(--bg) 80%, var(--ink));
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer .brand {
  color: var(--ink);
  font-size: 1.15rem;
}
.site-footer .mark {
  width: 28px;
  height: 28px;
}

/* 404 */
.notfound {
  padding-block: clamp(72px, 12vw, 144px);
  text-align: center;
}
.notfound__code {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}
.notfound h1 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.2rem);
}
.notfound p:not(.notfound__code) {
  max-width: 32rem;
  margin: 18px auto 0;
  color: var(--muted);
}
.notfound .btn {
  margin-top: 28px;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow__dot {
    animation: pulse 2.4s ease-out infinite;
  }
  .code-card {
    animation: rise 0.7s 0.1s ease-out both;
  }
  .booking-card {
    animation: rise 0.7s 0.35s ease-out both;
  }
  .chip {
    animation: rise 0.6s 0.6s ease-out both;
  }
  .btn:hover {
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage) 45%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}
