:root {
  color-scheme: light;
}

body[data-palette="serenity"] {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --surface-strong: #ece9df;
  --ink: #202423;
  --muted: #66706b;
  --line: #ddd7c8;
  --primary: #5b7c6b;
  --primary-dark: #314c42;
  --accent: #c69b57;
  --accent-soft: #eadcc3;
  --chip: #e9f0e8;
  --quote: #f0eee5;
  --shirt-dark: #1f2325;
  --shirt-light: #fbfaf6;
  --shirt-gray: #777873;
}

body[data-palette="olive"] {
  --bg: #f5f2eb;
  --surface: #fffdfa;
  --surface-strong: #e8e2d6;
  --ink: #242621;
  --muted: #696b60;
  --line: #d9d0c1;
  --primary: #596b45;
  --primary-dark: #333d2c;
  --accent: #b66f4d;
  --accent-soft: #ead0c1;
  --chip: #eaeee2;
  --quote: #eee8dc;
  --shirt-dark: #222421;
  --shirt-light: #fcfbf7;
  --shirt-gray: #77776f;
}

body[data-palette="harbor"] {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-strong: #e5ece9;
  --ink: #20262a;
  --muted: #637077;
  --line: #d3dddc;
  --primary: #315b6f;
  --primary-dark: #223d4c;
  --accent: #b68a54;
  --accent-soft: #ead8bd;
  --chip: #e7f0ef;
  --quote: #eef3ef;
  --shirt-dark: #1d252b;
  --shirt-light: #fbfcfb;
  --shirt-gray: #747a7d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 28rem),
    var(--bg);
}

.text-ink {
  color: var(--ink);
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.brand-symbol {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.icon-button,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  gap: 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.icon-button {
  width: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary-dark);
}

.icon-button svg,
.btn-primary svg,
.btn-secondary svg,
.service-card svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2;
}

.btn-primary {
  border: 1px solid var(--primary-dark);
  background: var(--primary-dark);
  color: #fffefa;
  padding: 0.75rem 1.1rem;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem 1.1rem;
}

.icon-button:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

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

.eyebrow,
.section-kicker {
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-stage {
  position: relative;
  min-height: 31rem;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.brand-stage::before {
  position: absolute;
  inset: 4rem 0 2rem 13%;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--chip) 72%, white 28%), transparent 72%),
    var(--surface-strong);
  content: "";
}

.book-mock {
  width: min(74vw, 22rem);
  min-height: 27rem;
  margin-left: auto;
  margin-right: 8%;
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--primary-dark) 42%, var(--line) 58%);
  border-radius: 0.5rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 88%, black 12%), var(--primary-dark)),
    var(--primary-dark);
  color: #fffefa;
  box-shadow: 0 1.5rem 3rem rgba(20, 24, 22, 0.18);
}

.book-topline {
  color: color-mix(in srgb, var(--accent-soft) 88%, white 12%);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.book-mock h2 {
  margin: 4.25rem 0 1rem;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.6rem, 9vw, 4.25rem);
  line-height: 0.95;
}

.book-mock p {
  max-width: 15rem;
  color: color-mix(in srgb, #fffefa 86%, var(--accent-soft) 14%);
  line-height: 1.65;
}

.book-mark {
  width: 4rem;
  height: 0.2rem;
  margin-top: 4.2rem;
  background: var(--accent);
}

.quote-slab,
.mini-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 1rem 2.4rem rgba(23, 26, 25, 0.12);
}

.quote-slab {
  left: 0;
  bottom: 4.6rem;
  width: min(76vw, 18rem);
  padding: 1.1rem;
  color: var(--primary-dark);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.mini-card {
  top: 4.2rem;
  right: 0;
  width: min(64vw, 14rem);
  padding: 1rem;
}

.mini-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.palette-lab,
.merch-section {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 42%, transparent);
}

