/* Starlink Cottage Lab — mobile-first, no framework. */

:root {
  --paper: #f3efe4;
  --paper-2: #e7f0ea;
  --sand: #fffdf8;
  --ink: #1a2822;
  --ink-soft: #3e5148;
  --forest: #14352b;
  --forest-2: #1c4a3c;
  --pine: #1f6a48;
  --lake: #1a4d68;
  --lake-deep: #0e3346;
  --foam: #e4f1f5;
  --cedar: #8f3f1d;
  --cedar-bg: #f8ebe3;
  --gold: #8d6b2f;
  --line: #d4cbbd;
  --focus: #1a4d68;
  --shadow: 0 12px 32px rgba(20, 53, 43, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 1.15rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 0% -10%, rgba(26, 77, 104, 0.1), transparent 46%),
    radial-gradient(ellipse at 100% 0%, rgba(31, 106, 72, 0.12), transparent 42%);
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--lake-deep);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--forest);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
  color: #fff;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 203, 189, 0.9);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--forest);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--forest);
  color: #f7f4ec;
  border-color: var(--forest);
}

.hero,
.page-hero {
  padding: 1.6rem 0 0.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--pine);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.45rem);
  color: var(--forest);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--forest);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: var(--lake-deep);
}

.lede {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.hero-art {
  background: linear-gradient(180deg, #d7ebe3 0%, #f7f3ea 100%);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 1.6rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: 42rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 0.9rem;
}

.card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(20, 53, 43, 0.04);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card a.card-title {
  color: var(--forest);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card a.card-title:hover {
  text-decoration: underline;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.prose {
  max-width: 44rem;
}

.prose p,
.prose ul,
.prose ol,
.wrap > p.prose {
  margin: 0.75rem 0;
}

.note,
.disclosure,
.offer {
  border-radius: 0.85rem;
}

.note {
  background: var(--foam);
  border-left: 4px solid var(--lake);
  padding: 0.85rem 1rem;
  color: var(--ink);
}

.cta-panel {
  background: var(--forest);
  color: #f6f3ea;
  border-radius: 1.35rem;
  padding: 1.2rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.cta-panel a {
  color: #d7efe4;
}

.cta-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d7c48a;
}

.offer {
  margin: 0 0 0.9rem;
  font-size: 1.08rem;
}

.cta-panel .offer,
.site-footer .offer {
  color: #fff;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(20, 53, 43, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
}

.cta-panel .disclosure {
  margin: 0.9rem 0 0;
  background: rgba(255, 255, 255, 0.06);
  color: #e7f0ea;
  padding: 0.75rem 0.8rem;
  font-size: 0.92rem;
}

.disclosure {
  background: var(--cedar-bg);
  color: #3f2a22;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  border: 2px solid transparent;
}

.btn-primary,
.cta-panel .btn-primary {
  background: #f4efe4;
  color: var(--forest);
}

.btn-primary:hover,
.cta-panel .btn-primary:hover {
  background: #fff;
  color: var(--forest);
}

.cta-panel .btn-secondary {
  background: transparent;
  color: #f6f3ea;
  border-color: rgba(246, 243, 234, 0.45);
}

.cta-panel .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-line {
  background: var(--sand);
  color: var(--forest);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.crumbs {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.crumbs a {
  color: var(--ink-soft);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
  color: var(--forest);
  font-size: 0.92rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.table-scroll p.swipe {
  margin: 0;
  padding: 0.55rem 0.8rem 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

caption {
  text-align: left;
  padding: 0.9rem 0.9rem 0.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--forest);
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  border-top: 0;
  background: #e7f0ea;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
}

tbody th {
  font-weight: 700;
  color: var(--forest);
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

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

.sources li {
  margin-top: 0.45rem;
}

.site-footer {
  margin-top: 1.5rem;
  background: var(--lake-deep);
  color: #e5eef2;
  padding: 1.8rem 0 1.3rem;
}

.site-footer a {
  color: #f4efe4;
}

.footer-grid {
  display: grid;
  gap: 1.3rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #fff;
}

.footer-heading {
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: #d7c48a;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.3rem;
}

.site-footer .disclosure {
  background: rgba(255, 255, 255, 0.06);
  color: #e5eef2;
}

.footer-base {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: #c5d5de;
}

.footer-base p {
  margin: 0.3rem 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-row li {
  margin: 0;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

.stack > * + * {
  margin-top: 0.9rem;
}

.page-404 {
  padding: 2rem 0 3rem;
}

@media (min-width: 720px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav {
    overflow: visible;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn {
    width: auto;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.7fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

  .cta-actions .btn {
    min-width: 14rem;
  }
}

@media (max-width: 719px) {
  .btn {
    width: 100%;
  }
}

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