/* Carrying Things: follows the 2025 Squarespace look.
   Quiet monospace body, light condensed headings, black footer.
   No web fonts (system fonts only, nothing fetched). */

/* Brand values: the carrying-things block of the UX system
   (Castle Rooms/Products/Carrierfile/design-system/ux-tokens.css).
   Same names and values, kept here so the site stays one stylesheet
   and deploys on its own. :root too, so pages without data-brand match.
   Type (UX job B, 2026-11-08): 14px body at every width, nothing under 12px. */
:root,
[data-brand="carrying-things"] {
  --bg-page:      #FFFFFF;
  --text:         #111111;
  --text-soft:    #6B6B6B;   /* 5.33:1, passes */
  --line-soft:    #E8E8E8;
  --font-display: "Abel", "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-mono:    "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* the site's older names, pointed at the brand values */
  --ink: var(--text);
  --soft: var(--text-soft);
  --line: var(--line-soft);
  --mono: var(--font-mono);
  --head: var(--font-display);
  --hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --pad: clamp(16px, 4vw, 44px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-page);
  font: 300 14px/1.7 var(--mono);
  letter-spacing: 0.01em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- header: nav left, logo centered ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--pad);
  border-top: 1px solid var(--line);
}
.nav { display: flex; gap: 18px; font-size: 13px; }
.nav a { color: var(--soft); text-decoration: none; padding-bottom: 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.logo {
  grid-column: 2;
  text-decoration: none;
  text-align: center;
  line-height: 0;
}
/* Logo file is 275x101; shown at 120px wide so it stays sharp on retina. */
.logo img { width: 120px; height: auto; }

/* ---------- home ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; }
.home-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.home-grid .wide { grid-column: span 1; }
.home-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-row img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- shop ---------- */
.shop { padding: 18px var(--pad) 0; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.shop-item { text-decoration: none; }
.shop-item img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.shop-item h2 { font: 400 17px/1.3 var(--head); margin: 22px 0 2px; }
.shop-item p { margin: 0; font-size: 13px; }
.shop-note { border-top: 1px solid var(--ink); margin: 34px 14px 0; padding: 14px 0 28px; font-size: 12px; color: var(--soft); }
.pattern-band { height: 310px; background: url("images/pattern-blue.webp") center / 310px repeat; }

/* ---------- bag page ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 50%; width: 50%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: start; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer;
  font: 300 20px/1 var(--mono); color: var(--ink);
}
.gallery-nav[data-dir="prev"] { left: 0; }
.gallery-nav[data-dir="next"] { right: 0; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 30px var(--pad) 0;
}
.product h1 { font: 400 40px/1.1 var(--head); margin: 0 0 22px; }
.product .price { font-size: 14px; margin: 0 0 14px; }
.product .copy { max-width: 480px; color: var(--soft); font-size: 14px; }
.product .copy p { margin: 0 0 12px; }
.product .copy strong { color: var(--ink); font-weight: 700; }
.buy-box { justify-self: end; width: min(100%, 280px); }
.buy-box label { display: block; font-size: 12px; color: var(--soft); margin-bottom: 4px; }
.buy-box select {
  width: 100%; height: 40px; padding: 0 10px;
  font: 300 14px var(--mono); color: var(--soft);
  border: 1px solid var(--ink); border-radius: 0;
  /* Our own arrow, so it can sit 16px in from the edge (the browser's sits too close). */
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 10px; padding: 9px 12px;
  background: #000; color: #fff; text-align: center; text-decoration: none;
  font: 400 15px var(--mono);
}
.btn--off { background: #fff; color: var(--soft); border: 1px solid var(--line); }
.after-pay { font-size: 14px; color: var(--soft); margin: 10px 0 0; }
.after-pay a { color: var(--ink); }
.crumbs { padding: 26px var(--pad) 0; font-size: 12px; color: var(--soft); }
.crumbs a { text-decoration: none; }
.gift { padding: 50px calc(var(--pad) + 14px) 30px; font-size: 12px; color: var(--soft); }

/* ---------- text pages: label left, text right ---------- */
.page { padding: 40px calc(var(--pad) + 14px) 120px; min-height: 40vh; }
.page--center { display: flex; justify-content: center; }
.page--center .text { max-width: 360px; color: var(--soft); font-size: 14px; }
.page--center .text p { margin: 0 0 12px; }
.about { display: flex; flex-direction: column; align-items: center; width: 100%; }
.about-photo { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 0 32px; }
.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 900px;
  padding: 20px 0 80px;
}
.section + .section { border-top: 1px solid var(--ink); padding-top: 50px; }
.section h1 { font: 400 22px/1.3 var(--head); margin: 0; }
.section .body { max-width: 420px; color: var(--soft); font-size: 14px; }
.section h2 { font: 700 15px/1.3 var(--mono); color: var(--ink); margin: 0 0 12px; }
.section h3 { font: 700 14px/1.3 var(--mono); color: var(--ink); margin: 0 0 10px; }
.section .body p { margin: 0 0 30px; }
.section .faq + .faq { margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer {
  background: #000;
  color: #bbb;
  padding: 38px calc(var(--pad) + 14px) 18px;
  font-size: 13px;
}
.footer-cols { display: flex; gap: 0; min-height: 150px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols ul:nth-child(1) { width: 220px; }
.footer-cols ul:nth-child(2) { width: 180px; }
.footer-cols li { margin-bottom: 9px; }
.footer-cols a { color: #bbb; }
.footer-line {
  border-top: 1px solid #bbb;
  margin: 40px 0 0;
  padding-top: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 100px var(--pad) 140px; color: var(--soft); }
.lost h1 { font: 400 32px var(--head); color: var(--ink); margin: 0 0 14px; }

/* ---------- phone ---------- */
@media (max-width: 700px) {
  body { font-size: 14px; overflow-wrap: anywhere; }
  .site-header { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding-top: 12px; padding-bottom: 4px; }
  .logo { grid-column: 1; grid-row: 1; }
  .logo img { width: 110px; }
  .nav { grid-row: 2; gap: 6px; font-size: 13px; }
  .nav a { display: inline-block; padding: 13px 8px; line-height: 18px; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
  .home-grid, .home-row, .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-item h2 { font-size: 17px; margin-top: 14px; }
  .shop-item p { font-size: 12px; }
  .shop-note { font-size: 12px; }
  .gallery img { flex-basis: 100%; width: 100%; }
  .gallery-nav { width: 44px; height: 44px; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product h1 { font-size: 32px; }
  .product .price { font-size: 14px; }
  .product .copy, .page--center .text, .section .body { font-size: 14px; }
  .product .copy { max-width: none; }
  .buy-box { justify-self: stretch; width: 100%; min-width: 0; }
  .buy-box label { font-size: 12px; }
  /* 16px stops iPhone Safari zooming in when the select is tapped. */
  .buy-box select { height: 44px; font-size: 16px; }
  .btn { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
  .after-pay { font-size: 14px; }
  .crumbs, .gift { font-size: 12px; }
  .crumbs a { display: inline-block; padding: 12px 0; }
  .page { padding-bottom: 70px; }
  .section { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 50px; }
  .section h1 { font-size: 22px; }
  .section h2 { font-size: 15px; }
  .section h3 { font-size: 14px; }
  .section .body { max-width: none; }
  .page--center .text { max-width: none; }
  .lost h1 { font-size: 28px; }
  .footer-cols { flex-direction: column; min-height: 0; }
  .footer-cols ul { width: auto !important; }
  .footer-cols li { margin-bottom: 0; font-size: 13px; }
  .footer-cols a { display: inline-block; padding: 11px 0; }
  .footer-line { font-size: 12px; }
  .pattern-band { height: 200px; background-size: 200px; }
}
