/* ==========================================================================
   GEM DIY LTD — warm-craft
   Paper, ochre, terracotta. Ledger rows and a specification rail,
   not a row of equal product cards.
   ========================================================================== */

:root {
  --bg: #f4efe4;
  --bg-alt: #ebe2d0;
  --bg-deep: #3c2c24;
  --ink: #2c221b;
  --ink-soft: #6d5848;
  --ink-invert: #f7f2e8;
  --accent: #c45c32;
  --accent-soft: #f3ddd0;
  --line: #ddcfbb;
  --ochre: #c4893a;
  --clay: #8d4030;
  --paper: #faf6ee;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-display: -0.03em;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent),
    0 18px 42px color-mix(in srgb, var(--ink) 8%, transparent);
  --container: 1140px;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.site-header__brand::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  border-radius: 4px;
  background:
    linear-gradient(var(--ink-invert), var(--ink-invert)) 0 0 / 42% 42% no-repeat,
    linear-gradient(var(--ink-invert), var(--ink-invert)) 100% 0 / 42% 42% no-repeat,
    linear-gradient(var(--ink-invert), var(--ink-invert)) 0 100% / 42% 42% no-repeat,
    linear-gradient(var(--ochre), var(--ochre)) 100% 100% / 42% 42% no-repeat,
    var(--accent);
}

.nav a[href="#visit"] {
  opacity: 1;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-invert);
  text-decoration: none;
}

/* --- HERO --- */
.gd-hero {
  padding-block: clamp(2.2rem, 4vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

.gd-hero__layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}

.gd-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--clay);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gd-hero h1 {
  max-width: 14ch;
}

.gd-hero .lede {
  max-width: 38em;
  margin-top: 1.1rem;
}

.gd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.gd-hero__photo {
  position: relative;
}

.gd-hero__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.gd-ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: -1.4rem;
  margin-left: 1rem;
  position: relative;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-invert);
  font-size: var(--step--1);
  font-weight: 650;
  box-shadow: var(--shadow);
}

.gd-ticket i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ochre);
  font-style: normal;
}

.gd-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.gd-facts div {
  min-width: 0;
}

.gd-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--clay);
}

.gd-facts span {
  display: block;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* --- SPECIFICATION RAIL --- */
.gd-rail {
  background: var(--bg-deep);
  color: var(--ink-invert);
}

.gd-rail .lede {
  max-width: 42em;
  margin-top: 0.8rem;
}

.gd-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  counter-reset: step;
}

.gd-step {
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--ink-invert) 28%, transparent);
}

.gd-step em {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 650;
  font-size: var(--step-1);
  color: var(--ochre);
}

.gd-step h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.gd-step p {
  color: color-mix(in srgb, var(--ink-invert) 78%, transparent);
  font-size: var(--step--1);
}

