/* The Aussie Rona Rules — static site styles */
@font-face {
  font-family: "Luckiest Guy";
  src: url("/assets/fonts/luckiest-guy.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-soft: #463939;
  --paper: #ffffff;
  --blush: #c6b9b9;
  --blush-light: #f5f0f0;
  --line: #e6dede;
  --muted: #8a8080;
  --radius: 14px;
  --max: 1080px;
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.35rem; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.brand {
  font-family: var(--display);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  font-size: 1.15rem;
  max-width: 11em;
}
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: .85rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .9rem;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink); color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }
.btn[disabled], .btn.sold-out {
  background: #9c9494; border-color: #9c9494; color: #fff;
  cursor: not-allowed; transform: none;
}

/* Hero */
.hero img { width: 100%; height: clamp(220px, 38vw, 520px); object-fit: cover; }
.page-title { text-align: center; margin: 3rem 0 2.5rem; }

/* Sections */
section { padding: 3rem 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); }
.facts { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { background: var(--blush-light); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; }
.video video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  background: var(--blush-light);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  text-align: center;
}
.card p { margin: 0; }
.section-title { text-align: center; margin-bottom: 1.8rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; background: #fff; }
.review blockquote { margin: 0 0 .8rem; }
.stars { letter-spacing: .15em; }

.gallery-track {
  display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  padding-bottom: .9rem; scrollbar-width: thin; scrollbar-color: var(--blush) transparent;
}
.gallery-track img {
  flex: 0 0 auto; width: auto; height: clamp(220px, 28vw, 360px); max-width: 88%;
  object-fit: cover; border-radius: var(--radius); background: var(--blush-light); scroll-snap-align: start;
}
.gallery-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gallery-nav { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: .8rem; }
.gallery-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 .15rem;
}
.gallery-nav button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.gallery-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.gallery-nav button:disabled { opacity: .3; cursor: default; }
.gallery.has-nav .gallery-hint { display: none; }
.gallery-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }

/* Shop */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.product-card img { aspect-ratio: 1; object-fit: contain; width: 100%; opacity: .75; }
.product-card .info { padding: 1rem 1.2rem 1.3rem; }
.product-card h2 { font-family: var(--body); text-transform: none; font-size: 1rem; margin: 0 0 .2rem; }
.price { color: var(--muted); margin: 0 0 .7rem; }
.badge {
  display: inline-block; background: var(--ink); color: #fff;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}
.product-card .badge { position: absolute; top: .9rem; left: .9rem; }
.sold-note { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* Product page */
.crumbs { font-size: .8rem; color: var(--muted); margin: 2rem 0 1.5rem; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; padding-bottom: 3rem; }
.product-images { display: grid; gap: 1rem; }
.product-images img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.product h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.product .price { font-size: 1.2rem; color: var(--ink); }

/* Text pages */
.prose { max-width: 760px; margin: 0 auto; padding: 3rem 0 4rem; }
.prose h1 { margin-bottom: 1.5rem; }
.prose h4 { font-family: var(--body); text-transform: none; font-size: 1.05rem; margin-top: 2rem; }
.prose p { font-weight: 500; }

/* Contact form */
.contact-form { display: grid; gap: .35rem; margin: 2rem 0; }
.contact-form label { font-size: .9rem; margin-top: .8rem; }
.contact-form .req { color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 500; width: 100%;
  padding: .75rem .9rem; border: 1.5px solid #cfc5c5; border-radius: 10px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.contact-form .btn { justify-self: start; margin-top: 1.2rem; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdeceb; border: 1px solid #f1b8b3; color: #8a1c12; border-radius: 10px; padding: .8rem 1rem; margin: 0 0 .5rem; }
.form-error[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--blush); margin-top: 3rem; padding: 2.5rem 0 2rem; font-size: .85rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.site-footer .logo img { width: 110px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.social { display: flex; gap: .6rem; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(0, 0, 0, .15); padding-top: 1.2rem; color: var(--ink-soft); }

/* Mobile */
@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; gap: .4rem 1rem; padding: .7rem 0; }
  .header-cta { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 1.1rem; padding-bottom: .2rem; }
  .nav a { white-space: nowrap; }
  .split, .product { grid-template-columns: 1fr; gap: 1.8rem; }
  .features, .reviews { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-nav { justify-content: center; }
}
