/* Northline Outfitters — a warm consumer brand.
 *
 * Deliberately unlike Atlas and Relay. Three demos that look alike would blur
 * together, and the point of this one is that it is somebody's *shop*, with a
 * chat widget bolted onto it, rather than a chat app with a website attached.
 *
 * The custom properties are an intentional copy of the shape used in the other
 * demos. See ../../README.md § "No shared code".
 */

:root {
  --paper: #fbf7f0;
  --card: #ffffff;
  --ink: #23201b;
  --muted: #6d675e;
  --faint: #a09a90;
  --line: #e6dfd2;
  --accent: #b4512a;
  --accent-soft: #f3e3da;
  --deep: #26332f;
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16150f;
    --card: #1e1d17;
    --ink: #f2ede2;
    --muted: #a8a294;
    --faint: #746e62;
    --line: #302e25;
    --accent: #e07b4c;
    --accent-soft: #33241c;
    --deep: #1a2320;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip:focus { left: 0; }

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

/* -------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    margin: 0.7rem 0 0;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .bar { flex-wrap: wrap; }
}

/* -------------------------------------------------- layout */

main { min-height: 60vh; }

.hero,
.band,
.page-head {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.band.alt {
  max-width: none;
  background: var(--deep);
  color: #f0ece2;
}

.band.alt > * { max-width: 68rem; margin-inline: auto; }
.band.alt h2 { color: #fff; }

h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.wide { max-width: 44rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.micro {
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.8rem;
}

/* -------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { filter: brightness(1.07); }

.button.ghost {
  background: transparent;
  color: var(--accent);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  aspect-ratio: 1 / 1;
}

.swatch { border-radius: var(--radius); }
.s1 { background: linear-gradient(150deg, #b4512a, #8a3a1c); }
.s2 { background: linear-gradient(150deg, #26332f, #16211d); }
.s3 { background: linear-gradient(150deg, #d9c4a3, #b9a07c); }
.s4 { background: linear-gradient(150deg, #5d7a70, #3d5850); }

/* -------------------------------------------------- cards & tiers */

.cards,
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card,
.tier {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.card p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.92rem; }

.price {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink) !important;
}

.tier { display: flex; flex-direction: column; }

.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 32px -20px var(--accent);
}

.flag {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tier h2 { margin-bottom: 0.2rem; font-size: 1.2rem; }

.tier-price {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.tier-price span { font-size: 0.85rem; color: var(--muted); font-family: var(--sans); }

.tier ul {
  flex: 1;
  margin: 0 0 1.3rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tier li { margin: 0.35rem 0; }

/* -------------------------------------------------- docs & qa */

.docs article { max-width: 44rem; margin-bottom: 2.6rem; scroll-margin-top: 5rem; }
.docs h2 { margin-bottom: 0.6rem; }
.docs ul { padding-left: 1.15rem; color: var(--muted); }
.docs li { margin: 0.3rem 0; }
.docs p { color: var(--muted); }

.qa { max-width: 44rem; }
.qa dt { margin-top: 1.1rem; font-weight: 600; }
.qa dd { margin: 0.25rem 0 0; color: var(--muted); }
.band.alt .qa dd { color: #cdc6b8; }

/* -------------------------------------------------- contact */

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-form { display: grid; gap: 0.9rem; max-width: 30rem; }

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.hint { font-weight: 400; color: var(--faint); }

.contact-form input,
.contact-form textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-color: var(--accent);
}

.contact-form .button { justify-self: start; }

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

.contact-aside p { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; }
.contact-aside strong { color: var(--ink); }

/* -------------------------------------------------- footer */

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.foot-grid h2 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.6rem; }
.foot-grid p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.88rem; max-width: 24rem; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; }
.foot-grid li { margin: 0.3rem 0; }
.foot-grid a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }

.fineprint {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--faint);
  font-size: 0.76rem;
}

/* The widget's launcher sits bottom-right. Keep the last of the page clear of
 * it so the footer links are never behind the bubble. */
@media (max-width: 520px) {
  .fineprint { padding-bottom: 5.5rem; }
}