/* --- TWO DESKS --- */
.gd-desk__head {
  max-width: 38em;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.gd-desk__head .lede {
  margin-top: 0.7rem;
}

.gd-panels {
  display: grid;
  gap: var(--gap);
}

.gd-panel {
  padding: clamp(1.3rem, 2vw, 1.8rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.gd-panel--maker {
  background: var(--accent-soft);
}

.gd-panel--trade {
  background: var(--bg-deep);
  color: var(--ink-invert);
}

.gd-panel--trade p {
  color: color-mix(in srgb, var(--ink-invert) 80%, transparent);
}

.gd-panel .eyebrow {
  margin-bottom: 0.55rem;
}

.gd-panel--trade .eyebrow {
  color: var(--ochre);
}

.gd-panel ul {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.gd-panel li {
  padding-left: 1rem;
  position: relative;
  font-size: var(--step--1);
}

.gd-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ochre);
}

/* --- STOCK LEDGER --- */
.gd-stock {
  background: var(--bg-alt);
}

.gd-stock__layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.gd-stock__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gd-stock__photo figcaption {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.gd-line {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.gd-line:last-child {
  border-bottom: 1px solid var(--line);
}

.gd-line__no {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 650;
  font-size: var(--step--1);
}

.gd-line h3 {
  margin: 0.2rem 0 0.4rem;
}

.gd-line p + p {
  margin-top: 0.55em;
}

/* --- YARD --- */
.gd-yard__head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
  max-width: 36em;
}

.gd-mosaic {
  display: grid;
  gap: var(--gap);
}

.gd-mosaic figure {
  margin: 0;
}

.gd-mosaic img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gd-mosaic figcaption {
  margin-top: 0.55rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- ABOUT --- */
.gd-about {
  background: var(--paper);
}

.gd-about__layout {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
}

.gd-about img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.gd-about .lede {
  margin: 0.8rem 0 1rem;
}

/* --- ROUTE --- */
.gd-route__head {
  max-width: 36em;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.gd-route__head .lede {
  margin-top: 0.7rem;
}

.gd-tags {
  display: grid;
  gap: 0.8rem;
}

.gd-tag {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border-left: 4px solid var(--ochre);
}

.gd-tag h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
}

/* --- FAQ --- */
.gd-faq {
  background: var(--bg-alt);
}

.gd-faq__layout {
  display: grid;
  gap: var(--gap);
}

.gd-faq__intro .lede {
  margin-top: 0.7rem;
}

.gd-faq details {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}

.gd-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.gd-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.gd-faq summary::-webkit-details-marker {
  display: none;
}

.gd-faq summary h3 {
  font-size: var(--step-1);
}

.gd-faq summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--accent);
  font-size: var(--step-2);
  line-height: 1;
}

.gd-faq details[open] summary::after {
  content: "–";
}

.gd-faq details p {
  margin-top: 0.6rem;
  max-width: 46em;
  color: var(--ink-soft);
}

/* --- VISIT --- */
.gd-visit__layout {
  display: grid;
  gap: var(--gap);
}

.gd-card {
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.gd-card--deep {
  background: var(--bg-deep);
  color: var(--ink-invert);
  box-shadow: none;
}

.gd-card--deep a {
  color: var(--ink-invert);
}

.gd-card h2 {
  margin-bottom: 0.6rem;
}

.gd-address {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
  font-style: normal;
}

.gd-address a {
  font-weight: 650;
}

.gd-address span {
  display: block;
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--ink-invert) 72%, transparent);
  font-size: var(--step--1);
}

.gd-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.gd-form select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.gd-form .btn {
  justify-self: start;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-deep);
  color: var(--ink-invert);
  border-top: none;
}

.gd-foot {
  display: grid;
  gap: 1.5rem;
}

.gd-foot a {
  color: var(--ink-invert);
  text-decoration: none;
}

.gd-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.gd-foot p {
  color: color-mix(in srgb, var(--ink-invert) 74%, transparent);
  font-size: var(--step--1);
}

.site-footer .site-footer__bottom {
  border-top-color: color-mix(in srgb, var(--ink-invert) 20%, transparent);
  color: color-mix(in srgb, var(--ink-invert) 65%, transparent);
}

@media (min-width: 700px) {
  .gd-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .gd-steps {
    grid-template-columns: 1fr 1fr;
  }

  .gd-panels,
  .gd-tags,
  .gd-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .gd-visit__layout,
  .gd-faq__layout,
  .gd-about__layout,
  .gd-foot {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .gd-hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .gd-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .gd-stock__layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

  .gd-stock__photo {
    position: sticky;
    top: 96px;
  }

  .gd-about__layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  }

  .gd-faq__layout {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .gd-visit__layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .gd-foot {
    grid-template-columns: 1.4fr 1fr 0.8fr;
  }
}

@media (max-width: 420px) {
  .gd-ticket {
    margin-left: 0;
  }

  .gd-hero__actions .btn {
    width: 100%;
  }
}