.palette-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.palette-tab {
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.palette-tab.is-active {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line) 60%);
  background: var(--chip);
  color: var(--primary-dark);
}

.palette-summary,
.swatch-panel,
.client-note {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 1.35rem;
}

.palette-summary dt {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.palette-summary dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.swatch-card {
  min-height: 7.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.swatch-fill {
  min-height: 4.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.swatch-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
}

.swatch-copy strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.swatch-copy code {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.component-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.service-card {
  padding: 1.2rem;
}

.service-card svg {
  color: var(--accent);
}

.service-card h3,
.product-copy h3 {
  margin: 1rem 0 0.5rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.service-card p,
.product-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-card a {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.merch-note {
  display: grid;
  min-width: min(100%, 19rem);
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 0.9rem 1rem;
}

.merch-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.merch-note strong {
  color: var(--ink);
}

.product-card {
  overflow: hidden;
}

.shirt-display {
  display: grid;
  min-height: 16rem;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--chip) 62%, white 38%), transparent),
    var(--surface-strong);
}

.shirt-shape {
  position: relative;
  display: grid;
  width: 11.5rem;
  height: 12rem;
  place-items: center;
  border-radius: 1rem 1rem 0.55rem 0.55rem;
  color: inherit;
  text-align: center;
  filter: drop-shadow(0 1rem 1.5rem rgba(22, 25, 24, 0.18));
}

.shirt-shape::before,
.shirt-shape::after {
  position: absolute;
  top: 1.05rem;
  width: 3.6rem;
  height: 5.7rem;
  background: inherit;
  content: "";
}

.shirt-shape::before {
  left: -2.35rem;
  border-radius: 1.2rem 0 0.5rem 1rem;
  transform: rotate(19deg);
}

.shirt-shape::after {
  right: -2.35rem;
  border-radius: 0 1.2rem 1rem 0.5rem;
  transform: rotate(-19deg);
}

.shirt-shape span {
  position: relative;
  z-index: 1;
  max-width: 8.4rem;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.shirt-dark .shirt-shape {
  background: var(--shirt-dark);
  color: #fffefa;
}

.shirt-light .shirt-shape {
  border: 1px solid color-mix(in srgb, var(--line) 80%, #fff 20%);
  background: var(--shirt-light);
  color: var(--ink);
}

.shirt-gray .shirt-shape {
  background: var(--shirt-gray);
  color: #fffefa;
}

.shirt-dark .shirt-shape span::after,
.shirt-light .shirt-shape span::after,
.shirt-gray .shirt-shape span::after {
  display: block;
  width: 2.5rem;
  height: 0.16rem;
  margin: 0.55rem auto 0;
  background: var(--accent);
  content: "";
}

.product-copy {
  padding: 1.05rem;
}

.message-section {
  background: var(--bg);
}

.client-note {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .palette-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .component-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .client-note {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .brand-stage {
    min-height: 30rem;
  }

  .brand-stage::before {
    inset: 3rem 0 2rem 5%;
  }

  .book-mock {
    width: min(78vw, 20rem);
    min-height: 25rem;
    margin-right: 0;
  }

  .quote-slab {
    bottom: 2rem;
  }

  .mini-card {
    top: 2rem;
  }
}

@media (max-width: 420px) {
  .brand-mark span:not(.brand-symbol) {
    max-width: 9rem;
  }

  .book-mock {
    padding: 1.5rem;
  }

  .book-mock h2 {
    margin-top: 3.6rem;
  }

  .quote-slab {
    width: min(82vw, 17rem);
    font-size: 1.22rem;
  }

  .mini-card {
    width: min(62vw, 12.5rem);
  }

  .shirt-shape {
    width: 9.5rem;
    height: 10.5rem;
  }

  .shirt-shape::before,
  .shirt-shape::after {
    width: 3rem;
  }

  .shirt-shape::before {
    left: -1.95rem;
  }

  .shirt-shape::after {
    right: -1.95rem;
  }
}
