/* Louise Ibbs Jewellery Design — shared styles
   Palette: workbench stone, oxidised patina, warm brass
*/

:root {
  --ivory: #FFFFFF;
  --ivory-deep: #F4F4F2;
  --ink: #211E1B;
  --charcoal: #3A3632;
  --stone: #C9C2B4;
  --stone-line: #E4E1DA;
  --verdigris: #5C7A6B;
  --verdigris-deep: #445c50;
  --brass: #B8935A;
  --brass-light: #D3B888;

  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;

  --max: 1180px;
  --edge: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--charcoal); max-width: 60ch; }

a { color: inherit; text-decoration: none; }

img, .ph { display: block; width: 100%; }

::selection { background: var(--brass-light); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--verdigris);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdigris-deep);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--edge); }

/* ---------- Hallmark stamp — signature device ----------
   A small stamped badge, echoing an assay office hallmark
   punched into precious metal. Used as a numbering /
   divider / authenticity mark throughout the site. */
.stamp {
  --s: 44px;
  width: var(--s);
  height: var(--s);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--verdigris-deep);
  transform: rotate(-1.5deg);
}
.stamp::before,
.stamp::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.stamp::before { top: 4px; left: 4px; right: 4px; height: 1px; opacity: .55;}
.stamp::after { bottom: 4px; left: 4px; right: 4px; height: 1px; opacity: .55;}
.stamp span { position: relative; top: 1px; }
.stamp.small { --s: 30px; font-size: 0.52rem; }
.stamp.light { color: var(--brass-light); }

.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
}
.divider .rule {
  flex: 1;
  height: 1px;
  background: var(--stone-line);
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--edge);
  background: rgba(33,30,27,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--ivory);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--display);
  color: var(--ivory);
}
.brand .name { font-size: 1.15rem; font-weight: 600; }
.brand .sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  display: none;
}
@media (min-width: 640px) { .brand .sub { display: inline; } }

.nav-links {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2.2rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
}
.nav-links a {
  position: relative;
  padding-bottom: 3px;
  color: var(--ivory);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 1px;
  background: var(--brass-light);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--brass-light); }

.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--ink);
    flex-direction: column;
    padding: 1.5rem var(--edge) 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--ivory);
    border-radius: 3px;
    padding: 0.4rem 0.6rem;
    font-family: var(--mono);
    font-size: 0.7rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn.primary { background: var(--ink); color: var(--ivory); }
.btn.primary:hover { background: var(--verdigris-deep); border-color: var(--verdigris-deep); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); }
.btn.on-dark { border-color: var(--stone); color: var(--ivory); }
.btn.on-dark:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  background: linear-gradient(155deg, #2b2723 0%, #1c1a17 60%, #171512 100%);
}
.hero .ph { position: absolute; inset: 0; opacity: 0.9; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,18,16,0.82) 0%, rgba(20,18,16,0.15) 55%, rgba(20,18,16,0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 3.5rem var(--edge) 4rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: var(--brass-light); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--ivory);
  max-width: 14ch;
  margin-top: 0.4rem;
}
.hero .lede { color: var(--stone); max-width: 46ch; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---------- Placeholder photo blocks ----------
   Stand in for real photography. Softly textured,
   labelled, ready to be swapped for real images. */
.ph {
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 10px),
    radial-gradient(120% 100% at 20% 15%, #4b4640 0%, #33302b 55%, #201e1b 100%);
  position: relative;
  border-radius: 2px;
}
.ph.light {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 2px, transparent 2px 10px),
    radial-gradient(120% 100% at 25% 20%, #ded6c4 0%, #cdc4ae 55%, #b7ab90 100%);
}
.ph.wide { aspect-ratio: 16/9; }
.ph.square { aspect-ratio: 1/1; }
.ph.portrait-tall { aspect-ratio: 3/4.4; }
.ph .ph-label {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem; right: 0.9rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(240,235,225,0.62);
  text-transform: uppercase;
}
.ph.light .ph-label { color: rgba(33,30,27,0.55); }

.brand-logo { 
  height: 34px;
  width: auto;
  display: block;
} 

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* ---------- Work grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.piece { position: relative; }
.piece figure { margin: 0; }
.piece .meta {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1rem;
}
.piece .meta-text { flex: 1; }
.piece h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.piece .material {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--verdigris-deep);
  margin-bottom: 0.4rem;
  display: block;
}
.piece p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Dark band ---------- */
.band-dark {
  background: var(--ink);
  color: var(--ivory);
}
.band-dark p { color: var(--stone); }
.band-dark h2, .band-dark h3 { color: var(--ivory); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--stone-line);
  padding: 3rem var(--edge) 2.4rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-inner .fine {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.footer-links { display: flex; gap: 1.4rem; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--stone-line);
}
.page-head .eyebrow { margin-bottom: 0.6rem; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.page-head .lede { max-width: 56ch; font-size: 1.05rem; color: var(--charcoal); }

/* ---------- Form (Contact) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ivory-deep);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--verdigris);
  outline-offset: 1px;
  background: var(--ivory);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-top: 1rem;
}
.form-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-top: 1rem;
  display: none;
}
.form-status.show { display: block; }

/* ---------- Process list (Artisan) ---------- */
.process {
  display: grid;
  gap: 2.2rem;
}
.process-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.2rem;
}
.process-item .body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.process-item .body p { font-size: 0.95rem; }

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 32ch;
  margin: 0;
}
.pull-quote cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verdigris-deep);
  margin-top: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}
