/* UniEcommerce — site styles
   Self-hosted fonts only. No third-party requests. */

@font-face {
  font-family: Geist;
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/fonts/Geist-Italic-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("/fonts/CrimsonPro-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("/fonts/CrimsonPro-Italic-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --paper-3: #fffdf8;
  --ink: #171c19;
  --ink-soft: #3d4641;
  --muted: #5c665f;
  --line: #d4cdb8;
  --line-strong: #bfb79f;
  --accent: #8f3a1c;
  --accent-hover: #722d16;
  --accent-soft: #f0ddd4;
  --dark: #121714;
  --dark-2: #1b221e;
  --on-dark: #efe9dc;
  --on-dark-muted: #b7b2a5;
  --on-dark-line: #2c342f;
  --focus: #8f3a1c;
  --error: #8b1e1e;
  --ok: #1d5a3c;
  --shadow: 0 1px 2px rgba(18, 23, 20, 0.06);

  --font-sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Crimson Pro", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;

  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
  --radius: 0.75rem;
  --radius-sm: 0.4rem;
  --ease: 180ms ease;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.011em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.6rem;
  color: var(--paper);
}

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

/* Header
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { color: var(--ink); }

.logo-mark {
  width: 2rem;
  height: 2rem;
  color: var(--dark);
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--paper-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: block;
  width: 1.05rem;
  height: 0.75rem;
  position: relative;
}

.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease), top var(--ease);
}

.nav-toggle-bars span { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; top: auto; }

.site-header.is-open .nav-toggle-bars span { opacity: 0; }
.site-header.is-open .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.site-header.is-open .nav-toggle-bars::after {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.15rem 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.25rem 0;
}

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

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fffaf6;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fffaf6;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--paper-3);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
}

.btn-on-dark:hover {
  background: #fff;
  color: var(--ink);
}

.btn-ghost-on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark-line);
}

.btn-ghost-on-dark:hover {
  background: var(--dark-2);
  color: var(--on-dark);
  border-color: var(--on-dark-muted);
}

.btn-nav {
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
}

/* Hero
   --------------------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 7vw, 5.75rem) 0 clamp(3.25rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 1.35rem;
}

.lead,
.hero-lead {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
}

.hero-lead { margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 1.75rem 4.5rem;
    align-items: end;
  }

  .hero-grid h1 {
    margin-bottom: 0;
    max-width: none;
  }

  .hero-copy {
    padding-bottom: 0.4rem;
  }

  .hero-copy .hero-lead {
    margin-bottom: 1.5rem;
  }
}

/* Sections
   --------------------------------------------------------------------------- */
.section {
  padding: clamp(3.25rem, 6vw, 5.25rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem 2.5rem;
  align-items: end;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-header.stack {
  grid-template-columns: 1fr;
  max-width: 40rem;
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro {
  color: var(--ink-soft);
  margin: 0;
}

.section.dark {
  background: var(--dark);
  color: var(--on-dark);
  border-bottom: 0;
}

.section.dark h2,
.section.dark h3 {
  color: var(--on-dark);
}

.section.dark .section-intro,
.section.dark p {
  color: var(--on-dark-muted);
}

.section.alt {
  background: var(--paper-2);
}

/* Cards & grids
   --------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

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

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.card a.card-link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--accent);
}

.card a.card-link:hover { color: var(--accent-hover); text-decoration: underline; }

.card-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

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

.split-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

.split-card h3 { margin-bottom: 0.65rem; }
.split-card p { color: var(--ink-soft); }

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin-top: 0.85rem;
}

.channel-list li {
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
}

.vertical-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  list-style: none;
}

.vertical-list a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 7.5rem;
  padding: 1.1rem 1rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: border-color var(--ease), background var(--ease);
}

.vertical-list a:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 0;
}

.steps li h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

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

.step-index {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.cta-band h2 { max-width: 16ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.25rem; }
.cta-email {
  color: var(--on-dark);
  font-weight: 500;
  text-decoration: none;
}
.cta-email:hover { color: #fff; text-decoration: underline; }

/* Page header (inner pages)
   --------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: 18ch; margin-bottom: 1rem; }
.page-hero .lead { margin: 0; }

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

.prose h3 {
  margin: 1.6rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose a { color: var(--accent); }

.legal {
  max-width: 42rem;
  padding-bottom: 1rem;
}

.legal p, .legal li { font-size: 0.98rem; }

/* Contact
   --------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2rem 3rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  color: var(--ink);
}

.field textarea { min-height: 9.5rem; resize: vertical; }

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-soft);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ok);
  display: none;
}

.form-status.is-visible { display: block; }

.form-status.is-error { color: var(--error); }

.aside-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.aside-card h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.aside-card p { color: var(--ink-soft); font-size: 0.95rem; }

.aside-card a.plain {
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}

.aside-card a.plain:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer
   --------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--dark);
  color: var(--on-dark-muted);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--on-dark-line);
}

.footer-brand .logo { color: var(--on-dark); margin-bottom: 0.85rem; }
.footer-brand .logo:hover { color: var(--on-dark); }
.footer-brand .logo-mark { color: #2a3330; }
.footer-brand p {
  font-size: 0.92rem;
  max-width: 20rem;
  margin: 0;
}

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 0.8rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
}

.footer-meta a { color: var(--on-dark-muted); text-decoration: none; }
.footer-meta a:hover { color: var(--on-dark); text-decoration: underline; }

/* 404
   --------------------------------------------------------------------------- */
.not-found {
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: left;
}

.not-found .code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.not-found h1 { margin-bottom: 0.9rem; }

/* Utility
   --------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .card-grid,
  .card-grid-3,
  .vertical-list,
  .steps,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .site-header.is-open .nav { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .nav-links a[aria-current="page"] {
    box-shadow: none;
    color: var(--accent);
  }

  .btn-nav { width: 100%; margin-top: 0.35rem; }

  .split-cards,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .card-grid-3,
  .vertical-list,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions, .cta-actions { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .nav-toggle, .site-footer, .hero-actions, .cta-band, .btn {
    /* Keep footer for legal pages; hide chrome that wastes ink */
  }
  .site-header, .nav-toggle, .hero-actions, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
