/* ==========================================================================
   Allen — Custom Leatherwork
   Palette taken from the photographs:
   veg-tan blond, saddle/cognac, antiqued dark brown, black leather,
   turquoise beads, red stitching thread.
   ========================================================================== */

:root {
  --paper: #f4ecdd;          /* warm veg-tan paper ground */
  --paper-deep: #ead9bd;     /* cased-leather tint for panels */
  --ink: #29190f;            /* near-black brown, like antiqued carving */
  --ink-soft: #5f4832;       /* mid brown for secondary text */
  --saddle: #7a4a21;         /* saddle / cognac */
  --dark: #1e130b;           /* dark section ground (black leather) */
  --dark-2: #2a1c11;         /* dark section surface */
  --cream: #efe3cd;          /* light text on dark */
  --cream-soft: #c9b394;     /* muted light text on dark */
  --stitch: #b23b2e;         /* red thread */
  --turq: #2f8f8f;           /* turquoise bead accent */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --gap: clamp(1.25rem, 2.5vw, 2rem);   /* single gutter used by every image grid */
  --cap-h: 2.9em;                        /* uniform 2-line caption slot in aligned rows */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: inherit; }

/* ---- skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 200; font-family: var(--sans);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---- small caps plate labels (maker's-catalog numbering) ---- */
.plate-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stitch);
  margin-bottom: 1rem;
}
.plate-label.light { color: var(--turq); }

/* ---- stitch rule: the red thread from the wallets, as a divider ---- */
.stitch-rule {
  height: 0;
  border-top: 3px dashed var(--stitch);
  opacity: 0.55;
  margin: 0 var(--pad);
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--stitch); border-color: var(--stitch); color: #fff; }

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem var(--pad);
  flex-wrap: wrap;
}
.wordmark a { text-decoration: none; display: block; }
.wordmark-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  line-height: 1;
}
.wordmark-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav a:hover { border-bottom-color: var(--stitch); }
.site-nav .nav-cta {
  border: 2px solid var(--ink);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.nav-toggle { display: none; }

/* ==========================================================================
   HERO — big type left, monogram wallet tall right, bear-pendant detail offset
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vh, 5rem) var(--pad) clamp(3rem, 8vh, 6rem);
}
.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin-bottom: 1.4rem;
}
.hero-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}
/* A true pair: two equal images, identical width and height, tops and
   bottoms flush. Capped so the pair always fits the viewport. */
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
  max-width: min(100%, calc(62vh * 1.5 + var(--gap)), 46rem);
  justify-self: end;
}
.hero-main { grid-column: 2; grid-row: 1; }
.hero-main img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 45%; width: 100%; }
.hero-detail { grid-column: 1; grid-row: 1; }
.hero-detail img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.hero-images figcaption { min-height: var(--cap-h); }

figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
  line-height: 1.45;
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section { padding: clamp(3.5rem, 9vh, 7rem) var(--pad); }
.section-intro {
  max-width: 34rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.section-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 1rem;
}
.section-intro p { color: var(--ink-soft); }

/* gallery-linked figures */
.gl { cursor: zoom-in; }
.gl img { transition: filter 0.25s ease; }
.gl:hover img { filter: brightness(1.06); }

/* ==========================================================================
   No. 01 — TOOLED: skull panel dominates, wallet rides beside
   ========================================================================== */
.tooled { background: var(--paper-deep); }
/* Single feature image, capped to a disciplined width. */
.tooled-showcase { max-width: 56rem; }
.tooled-showcase img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 46%;
  width: 100%;
}
.tooled-side {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: baseline;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.tooled-note {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--stitch);
  padding-left: 1.2rem;
  max-width: 26rem;
}
.tooled-note-2 {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 20rem;
}

/* ==========================================================================
   No. 02 — WALLETS: outside / inside pairing, offset baselines
   ========================================================================== */
/* Two views of one object: identical width, height, top, and bottom. */
.wallet-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
  max-width: 62rem;
}
.wallet-pair figcaption { min-height: var(--cap-h); }
.wallet-out img,
.wallet-in img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.wallet-out img { object-position: 50% 42%; }

/* ==========================================================================
   No. 03 — BELTS & CASES: one big group shot anchors three supporting pieces
   ========================================================================== */
.carry { background: var(--paper-deep); }
/* Clean three-column strip: identical width, height, ratio, and edges. */
.carry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.carry-grid figcaption { min-height: var(--cap-h); }
.carry-grid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.carry-belt img { object-position: 42% 48%; }
.carry-cuff img { object-position: 50% 42%; }

/* ==========================================================================
   No. 04 — STONE & BEAD: dark room, the jewelry glows
   ========================================================================== */
.dark {
  background: var(--dark);
  color: var(--cream);
}
.dark .section-intro p { color: var(--cream-soft); }
.dark figcaption { color: var(--cream-soft); }

