:root {
  --bg: #f5f3ec;
  --paper: #fbfaf5;
  --ink: #4a3c28;
  --headline: #3f5c12;
  --highlight: #267016;
  --forest: #2c3520;
  --forest-ink: #f7f5ee;
  --sage: #c9d6b4;
  --sky: #e7f6fc;
  --line: #ddd8c9;
  --line-strong: #c2bca8;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

h1, h2, h3, p, ul, ol { margin: 0; }

h1, h2, h3 {
  color: var(--headline);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.4;
}

h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 12px;
  margin-bottom: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath d='M5.4 6h9.2M19.4 6h9.2' stroke='%23267016' stroke-width='1.4'/%3E%3Ccircle cx='3' cy='6' r='2.4' fill='%23267016'/%3E%3Ccircle cx='17' cy='6' r='2.6' fill='none' stroke='%23267016' stroke-width='1.4'/%3E%3Ccircle cx='31' cy='6' r='2.4' fill='%23267016'/%3E%3C/svg%3E") no-repeat center / contain;
}

p, li { overflow-wrap: anywhere; }

a { color: var(--headline); }
a:hover { text-decoration-thickness: 2px; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 12px; }

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-140%);
  background: var(--forest);
  color: var(--forest-ink);
  padding: 0.5rem 0.8rem;
  z-index: 3;
}

.skip:focus { transform: none; }

.wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.stack > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 48px; }
.prose { max-width: 36rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0;
  list-style: none;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
}

.specs {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px 24px;
  margin: 0;
}

.specs dt { font-weight: 600; color: var(--headline); }
.specs dd { margin: 0; }

.site-header {
  position: relative;
  background: var(--bg);
  padding: 24px 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), #e4ebd8 45%, var(--line));
}

.site-footer {
  background: var(--forest);
  color: #e6e3d6;
  padding: 48px 0 60px;
}

.site-footer a { color: var(--forest-ink); }
.site-footer p { color: rgba(247, 245, 238, 0.82); }

.sky-band {
  background: var(--forest);
  color: var(--forest-ink);
}

.sky-band h1,
.sky-band h2,
.sky-band h3 { color: var(--forest-ink); }

.sky-band h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath d='M5.4 6h9.2M19.4 6h9.2' stroke='%23c9d6b4' stroke-width='1.4'/%3E%3Ccircle cx='3' cy='6' r='2.4' fill='%23c9d6b4'/%3E%3Ccircle cx='17' cy='6' r='2.6' fill='none' stroke='%23c9d6b4' stroke-width='1.4'/%3E%3Ccircle cx='31' cy='6' r='2.4' fill='%23c9d6b4'/%3E%3C/svg%3E");
}

.sky-band .crumbs,
.sky-band .lede { color: rgba(247, 245, 238, 0.88); }

.sky-band a:not(.button) { color: var(--sage); }

.sky-band a.button {
  background: var(--forest-ink);
  color: var(--forest);
}

