:root {
  scrollbar-gutter: auto;
  --gutter: #e8ded0;
  --paper: #f7f2e9;
  --ink: #271e18;
  --accent: #ad4715;
  --panel: #ede1d1;
  --line: #d5c4b2;
  --spacing: max(clamp(1.25rem, 5vw, 5rem), calc((100% - 78rem) / 2));
}
body { font-family: system-ui, sans-serif; }
.site { max-width: none; }
.site:has(> header) { box-shadow: none; }
.site > header {
  position: relative;
  background: #1b1714;
  color: #fcf2e3;
  padding-block: .95rem;
  border-bottom-color: #795541;
}
.site > header :is(a, nav a[aria-current="page"]) { color: inherit; }
.site > header nav a:hover,
.site > header nav a[aria-current="page"] { color: #ff9d40; }
.site > header .logo {
  border: 0;
  min-height: 2.25rem;
  min-width: 0;
  font: 700 clamp(1.22rem, 2.2vw, 1.55rem)/1.2 Georgia, serif;
  letter-spacing: .035em;
}
.site > header .logo:not(.logo-custom) { padding-inline-start: .75rem; border-inline-start: 3px solid #f88623; }
.site > header nav { gap: .4rem 1.45rem; font-size: .9rem; }
.site > main > .hero {
  min-height: min(37.73585vw, 72vh);
  padding-block: clamp(1.75rem, 3vw, 3.5rem);
  display: grid;
  align-content: center;
  background: #171412;
  color: #fff5e8;
}
.site .hero:has(.hero-image)::before {
  background: linear-gradient(90deg, rgb(17 14 12 / 57%), rgb(17 14 12 / 24%) 56%, transparent 84%);
}
.hero-copy { width: min(52vw, 41rem); }
.hero h1 {
  font-size: clamp(3.4rem, 6.35vw, 6.5rem);
  line-height: .98;
  text-wrap: balance;
  font-weight: 600;
}
.forge-eyebrow {
  color: #ffa64f;
  margin: 0 0 1.25rem;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero [data-hero-subtext] {
  margin-top: 1.4rem;
  max-width: 40ch;
  color: #efe1d4;
  font-size: clamp(1rem, 1.65vw, 1.2rem);
}
.forge-actions, .forge-direct { display: flex; flex-wrap: wrap; gap: .65rem; }
.forge-actions { margin-top: 1.75rem; }
.site > main .button {
  min-height: 2.75rem;
  padding: .65rem 1.25rem;
  border: 1px solid #f49b55;
  border-radius: .5rem;
  font-size: .9rem;
  font-weight: 700;
}
.site > main > .weekly-special .button {
  min-height: 2.75rem;
  padding-inline: 1.15rem;
  border-radius: .25rem;
}
.forge-actions .button { margin: 0; }
.site > main .forge-actions .forge-secondary { border: 1px solid #f88623; background: transparent; color: #fff5e8; }
.site > main .forge-actions .forge-secondary:is(:hover, :focus-visible) { background: #ffb867; color: #2e1e15; }
.site > main > section:not(.hero, .weekly-special) { padding-block: clamp(2.6rem, 6vw, 5rem); }
.site > main > section:not(.hero, .weekly-special) > :is(h1, h2) {
  font-size: clamp(2.1rem, 4.4vw, 3.85rem);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.site > main > #products, .site > main > #about { background-color: var(--paper); }
.site > main > #markets { background-color: var(--panel); border-block: 1px solid var(--line); }
.site .products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); max-width: 62rem; }
.site .product {
  background: color-mix(in srgb, var(--paper) 78%, white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0;
  padding: clamp(.35rem, 1vw, .9rem);
}
.site .product h3 { font: 600 clamp(1.4rem, 2.5vw, 1.85rem)/1.15 var(--heading-font, Georgia, serif); }
.site .product p { max-width: 42ch; }
.site .market-preview { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); max-width: 58rem; }
.site .market-preview > li { border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; }
.site .contact-preview { background-color: var(--panel); }
.forge-direct a { border-bottom: 1px solid currentColor; font-weight: 700; }
.site .contact-form select { border: 1px solid var(--accent); border-radius: .35rem; padding: .7rem .8rem; font: inherit; color: var(--ink); background: white; }
.site > footer { background: #1b1714; color: #f2e4d3; padding-block: 1.75rem; }
.site > footer .social-links { background: #f2e4d3; width: fit-content; padding: .1rem .5rem; border-radius: .2rem; }
@media (max-width: 42rem) {
  .site > header > .storefront-menu-toggle { color: #f2e4d3; background: transparent; border-color: #b69078; }
  .site > header > .storefront-menu-toggle + nav > a { background: #30251e; color: #fcf2e3; border-color: #795541; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.4rem); }
  .hero [data-hero-subtext] { margin-top: .95rem; }
  .forge-actions { margin-top: 1.15rem; }
}

.site > header .logo.logo-custom {
  display: flex;
  gap: .7rem;
  align-items: center;
}
.site > header .logo.logo-custom img {
  width: calc(2.7rem * var(--logo-scale, 1));
  height: auto;
  max-height: none;
}
.site .forge-eyebrow { display: flex; align-items: center; gap: .65rem; }
.site .forge-eyebrow img { width: 2.25rem; max-height: 2.25rem; object-fit: contain; }
.site :is(.logo, .forge-eyebrow) img[src="/devlin-market-display.jpg"] {
  object-view-box: inset(1.5% 25.5% 61.5% 27.5%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .2rem;
}
.site > main > #gallery { background: var(--panel); border-block-start: 1px solid var(--line); }
.site #gallery .product-photo { width: 100%; height: auto; max-height: 32rem; object-fit: contain; background: #211a15; }
.site #products [data-product-preview] .product-photo[src="/devlin-market-display.jpg"] { display: none; }

@media (max-width: 47.999rem) {
  .site > main > .hero:has(.hero-image-preview) {
    min-height: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .site .hero:has(.hero-image-preview)::before { content: none; }
  .site .hero .hero-image-preview {
    position: relative;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    transform: none;
    object-position: var(--preview-mobile-position, 50% 50%);
  }
  .site .hero:has(.hero-image-preview) .hero-copy {
    grid-row: 2;
    width: auto;
    padding: 1.5rem var(--spacing) 2.5rem;
  }
}

/* Keep the artwork on the same side gutters as the storefront sections. */
.site .hero .hero-image-preview {
  inset-inline: var(--spacing);
  width: calc(100% - 2 * var(--spacing));
  transform: none;
}
@media (min-width: 48rem) {
  .site .hero .hero-image-preview {
    mask-image: linear-gradient(to right, transparent, #000 9%, #000 98%, transparent);
  }
}
@media (max-width: 47.999rem) {
  .site .hero:has(.hero-image-preview) { grid-template-rows: 62.5vw auto; }
  .site .hero .hero-image-preview {
    inset: auto;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 47.999rem) {
  .site .hero .hero-image-preview[src="/forge-hero.jpg"] {
    object-view-box: inset(0 0 37% 49%);
  }
}

.site [data-forge-gallery] .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-top: 1.9rem;
  max-width: none;
}
.site [data-forge-gallery] .products > .product {
  padding: 0;
  border: 0;
  border-radius: .75rem;
  overflow: hidden;
}
.site [data-forge-gallery] .product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.site [data-forge-gallery] .product h3 {
  margin: 1.1rem 1.2rem 0;
  font: 650 clamp(1.3rem, 2.2vw, 1.8rem)/1.15 var(--heading-font, Georgia, serif);
}
.site [data-forge-gallery] .product p { margin: .45rem 1.2rem 1.3rem; font-size: .93rem; }
@media (max-width: 42rem) {
  .site [data-forge-gallery] .products { grid-template-columns: 1fr; }
}

.site-home #about .about-content img {
  width: min(100%, 16rem);
  max-height: none;
  aspect-ratio: 1;
}

.site #products [data-product-preview] .product-photo {
  width: auto;
  max-width: 100%;
  max-height: 22rem;
  height: auto;
  object-fit: contain;
  border-radius: .35rem;
}

@media (max-width: 47.999rem) {
  .site > main .forge-actions { flex-wrap: nowrap; align-items: stretch; gap: .5rem; }
  .site > main .forge-actions .button:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: .7rem;
    font-size: clamp(.82rem, 3.5vw, .92rem);
    text-align: center;
  }
}

.site > main :is(.hero, .contact-preview, section) .button:not(.forge-secondary, :disabled) {
  background: linear-gradient(135deg, #ffc08a, #ff9d40 60%, #e77429);
  color: #2e1e15;
  box-shadow: inset 0 0 0 2px rgb(255 239 219 / 32%), 0 4px 0 rgb(46 30 21 / 30%);
}
.site > main :is(.hero, .contact-preview, section) .button:not(.forge-secondary, :disabled):is(:hover, :focus-visible) {
  background: linear-gradient(135deg, #ffd1a8, #ffae65 60%, #f88623);
  color: #2e1e15;
}

.site > header nav { gap: .45rem clamp(.35rem, 1.1vw, 1rem); }
.site > header nav a {
  padding: .65rem .88rem;
  border-radius: .5rem;
  color: #fcf2e3;
  font-weight: 500;
}
.site > header nav a:is([aria-current="page"], [href="/contact"], :hover, :focus-visible) {
  background: #342820;
  color: #fcf2e3;
  box-shadow: inset 0 -2px #ff9d40;
}
@media (max-width: 42rem) {
  .site > header > .storefront-menu-toggle + nav > a {
    background: transparent;
    border-color: transparent;
    border-radius: .5rem;
  }
  .site > header > .storefront-menu-toggle + nav > a:is([aria-current="page"], [href="/contact"], :hover, :focus-visible) {
    background: #342820;
    color: #fcf2e3;
  }
}