.triptych { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.triptych-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream-soft);
  margin-bottom: 1.2rem;
}
.triptych-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.triptych-row figcaption { min-height: var(--cap-h); }
.triptych-row img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 55%; width: 100%; }

/* Second row mirrors the triptych exactly: same three columns, same
   dimensions, same ratio, same gaps. A gallery wall, not a collage. */
.stone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.stone-grid figcaption { min-height: var(--cap-h); }
.stone-grid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.stone-wide img { object-position: 42% 50%; }

/* ==========================================================================
   No. 05 — THE CRAFT: raw leather, image and words side by side
   ========================================================================== */
.craft {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.craft-img { max-width: 30rem; }
.craft-img img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 38%; width: 100%; }
.craft-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1.1rem; }
.craft-text > p { color: var(--ink-soft); max-width: 32rem; }
.craft-steps {
  list-style: none;
  margin: 1.8rem 0;
  border-top: 1px solid rgba(41, 25, 15, 0.2);
}
.craft-steps li {
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid rgba(41, 25, 15, 0.2);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.craft-steps span {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.15rem;
  color: var(--ink);
  margin-right: 0.5rem;
}
.craft-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink);
}

/* ==========================================================================
   CUSTOM — the ask
   ========================================================================== */
.custom {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.custom-text h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1.1rem; }
.custom-text p { color: var(--ink-soft); max-width: 30rem; }

.inquiry {
  background: var(--paper-deep);
  border: 3px dashed var(--stitch);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.4rem;
}
.form-note:empty { display: none; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.field label .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.field label span[aria-hidden] { color: var(--stitch); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(41, 25, 15, 0.35);
  padding: 0.75rem 0.85rem;
  min-height: 44px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--turq); outline-offset: 1px;
}
.btn-submit { width: 100%; }

/* ==========================================================================
   ABOUT — modest by design
   ========================================================================== */
/* Environmental portrait of the maker, uncropped, image leading. */
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  background: var(--paper-deep);
}
.about-text h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.about-text p { color: var(--ink-soft); max-width: 30rem; margin-bottom: 0.9rem; }
.about-img { max-width: 46rem; }
.about-img img { width: 100%; height: auto; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot { padding-bottom: 2.5rem; }
.site-foot .stitch-rule { margin-bottom: 2.5rem; }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--pad);
}
.foot-mark { font-family: var(--serif); font-size: 1.1rem; }
.foot-mark span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot-note { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; max-width: 26rem; }
.foot-top { font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.foot-top:hover { color: var(--stitch); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 9, 4, 0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lb-figure { max-width: min(92vw, 1100px); max-height: 90vh; }
.lb-figure img {
  max-height: 80vh; max-width: 100%; width: auto; margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.lb-figure figcaption { color: var(--cream-soft); text-align: center; margin-top: 0.8rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none; border: 2px solid rgba(239, 227, 205, 0.4);
  color: var(--cream); font-size: 1.4rem; line-height: 1;
  width: 48px; height: 48px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--cream); background: rgba(239,227,205,0.12); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   REVEAL (subtle; disabled under reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero-text { order: 1; margin-bottom: 1.5rem; }
  .hero-images { order: 2; max-width: 34rem; }
  .custom { grid-template-columns: 1fr; }
  .craft { grid-template-columns: 1fr; }
  .craft-img { max-width: 34rem; }
  .about { grid-template-columns: 1fr; }
  .about-img { max-width: 34rem; }
  .tooled-side { flex-direction: column; gap: 1.5rem; }
}


@media (max-width: 760px) {
  .site-head { padding: 1rem var(--pad); }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: none; border: 2px solid var(--ink);
    font: inherit; font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.5rem 0.9rem; cursor: pointer; min-height: 44px;
  }
  .nav-toggle-bar {
    display: block; width: 18px; height: 2px; background: var(--ink);
    box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
  }
  .site-nav ul {
    display: none;
    position: absolute; right: var(--pad); top: 4.6rem;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border: 2px solid var(--ink);
    z-index: 50; min-width: 15rem;
    box-shadow: 0 14px 30px rgba(30,19,11,0.25);
  }
  .site-nav ul.open { display: flex; }
  .site-nav ul li a { display: block; padding: 0.9rem 1.2rem; border-bottom: 1px solid rgba(41,25,15,0.15); }
  .site-nav .nav-cta { border: none; background: var(--ink); color: var(--paper); }

  .hero-images { max-width: none; }

  /* Groups simplify to clean stacks and equal two-ups on mobile. */
  .wallet-pair { grid-template-columns: 1fr; }

  .carry-grid { grid-template-columns: 1fr; }

  .triptych-row { grid-template-columns: 1fr; }

  .stone-grid { grid-template-columns: 1fr; }

  .craft { grid-template-columns: 1fr; }
  .custom { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .about-img { max-width: none; }

  .lb-prev, .lb-next { top: auto; bottom: 1.2rem; transform: none; }
  .lb-prev { left: 1.2rem; } .lb-next { right: 1.2rem; }
}
