/* SHMILY storefront styles - mobile first. See the THEME block below for colors/fonts. */
/* =====================================================================
   THEME - the ONLY place colors, fonts and corner shapes are defined.
   To re-brand the whole site, change the values in this block (and swap
   assets/logo-s.svg + logo-s-full.svg - the "S" of the SHMILY wordmark). Nothing else in this file hard-codes a color or font.
   Current look: black & white streetwear. The blackletter "S" is a placeholder.
   ===================================================================== */
:root {
  /* colors - black & white only (greys just for soft backgrounds/borders) */
  --bg: #ffffff;             /* page background */
  --bg-alt: #f2f2f2;         /* alternate section background */
  --surface: #ffffff;        /* cards, inputs */
  --text: #000000;           /* main text + headings */
  --muted: #555555;          /* secondary text */
  --line: #dcdcdc;           /* borders and dividers */
  --accent: #000000;         /* buttons, links, active states */
  --accent-hover: #333333;   /* button hover */
  --accent-light: #777777;   /* hover borders */
  --accent-soft: #e8e8e8;    /* selected size, soft highlights */
  --on-accent: #ffffff;      /* text on buttons / dark areas */
  --dark: #000000;           /* banner + footer background */
  --on-dark: #ffffff;        /* text on dark areas */
  --on-dark-muted: #bdbdbd;
  --danger: #b00020;         /* error messages (kept readable on purpose) */
  --notice-bg: #f2f2f2; --notice-border: #777777; --notice-text: #000000;  /* "placeholder" notes */
  --shadow-color: rgba(0, 0, 0, .14);
  /* fonts - swap for your brand fonts (add an @font-face or <link> if they are web fonts) */
  --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* wordmark (header + footer logo): the first letter is the logo file assets/logo-s.svg (footer: logo-s-full.svg) */
  --wordmark-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wordmark-weight: 800;
  --wordmark-tracking: .2em;
  --logo-s-height: 1.08em;     /* how tall the logo S is vs. the other letters (1em-ish = same size) */
  --logo-s-drop: -.04em;       /* nudges the logo S up/down to sit on the baseline */
  --logo-s-gap: .12em;
  --logo-s-height-footer: 2.2em; /* the footer shows the full S (with the phrase) bigger, like a drop cap */         /* space between the logo S and the H */
  --heading-weight: 800;
  --heading-transform: uppercase;
  --heading-tracking: .02em;
  /* shape - 0 = sharp, square streetwear corners */
  --radius: 0;
  --radius-s: 0;
  --radius-btn: 0;
  --shadow: 0 6px 24px var(--shadow-color);
}
/* ===================== end of THEME ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); text-transform: var(--heading-transform); letter-spacing: var(--heading-tracking); line-height: 1.1; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--on-accent); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
.heart { width: 1em; height: .8em; color: var(--accent-light); vertical-align: -.05em; }

/* banner + header */
.banner { background: var(--dark); color: var(--on-dark); text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.banner p { margin: 0; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: relative; }
.logo { display: inline-block; text-decoration: none; color: var(--text); padding: .35rem 0; }
.wordmark { display: inline-block; white-space: nowrap; font-family: var(--wordmark-font); font-weight: var(--wordmark-weight); letter-spacing: var(--wordmark-tracking); text-transform: uppercase; line-height: 1; font-size: 1.45rem; }
.wordmark-s { display: inline-block; height: var(--logo-s-height); width: auto; vertical-align: var(--logo-s-drop); margin-right: var(--logo-s-gap); }
.wordmark-s.invert { filter: invert(1); } /* black logo file shown white on the dark footer */
.header-inner > nav { order: 2; }
.nav-toggle { order: 3; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; content: ""; position: relative; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }
.nav-list { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; display: none; position: absolute; right: 0; left: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-list.open { display: block; }
.nav-list a { display: block; padding: .7rem 0; text-decoration: none; color: var(--text); font-weight: 600; }
.nav-list a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-list a:hover { color: var(--accent); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; padding: .85rem 1.6rem; border-radius: var(--radius-btn); border: 2px solid var(--accent); font-size: 1.05rem; text-align: center; cursor: pointer; transition: transform .15s, background .15s; font-family: inherit; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-block { display: block; width: 100%; }
.btn-disabled, .btn-disabled:hover { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }

/* hero */
.hero { background: var(--bg-alt); padding: clamp(2.5rem, 9vw, 6rem) 0; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: 1.2rem; max-width: 36rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-art { display: none; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

section.block { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.story-grid { display: grid; gap: 1.5rem; }
.acronym { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); margin: 1.25rem 0; padding: 0; list-style: none; }
.acronym li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .6rem .8rem; font-family: var(--font-heading); font-weight: 700; }
.acronym b { color: var(--accent); font-size: 1.4rem; }
.pull { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; border-left: 4px solid var(--accent-light); padding-left: 1rem; margin: 1.25rem 0; }

/* product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.card:hover, .card:focus-within { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; display: block; background: var(--bg-alt); aspect-ratio: 1; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .8rem .9rem 1rem; }
.card-body h3 { margin-bottom: .25em; font-size: 1.02rem; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card-body p { margin-bottom: .4em; font-size: .92rem; }
.badge { position: absolute; top: .6rem; right: .6rem; background: var(--text); color: var(--on-accent); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: var(--radius-btn); }
.badge-left { right: auto; left: .8rem; top: .8rem; background: var(--surface); color: var(--accent); border: 1px solid var(--line); }
.price { margin: 0; font-weight: 700; }
.price-note { font-weight: 400; font-size: .78rem; color: var(--muted); margin-left: .5rem; font-style: italic; }
.page-title { padding: 2.5rem 0 1rem; }
.page-title p { color: var(--muted); max-width: 40rem; }

/* product page */
.crumbs { padding: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
#product { display: grid; gap: 1.75rem; padding: 1rem 0 3rem; }
.main-img { position: relative; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; }
.thumb { padding: 0; width: 72px; height: 72px; border-radius: var(--radius-s); border: 2px solid var(--line); overflow: hidden; background: var(--bg-alt); cursor: pointer; }
.thumb[aria-pressed="true"] { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: .25em; }
.info .price { font-size: 1.4rem; margin-bottom: .75rem; }
.info .lead { color: var(--muted); font-size: 1.1rem; }
.sizes { border: 0; padding: 0; margin: 1.25rem 0 .25rem; }
.sizes legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.size-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-row label { min-width: 52px; text-align: center; padding: .6rem .9rem; border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius-s); cursor: pointer; font-weight: 600; }
.size-row label:hover { border-color: var(--accent-light); }
.size-row input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.size-row input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.error { color: var(--danger); font-weight: 600; min-height: 1.4em; margin: .25rem 0 .5rem; }
.soon-note { margin-top: .75rem; }
.sub { font-size: 1.15rem; margin-top: 1.75rem; }
.details { color: var(--muted); }
.notfound { text-align: center; padding: 4rem 0; grid-column: 1 / -1; }

/* text pages */
.prose { max-width: 46rem; padding-bottom: 3rem; }
.placeholder-note { background: var(--notice-bg); border: 1px dashed var(--notice-border); color: var(--notice-text); border-radius: var(--radius-s); padding: .75rem 1rem; font-size: .92rem; margin: 0 0 1.5rem; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: .75rem; }
details.faq summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; font-family: var(--font-heading); list-style-position: inside; }
details.faq div { padding: 0 1.1rem 1rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.contact-card .big { font-family: var(--font-heading); font-size: 1.4rem; word-break: break-word; }

/* footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: var(--on-dark); }
.site-footer .muted { color: var(--on-dark-muted); }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-logo { margin: 0 0 .75rem; }
.footer-logo .wordmark { font-size: 1.6rem; color: var(--on-dark); }
.footer-logo .wordmark-s { height: var(--logo-s-height-footer); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
noscript .wrap { padding: 2rem 0; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .card-body h3 { font-size: 1.15rem; }
  .card-body { padding: 1rem 1.1rem 1.2rem; }
  .acronym { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex !important; position: static; box-shadow: none; border: 0; padding: 0; gap: 1.75rem; background: transparent; }
  .nav-list a { padding: .4rem 0; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
  .hero-art { display: block; }
  .story-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  #product { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
  .gallery { position: sticky; top: 90px; }
  .footer-inner { grid-template-columns: 2fr 1.5fr auto; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