.sky-band a.button:hover { background: #ffffff; }

.sky-band .button-quiet {
  background: transparent;
  color: var(--forest-ink);
  border: 1px solid rgba(247, 245, 238, 0.6);
}

.sky-band .button-quiet:hover {
  background: rgba(247, 245, 238, 0.14);
  color: var(--forest-ink);
}

.band { padding: 48px 0; }
main { padding-bottom: 24px; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
}

nav[aria-label="Primary"],
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

nav a {
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

nav a[aria-current="page"]::after { content: " (current)"; }

.nav-toggle {
  display: none;
  background: var(--forest);
  color: var(--forest-ink);
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 1.1rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.cart-count:empty { display: none; }
.cart-count::before { content: " ("; }
.cart-count::after { content: ")"; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.swatch {
  height: 12rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
}

.swatch-tee { background: #d7e4c8; }
.swatch-boxer { background: #e7efe0; }
.swatch-boyshort { background: #f0e6d4; }
.swatch-short { background: #c5d4b6; }
.swatch-pant { background: #b7c3a6; }
.swatch-hoodie { background: #d5e3ea; }
.swatch-jogger { background: #c9d5be; }

.price {
  color: var(--highlight);
  font-size: 1.4rem;
  font-weight: 600;
}

.status {
  color: var(--headline);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.total { font-weight: 600; }

a.button,
button.button {
  background: var(--forest);
  color: var(--forest-ink);
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

a.button:hover,
button.button:hover {
  background: #1f2717;
  color: var(--forest-ink);
}

button.waitlist-action {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 6px;
  padding: 0.75rem 1.35rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-block;
}

.text-action {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--headline);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

label {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

input[type="number"] {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  width: 5.5rem;
}

.line {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 24px;
  align-items: start;
}

.line .swatch { height: 4.5rem; }

.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

#save-note:not(:empty),
#product-status:not(:empty) {
  background: var(--sky);
  border-radius: 6px;
  padding: 1rem 1.15rem;
}

.table-wrap { overflow-x: auto; max-width: 100%; }

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

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

th { color: var(--headline); }

td.num, th.num {
  text-align: right;
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .specs { grid-template-columns: 1fr; }
  .brand { flex-basis: 100%; }

  nav[aria-label="Primary"] a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.15rem;
  }

  .js .brand { flex-basis: auto; flex-grow: 1; }

  .js .nav-toggle { display: inline-flex; align-items: center; }

  .js nav[aria-label="Primary"] {
    display: none;
    flex-basis: 100%;
  }

  .js nav[aria-label="Primary"].is-open { display: flex; }
}

@media (min-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.hero-copy { max-width: 46rem; }
.eyebrow {
  color: var(--highlight);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sky-band .eyebrow { color: var(--sage); }
.lede { font-size: 1.25rem; }
.hero-actions, .step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.button-quiet {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.button-quiet:hover { background: var(--forest); color: var(--forest-ink); }
.dept-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.dept-row {
  display: flex;
  gap: 12px 24px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
}
.dept-row a {
  font-weight: 600;
  white-space: nowrap;
}
.section-head { max-width: 46rem; }
.shelf-group + .shelf-group { margin-top: 48px; }
.shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}
.shelf-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shelf-media { text-decoration: none; display: block; }
.shelf-media img {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
}
.shelf-card .swatch { height: 16rem; }
.card > img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
}
.product-figure { margin: 0; }
.product-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.product-figure figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--headline);
}
.limits {
  font-size: 0.82rem;
  color: var(--headline);
}
.limits-full {
  max-width: 46rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
}
.note-links {
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
table.matrix { min-width: 58rem; font-size: 0.82rem; }
table.matrix th { background: var(--bg); }
.shelf-card .price { font-size: 1.35rem; }
.shelf-meta, .bundle { color: var(--ink); }
.shelf-view { font-weight: 600; margin-top: auto; }
.band-paper { background: var(--paper); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.step, .note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.band-paper .note-card { background: var(--bg); }
.note-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.contact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
}

@media (min-width: 700px) {
  .shelf { grid-template-columns: 1fr 1fr; }
  .note-row { grid-template-columns: 1fr 1fr; gap: 36px; }
  .note-row > *:first-child {
    border-right: 1px solid var(--line);
    padding-right: 36px;
  }
}

@media (min-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}

.newsletter-band { max-width: 46rem; }
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.newsletter label {
  flex: 0 0 auto;
  color: var(--forest-ink);
  font-weight: 600;
}
.newsletter input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}
.newsletter p[role="status"] {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--forest-ink);
}
.newsletter p[role="status"]:not(:empty) {
  background: rgba(247, 245, 238, 0.14);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
}

@media (min-width: 1100px) {
  h1 { font-size: 2.9rem; }
  .hero h1 { font-size: 3.9rem; }
  .band { padding: 72px 0; }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  #shirts .shelf, #shorts .shelf, #hoodie .shelf { grid-template-columns: minmax(0, 22rem); }
  #pants .shelf { grid-template-columns: 1fr 1fr; max-width: 46rem; }
}
