/* Ascania — static responsive MVP layout
   Tokens per design/design.md. Breakpoints: 1440 desktop, 768 tablet, 390 mobile. */

:root {
  --ink: #171717;
  --paper: #F6F3EE;
  --white: #FFFFFF;
  --clay: #A64B3C;
  --sand: #D9C4A7;
  --mint: #DDE8DF;
  --muted: #5E5B57;
  --dark: #25221F;
  --green: #345C45;
  --line: #C8C0B6;
  --soft: #D7D2CC;
  --footer-meta: #BFB8AF;
  --disabled-bg: #D5D0C9;
  --disabled-fg: #77736E;
  --field: 80px;
  --gap: 24px;
  --control-h: 52px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

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

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--field);
  top: -48px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

/* Focus visibility: 3px external outline, never color-only */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.route a:focus-visible,
.site-footer a:focus-visible,
.utility-bar a:focus-visible {
  outline-color: var(--sand);
}

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--field);
}

/* ---------- 1. Utility bar ---------- */
.utility-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
}
.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.utility-city {
  font-weight: 700;
  letter-spacing: 1.4px;
}
.utility-hours { font-weight: 400; }

/* ---------- 2. Brand header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--paper);
}
.header-inner {
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  min-height: 44px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
}
.brand-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-menu {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
  border-radius: 4px;
}
.icon-btn:hover { color: var(--clay); }

/* Search row */
.search-row {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.search-row .shell { padding-block: 14px; }
.search-form { display: flex; gap: 12px; }
.search-input {
  flex: 1;
  height: var(--control-h);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.search-input::placeholder { color: var(--muted); }
.btn-search { flex: 0 0 auto; }

/* ---------- 3. Primary navigation ---------- */
.main-nav { background: var(--ink); }
.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
}
.nav-list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.nav-link {
  display: inline-block;
  min-height: 44px;
  padding: 10px 24px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
.nav-link:hover { color: var(--sand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 28px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 150ms ease, color 150ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--clay); border-color: var(--clay); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--paper); }
.btn-danger { background: var(--clay); border-color: var(--clay); color: var(--white); }
.btn-danger:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--disabled-bg);
  border-color: var(--disabled-bg);
  color: var(--disabled-fg);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Section scaffolding ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow-light { color: var(--sand); }
.eyebrow-cream { color: var(--sand); }

.section-title {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 14px;
}
.section-title-light { color: var(--white); }

/* ---------- 4. Hero ---------- */
.hero {
  background: var(--paper);
  padding-block: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 580px;
  gap: var(--gap);
  align-items: start;
}
.hero-copy { padding-top: 46px; }
.hero-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.06;
  color: var(--ink);
  margin-top: 20px;
  max-width: 640px;
}
.hero-lede {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 28px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: var(--gap);
  margin-top: 40px;
}
.hero-media {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 580 / 604;
  background: var(--line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-foot { margin-top: 48px; }
.hero-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
}

/* ---------- 5. Catalog cards ---------- */
.catalog {
  background: var(--white);
  padding-block: 80px;
}
.catalog .section-title { max-width: 720px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 56px;
}
.card { background: var(--white); }
.card-link {
  display: block;
  text-decoration: none;
  min-height: 44px;
}
.card-media {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 302 / 420;
  background: var(--line);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}
.card-link:hover .card-media img { transform: scale(1.02); }
.card-eyebrow {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--clay);
}
.card-title {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.card-more {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* Loading / empty / error / success states */
.state {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  font-size: 15px;
}
.state p { margin-bottom: 16px; }
.state-error { border-color: var(--clay); }
.state-success { background: var(--mint); border-color: var(--green); }
.state-demo { background: var(--white); }
.state-demo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}
.state-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.4px;
}

/* Skeleton */
.skeleton-card .card-media { background: var(--paper); }
.skeleton-card .card-media img { visibility: hidden; }
.skeleton-card .card-eyebrow,
.skeleton-card .card-title,
.skeleton-card .card-more {
  background: var(--line);
  color: transparent;
  border-radius: 2px;
}

