:root {
  --bg: #F4F7F2;
  --ink: #4A3C28;
  --headline: #3F5C12;
  --highlight: #267016;
  --sky: #E7F6FC;
  --paper: #fbfcf8;
  --line: #d5decc;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

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

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

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

h1, h2, h3 {
  color: var(--headline);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

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: 0.45rem; }

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

.skip:focus { transform: none; }

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

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.prose { max-width: 42rem; }

.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: 0.35rem 1rem;
  margin: 0;
}

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

.site-header,
.site-footer,
.sky-band { background: var(--sky); }

.site-header { padding: 1.25rem 0; }
.site-footer { padding: 2rem 0 2.75rem; }
.band { padding: 2.5rem 0; }
main { padding-bottom: 1rem; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--headline);
  font-weight: 600;
  text-decoration: none;
}

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

nav[aria-label="Primary"],
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

nav a { font-weight: 600; }

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

.nav-toggle {
  display: none;
  background: var(--headline);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  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: 1.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(74, 60, 40, 0.12);
  border-top: 4px solid var(--highlight);
  border-radius: 1rem;
  padding: 1.25rem;
}

.swatch {
  height: 12rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(74, 60, 40, 0.15);
}

.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.5rem;
  font-weight: 600;
}

.status {
  color: var(--headline);
  font-weight: 600;
}

.total { font-weight: 600; }

a.button,
button.button {
  background: var(--headline);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

a.button:hover,
button.button:hover {
  background: #31480e;
  color: var(--bg);
}

button.waitlist-action {
  background: transparent;
  color: var(--headline);
  border: 2px solid var(--headline);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  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: 0.5rem 0.75rem;
  align-items: center;
}

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

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

.line .swatch { height: 4.5rem; }

.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

#save-note:not(:empty),
#product-status:not(:empty) {
  background: var(--sky);
  border-radius: 0.75rem;
  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(--headline);
  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.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede { font-size: 1.2rem; }
.hero-actions, .step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.button-quiet {
  background: transparent;
  color: var(--headline);
  border: 2px solid var(--headline);
}
.button-quiet:hover { background: var(--headline); color: var(--bg); }
.dept-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.dept-row {
  display: flex;
  gap: 0.5rem 1.25rem;
  overflow-x: auto;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.dept-row a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.section-head { max-width: 46rem; }
.shelf-group + .shelf-group { margin-top: 2rem; }
.shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.85rem;
}
.shelf-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.shelf-media { text-decoration: none; }
.shelf-card .swatch { height: 16rem; }
.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); }
.named-list { list-style: none; padding: 0; }
.named-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.named-list li span:first-child { font-weight: 600; color: var(--headline); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.step, .note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--highlight);
  border-radius: 1rem;
  padding: 1.15rem;
}
.band-paper .note-card { background: var(--bg); }
.note-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.contact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

@media (min-width: 700px) {
  .shelf { grid-template-columns: 1fr 1fr; }
  .note-row { grid-template-columns: 1fr 1fr; }
}

@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: 0.75rem 1rem;
}
.newsletter label {
  flex: 0 0 auto;
  color: var(--headline);
  font-weight: 600;
}
.newsletter input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #5e6b54;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
}
.newsletter p[role="status"] {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--ink);
}
.newsletter p[role="status"]:not(:empty) {
  background: var(--sky);
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
}

@media (min-width: 1100px) {
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 3.4rem; }
  .band { padding: 3.25rem 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; }
}
