/* Colours and layout follow the Shopify "Dawn" theme the store used. */
:root {
  --tan: #d39f5e;
  --ink: #121212;
  --brown: #3b1f14;
  --muted: #5c5c5c;
  --line: #e6e1d9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-weight: 400; line-height: 1.25; }
h1 { font-size: 2rem; margin: 2rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
main { padding-bottom: 3rem; }

/* Header */
.site-header { background: var(--tan); }
.header-inner { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo img { display: block; width: 210px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { text-decoration: none; font-size: 0.95rem; padding: 4px 0; color: var(--brown); }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.button {
  display: inline-block;
  margin: 6px 4px;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.button:hover { opacity: 0.85; }
.button.light { background: #fff; color: var(--ink); }
.button.outline { background: transparent; border: 2px solid #fff; color: #fff; }

/* Home */
.notice { text-align: center; padding: 1.5rem 0 2.5rem; }
.notice h1 { margin-top: 1rem; }
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
  /* darken the photo so the white text stays readable */
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.5);
}
.hero h2 { font-size: 2.1rem; margin-top: 0; }
.video { margin-top: 2rem; }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Product grid */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 16px;
}
.card a { text-decoration: none; display: block; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3f0ea; }
.card-title { display: block; margin-top: 10px; font-size: 0.85rem; line-height: 1.4; }
.card a:hover .card-title { text-decoration: underline; }
.price { display: block; margin-top: 6px; }
.price.big { font-size: 1.3rem; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-top: 2rem; }
.product h1 { margin-top: 0; font-size: 1.7rem; }
#main-image { display: block; width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.variants { padding-left: 1.2rem; color: var(--muted); }
.closed-box { margin: 1.5rem 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: #faf6ef; }
.closed-box p { margin-top: 0; }
.closed-box .button { margin-left: 0; }

/* Text pages (content written in the Shopify editor) */
.rte { overflow-wrap: anywhere; }
.rte img { border-radius: 4px; }
.rte a > img { max-width: 240px; } /* linked images were thumbnails in the old site */
.rte iframe { max-width: 100%; }
.rte table { display: block; overflow-x: auto; border-collapse: collapse; }
.rte td, .rte th { border: 1px solid var(--line); padding: 6px 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1rem 0 2rem; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 48px; }
.site-footer h2 { font-size: 1.05rem; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.social a { margin-right: 14px; }
.copyright { margin-top: 2rem; font-size: 0.8rem; }

@media (max-width: 750px) {
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 3rem 0; }
  .hero h2 { font-size: 1.6rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