/* ---------- 6. Route helper ---------- */
.route {
  background: var(--dark);
  padding-block: 80px;
}
.route .section-title {
  font-size: 62px;
  max-width: 760px;
}
.route-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 64px;
}
.step-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sand);
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-top: 14px;
}
.step-copy {
  font-size: 14px;
  color: var(--soft);
  margin-top: 10px;
  line-height: 1.5;
  max-width: 320px;
}
.route .btn { margin-top: 56px; }

/* ---------- 7. Editorial feature ---------- */
.editorial {
  background: var(--white);
  padding-block: 80px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 742px minmax(0, 1fr);
  gap: var(--gap);
  margin-top: 36px;
  align-items: stretch;
}
.editorial-copy { }
.editorial .section-title {
  font-size: 58px;
  max-width: 560px;
}
.editorial-media {
  grid-column: 1;
  margin: 24px 0 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 742 / 520;
  background: var(--line);
}
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--mint);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
}
.panel-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin-top: 14px;
}
.panel-copy {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 20px;
}
.panel-link {
  margin-top: auto;
  padding-top: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ink);
}
.panel-link:hover { color: var(--clay); }

/* ---------- 8. Stores ---------- */
.stores {
  background: var(--paper);
  padding-block: 80px;
}
.stores .section-title { font-size: 50px; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 56px;
}
.store-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px;
  min-height: 170px;
}
.store-city {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--clay);
}
.store-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 10px;
}
.store-addr {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.store-hours {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-top: 8px;
}
.stores-row {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.stores-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.stores-phone a { text-decoration: none; }
.stores-phone a:hover { color: var(--clay); text-decoration: underline; }
.stores-all {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.stores-all:hover { color: var(--clay); text-decoration: underline; }

/* ---------- 9. Loyalty callout ---------- */
.loyalty {
  background: var(--clay);
  padding-block: 72px;
}
.loyalty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}
.loyalty .section-title { font-size: 56px; max-width: 620px; }
.loyalty-support { }
.loyalty-copy-text {
  font-size: 17px;
  color: var(--white);
  line-height: 1.5;
  max-width: 340px;
}
.loyalty-support .btn { margin-top: 40px; }
.loyalty .btn-secondary { border-color: var(--ink); }

/* ---------- 10. Testimonials ---------- */
.testimonials {
  background: var(--white);
  padding-block: 80px;
}
.testimonials .section-title { font-size: 50px; max-width: 720px; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 56px;
}
.quote-card {
  margin: 0;
  background: var(--paper);
  border-radius: 3px;
  padding: 40px 32px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
}
.quote-text {
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}
.quote-author {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--muted);
}

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--dark);
  padding: 64px 0 32px;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.footer-tagline {
  font-size: 16px;
  color: var(--soft);
  line-height: 1.5;
  margin-top: 18px;
  max-width: 300px;
}
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sand);
}
.footer-list li { margin-top: 12px; }
.footer-list a,
.footer-list span {
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-list a:hover { color: var(--sand); text-decoration: underline; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px;
  color: var(--footer-meta);
}
.footer-social {
  font-size: 12px;
  font-weight: 600;
  color: var(--footer-meta);
}

/* ---------- Modal (removal confirmation) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(23, 23, 23, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  background: var(--white);
  border-radius: 4px;
  padding: 32px;
  width: min(440px, 100%);
  color: var(--ink);
}
.modal-title { font-size: 20px; font-weight: 700; }
.modal-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- Live region ---------- */
.sr-live {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   Tablet: 641–1024px, safe field 48px, two columns
   ========================================================= */
@media (max-width: 1024px) {
  :root { --field: 48px; }

  .brand-name { font-size: 42px; }

  .hero { padding-block: 48px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 328px;
    gap: var(--gap);
  }
  .hero-title { font-size: 46px; max-width: 420px; }
  .hero-lede { font-size: 15px; max-width: 380px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 150px; }

  .catalog { padding-block: 72px; }
  .catalog .section-title { font-size: 44px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .route { padding-block: 72px; }
  .route .section-title { font-size: 52px; }
  .route-steps { gap: 24px; }
  .step-copy { max-width: none; }

  .editorial { padding-block: 72px; }
  .editorial .section-title { font-size: 44px; max-width: none; }
  .editorial-grid {
    grid-template-columns: minmax(0, 1fr) 258px;
  }
  .editorial-media {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 390 / 520;
  }
  .editorial-panel {
    grid-column: 2;
    grid-row: 2;
    padding: 32px 28px;
  }
  .panel-title { font-size: 28px; }

  .stores { padding-block: 72px; }
  .stores .section-title { font-size: 44px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .loyalty { padding-block: 64px; }
  .loyalty-grid { grid-template-columns: 1fr; align-items: start; }
  .loyalty .section-title { font-size: 46px; max-width: none; }
  .loyalty-copy-text { max-width: 480px; }
  .loyalty-support .btn { margin-top: 32px; }

  .testimonials { padding-block: 72px; }
  .testimonials .section-title { font-size: 38px; }
  .quote-text { font-size: 16px; }
  .quote-card { min-height: 240px; }

  .site-footer { padding: 56px 0 28px; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-brand { font-size: 46px; }
}

/* =========================================================
   Mobile: 360–640px, safe field 20px, one column
   ========================================================= */
@media (max-width: 640px) {
  :root { --field: 20px; }

  .utility-inner { min-height: 38px; }
  .utility-city { letter-spacing: 1.2px; }
  .utility-hours { font-size: 11px; }

  .header-inner { min-height: 72px; padding-block: 14px 8px; flex-wrap: wrap; }
  .brand { gap: 10px; }
  .brand-name { font-size: 34px; }
  .brand-tag { display: none; }
  .header-actions { gap: 4px; }
  .header-actions .icon-btn { display: none; }
  .header-menu { display: block; margin-left: auto; }

  .search-row .shell { padding-block: 12px; }
  .search-form { flex-direction: column; }
  .btn-search { width: 100%; }

  .nav-inner { min-height: 52px; }
  .nav-list { justify-content: space-between; }
  .nav-link {
    padding: 10px 4px;
    letter-spacing: 1.2px;
    font-size: 12px;
  }
  .nav-list li:nth-child(1),
  .nav-list li:nth-child(2) { display: none; }

  .hero { padding-block: 24px 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media {
    order: -1;
    aspect-ratio: 350 / 340;
  }
  .hero-copy { padding-top: 24px; }
  .hero-title { font-size: 38px; max-width: none; }
  .hero-lede { font-size: 16px; max-width: none; margin-top: 20px; }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }
  .hero-actions .btn { width: 100%; }
  .hero-foot { margin-top: 36px; }

  .catalog { padding-block: 64px; }
  .catalog .section-title { font-size: 36px; }
  .card-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .card-media { aspect-ratio: 350 / 330; }

  .route { padding-block: 64px; }
  .route .section-title { font-size: 36px; }
  .route-steps { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .route .btn { width: 100%; margin-top: 40px; }

  .editorial { padding-block: 56px; }
  .editorial .section-title { font-size: 38px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .editorial-media {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
    aspect-ratio: 350 / 380;
  }
  .editorial-panel {
    grid-column: 1;
    grid-row: auto;
    padding: 28px 24px;
  }
  .panel-title { font-size: 30px; }
  .panel-link { padding-top: 24px; }

  .stores { padding-block: 64px; }
  .stores .section-title { font-size: 38px; }
  .store-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .store-card { min-height: 0; }
  .stores-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
  }
  .stores-phone { font-size: 17px; }

  .loyalty { padding-block: 56px; }
  .loyalty .section-title { font-size: 34px; }
  .loyalty-copy-text { font-size: 16px; max-width: none; }
  .loyalty-support .btn { width: 100%; margin-top: 32px; }

  .testimonials { padding-block: 64px; }
  .testimonials .section-title { font-size: 32px; }
  .quote-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .quote-card { min-height: 320px; padding: 32px 24px; }
  .quote-text { font-size: 18px; }

  .site-footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .footer-brand { font-size: 44px; }
  .footer-contact .footer-list a[href^="tel"] { font-size: 17px; font-weight: 700; }
  .footer-bottom { margin-top: 40px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
  .card-link:hover .card-media img { transform: none; }
  .skip-link { transition: none; }
  .btn { transition: none; }
  *, *::before, *::after { animation: none !important; }
}
