/* Gem Essence — barebone stylesheet. Change the colours in :root to re-theme the whole site. */
:root {
  --ink: #14211d;
  --emerald: #0f3d33;
  --gold: #b8924a;
  --gold-dark: #8f6f33;
  --cream: #faf7f1;
  --paper: #ffffff;
  --muted: #5d6b66;
  --line: #e4ded1;
  --radius: 10px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--emerald); }
a:hover { color: var(--gold-dark); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold-dark); font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--emerald); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--gold); }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-color: var(--gold); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--emerald); color: #fff; text-decoration: none; font-weight: 500; border: 1px solid var(--emerald); cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--emerald); }
.btn.ghost:hover { background: var(--emerald); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1b1608; }
.btn.gold:hover { background: var(--gold-dark); color: #fff; }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.dark { background: var(--emerald); color: #eef3f0; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #d9bd83; }
.hero { padding: 96px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, #1d6a58 0%, transparent 60%), var(--emerald); color: #fff; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { color: #cfe0d9; }
.hero .eyebrow { color: #d9bd83; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-head { padding: 56px 0 24px; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }

/* Product cards: the gem is drawn in CSS so no images are needed to start */
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(160deg, #f4efe4, #e9e2d2); }
.product .photo img { width: 100%; height: 100%; object-fit: cover; }
.gem { width: 96px; height: 96px; clip-path: polygon(25% 8%, 75% 8%, 100% 38%, 50% 94%, 0 38%); background:
  linear-gradient(115deg, rgba(255,255,255,.55) 0 18%, transparent 18% 100%),
  linear-gradient(200deg, rgba(0,0,0,.18), transparent 60%), var(--c, #888); }
.product .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { margin: 0; font-size: 1.35rem; }
.product .meta { color: var(--muted); font-size: .9rem; }
.product .price { font-weight: 600; margin-top: auto; padding-top: 10px; }
.product .btn { margin-top: 12px; text-align: center; padding: 9px 18px; font-size: .92rem; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: #f1ead9; color: var(--gold-dark); padding: 2px 9px; border-radius: 99px; width: fit-content; }

/* Filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.pill { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 18px; cursor: pointer; font: inherit; font-size: .92rem; color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }

/* Forms */
form { display: grid; gap: 16px; max-width: 560px; }
label { font-size: .9rem; font-weight: 500; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .pill:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
textarea { min-height: 140px; resize: vertical; }
.note { font-size: .85rem; color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.9rem; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c4bf; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #e6dcc3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .legal { border-top: 1px solid #2c3a35; margin-top: 32px; padding-top: 18px; font-size: .82rem; }

/* Mobile */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
