/* =========================================================
   Stone Merchant, LLC — Clean Light theme
   Plain CSS, no build step. Edit color tokens below to retheme.
   ========================================================= */

/* ---- Design tokens -------------------------------------- */
:root {
  --bg:          #ffffff;
  --surface:     #f4f4f5;
  --surface-2:   #ffffff;
  --text:        #18181b;
  --text-muted:  #52525b;
  --border:      #e4e4e7;
  --accent:      #4f46e5;
  --accent-hover:#4338ca;
  --accent-soft: #eef2ff;

  --maxw: 1080px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 8px 24px rgba(24, 24, 27, .06);
  --shadow-lift: 0 4px 8px rgba(24, 24, 27, .06), 0 16px 40px rgba(24, 24, 27, .10);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  /* Distinctive display face for headings/brand; falls back to system stack. */
  --font-display: "Bricolage Grotesque", var(--font);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---- Self-hosted display font (no external requests) ---- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); }

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

.muted { color: var(--text-muted); }

/* ---- Layout helpers ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 60ch; }

/* ---- Skip link (accessibility) -------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .7rem 1.3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s var(--ease),
              box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Header / nav --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand .mark { width: 40px; height: 40px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  position: relative;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ----------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 132px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(60% 120% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-art {
  display: grid;
  place-items: center;
}
.hero-art img {
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(24, 24, 27, .14));
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(70%, 240px); }
}

/* Staggered entrance on page load (skipped via prefers-reduced-motion below) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *  { animation: rise .6s var(--ease) both; }
  .hero-copy > .eyebrow      { animation-delay: .05s; }
  .hero-copy > h1            { animation-delay: .12s; }
  .hero-copy > .lead         { animation-delay: .22s; }
  .hero-copy > .hero-actions { animation-delay: .32s; }
  .hero-art      { animation: fade-in .8s var(--ease) .25s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- Cards / grids -------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 22px; height: 22px; }

/* Product card */
.product {
  display: flex;
  flex-direction: column;
}
.product .badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .6rem;
  margin-bottom: .9rem;
  align-self: flex-start;
}
.product-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.product h3 { margin-bottom: .35rem; }
.product p { color: var(--text-muted); font-size: .98rem; flex: 1; }
.store-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.store-links a {
  font-size: .9rem;
  font-weight: 600;
  padding: .4rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.store-links a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---- Section header centring ---------------------------- */
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---- About / prose -------------------------------------- */
.prose { max-width: 68ch; }
.prose p { color: var(--text-muted); font-size: 1.08rem; }
.prose h2 { color: var(--text); margin-top: 2.5rem; }

.value-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.value-list li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--text-muted);
}
.value-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---- Experience: skill tags ----------------------------- */
.exp-block { margin-top: 2.5rem; }
.exp-block h3 { margin-bottom: 1rem; }
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.tag-list li {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem .85rem;
}

/* ---- Contact -------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}
.contact-card { display: flex; flex-direction: column; gap: .4rem; }
.contact-card .label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-card .value { font-size: 1.15rem; font-weight: 600; word-break: break-word; }

/* ---- CTA banner ----------------------------------------- */
.cta {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 56px);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #d4d4d8; max-width: 50ch; margin-inline: auto; }
.cta .btn--primary { margin-top: 1.5rem; }

/* ---- Footer --------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 32px;
  margin-top: 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 32ch; }
.footer-brand p { color: var(--text-muted); font-size: .95rem; margin-top: .5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--text-muted); font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--text-muted);
}

/* ---- In-development notice banner ----------------------- */
.dev-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.dev-banner.is-visible { opacity: 1; transform: translateY(0); }

.dev-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 12px;
}
.dev-banner__text { flex: 1; font-size: .92rem; line-height: 1.5; }
.dev-banner__text strong { color: var(--text); }
.dev-banner__text span { color: var(--text-muted); }

.dev-banner__close {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.dev-banner__close:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
.dev-banner__close svg { width: 16px; height: 16px; }

/* ---- 404 ------------------------------------------------ */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--accent-soft); letter-spacing: -0.04em; line-height: 1; }

/* ---- Responsive ----------------------------------------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
}

/* ---- Motion preference ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
