/* Celley — site styles
   Type: Atkinson Hyperlegible, designed by the Braille Institute for readers with low vision.
   Base size is deliberately large (19px) because many readers are older adults. */

:root {
  /* Palette taken from the Celley header banner */
  --ink: #1c3242;       /* navy, from the striped shirt */
  --muted: #4b5e6b;
  --paper: #fbfcfc;
  --linen: #eaf3f5;     /* pale blue, from the ribbon ends */
  --line: #ccdde3;
  --badge: #5c9cb6;     /* logo badge blue, decorative use only */
  --accent: #2d6a85;    /* darker badge blue, readable with white text */
  --accent-dark: #22536a;
  --honey: #eba441;     /* warm orange, from the scarf; focus rings */
  --white: #ffffff;

  --wrap: 72rem;
  --radius-lg: 18px;
  --radius: 10px;
  --font: "Atkinson Hyperlegible", "Verdana", "Segoe UI", system-ui, sans-serif;
}

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

html { font-size: 118.75%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 38em; }

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

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { left: 0.5rem; z-index: 10; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 5rem; flex-wrap: wrap;
}
.brand {
  font-size: 1.7rem; font-weight: 700; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.brand sup { font-size: 0.45em; font-weight: 400; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  display: inline-block; padding: 0.4rem 0; border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.7rem 1.4rem;
  border-radius: var(--radius); border: 2px solid var(--accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--accent-dark); }
.btn-secondary:hover { background: var(--linen); }
.btn-wide { width: 100%; }

/* ---------- Home: banner + intro ---------- */
.banner { background: var(--linen); }
.banner img {
  width: 100%; height: auto; aspect-ratio: 5 / 1; object-fit: cover;
  object-position: 20% 50%;
}
.intro { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.intro .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 4rem; align-items: end; }
.intro p.lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 0; }
.intro .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }

/* ---------- Home: category shelf ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--linen); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.shelf { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--badge); }
.shelf li { border-bottom: 1px solid var(--line); }
.shelf a {
  display: grid; grid-template-columns: 9rem 1fr auto; gap: 1.6rem; align-items: center;
  padding: 1.3rem 0; color: inherit; text-decoration: none;
}
.shelf .thumb {
  width: 9rem; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.6rem;
}
.shelf .thumb img { width: 100%; height: 100%; object-fit: contain; }
.shelf h3 { font-size: 1.55rem; margin-bottom: 0.25rem; }
.shelf p { margin: 0; color: var(--muted); }
.shelf .count { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.shelf a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

/* ---------- Home: how it works (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--accent); }
.steps li::before {
  content: counter(step); display: block; font-size: 2.4rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 0.5rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; }

.notice {
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--honey);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; }
.crumbs { font-size: 0.9rem; margin: 1.5rem 0 1.2rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tabs a {
  display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700;
}
.tabs a:hover { border-color: var(--accent); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Product grid ---------- */
.grid { display: grid; gap: 2.2rem 1.8rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); padding-bottom: 4rem; }
.card { display: flex; flex-direction: column; }
.card .pic {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); aspect-ratio: 1; padding: 1.2rem; margin-bottom: 1rem;
}
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.card .opts { font-size: 0.9rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 1rem; }
.card .actions { margin-top: auto; display: grid; gap: 0.6rem; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; align-items: start; }
.gallery .main {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 1; padding: 1.5rem;
}
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; list-style: none; padding: 0; }
.thumbs button {
  width: 4.6rem; height: 4.6rem; padding: 0.3rem; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.buybox h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.buybox .summary { font-size: 1.15rem; color: var(--muted); }

fieldset.choices { border: 0; padding: 0; margin: 1.6rem 0; }
fieldset.choices legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; }
.choices .row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label {
  display: inline-block; padding: 0.65rem 1.1rem; min-height: 3rem;
  border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 700; background: var(--white);
}
.choices input:checked + label { border-color: var(--accent); background: var(--linen); box-shadow: inset 0 0 0 1px var(--accent); }
.choices input:focus-visible + label { outline: 3px solid var(--honey); outline-offset: 3px; }

.buy-note { font-size: 0.92rem; color: var(--muted); margin-top: 0.7rem; }

.features { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features li { padding: 0.7rem 0 0.7rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.15rem;
  width: 0.7rem; height: 0.4rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.prose { padding: 1rem 0 3rem; }

/* ---------- Q&A ---------- */
.qa { max-width: 46rem; padding-bottom: 4rem; }
.qa h2 { font-size: 1.4rem; margin: 2.4rem 0 0.6rem; color: var(--accent-dark); }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-of-type { border-top: 1px solid var(--line); }
.qa summary {
  cursor: pointer; font-weight: 700; padding: 1rem 2.2rem 1rem 0; list-style: none; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 0.7rem; font-size: 1.6rem; color: var(--accent);
}
.qa details[open] summary::after { content: "–"; }
.qa details > div { padding: 0 0 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; padding-bottom: 3rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.contact-card address { font-style: normal; color: var(--muted); margin-bottom: 1rem; }
.contact-card .email { font-size: 1.2rem; font-weight: 700; }
.order-steps { padding-left: 1.4rem; }
.order-steps li { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dfe5ee; padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer address { font-style: normal; font-size: 0.92rem; line-height: 1.5; }
.site-footer .legal { border-top: 1px solid #3a4459; margin-top: 2.5rem; padding-top: 1.2rem; font-size: 0.85rem; }
.site-footer p { max-width: none; }

.empty { padding: 2rem 0 5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .intro .wrap, .product, .contact-grid { grid-template-columns: 1fr; }
  .intro .actions { justify-content: flex-start; }
  .banner img { aspect-ratio: 5 / 2; object-position: 22% 50%; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .shelf a { grid-template-columns: 6rem 1fr; }
  .shelf .thumb { width: 6rem; }
  .shelf .count { grid-column: 2; }
}
@media (max-width: 520px) {
  html { font-size: 112.5%; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .banner img { aspect-ratio: 16 / 9; object-position: 25% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.qa details ul { margin: 0; padding-left: 1.3rem; }
.qa details li { margin-bottom: 0.35rem; }
@media (max-width: 520px) {
  .site-header .wrap { min-height: 4rem; padding: 0.6rem 0; }
  .nav { gap: 0.2rem 1.1rem; font-size: 0.95rem; }
}
