/* Red Dot Engraving. One stylesheet, mobile first. Tokens from the rules file, section 3. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("../fonts/archivo-narrow-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rd-black: #000000;
  --rd-red: #FF0000;
  --rd-white: #FFFFFF;
  --rd-oak: #D9B98C;
  --rd-walnut: #5F4630;
  --rd-paper: #F6F1EA;
  --rd-smoke: #8F8A84;
  --rd-ink90: #1A1A1A;
  --rd-line: #E1DED9;
  --rd-cap: #6B665F; /* caption grey on light grounds: --rd-smoke is 3.4:1 on white, this is 5.6:1 */
  --rd-font: "Archivo", Arial, sans-serif;
  --rd-font-narrow: "Archivo Narrow", Arial, sans-serif;
  --gutter: 20px;
  --header-h: 60px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--rd-font);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--rd-ink90);
  background: var(--rd-white);
}
body.dark-page { background: var(--rd-black); color: var(--rd-white); --rd-cap: var(--rd-smoke); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
address { font-style: normal; margin-bottom: 1em; }
:focus-visible { outline: 3px solid var(--rd-red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--rd-black); color: var(--rd-white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* Type */
h1 { font-weight: 800; font-stretch: 122%; line-height: 1.05; font-size: clamp(1.9rem, 6.4vw, 3.6rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
h2 { font-weight: 700; font-stretch: 108%; line-height: 1.15; font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
h3 { font-weight: 600; font-stretch: 105%; font-size: 1.2rem; line-height: 1.25; }
.lede { font-size: 1.15rem; max-width: 60ch; }
.prose { max-width: 70ch; }
.prose > *:last-child { margin-bottom: 0; }

/* Buttons and links */
.cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0.85rem 1.4rem;
  background: var(--rd-red); color: var(--rd-white); text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--rd-font); font-weight: 700; font-stretch: 108%; font-size: 1rem; letter-spacing: 0.02em; line-height: 1.1;
}
.cta:hover { background: #D90000; }
.cta:focus-visible { outline-color: var(--rd-black); }
.dark-page .cta:focus-visible, .site-footer .cta:focus-visible { outline-color: var(--rd-white); }
.cta-bar { display: flex; width: 100%; min-height: 56px; font-size: 1.2rem; } /* 19px bold counts as large text, so white on red passes at 3:1 */
.cta-block { margin-top: 32px; max-width: 560px; }
.ulink {
  font-weight: 700; font-stretch: 108%; text-decoration: underline;
  text-decoration-color: var(--rd-red); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.ulink:hover { text-decoration-color: currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--rd-white); color: var(--rd-black); border-bottom: 1px solid var(--rd-line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; color: var(--rd-black); }
.logo-img { max-height: 36px; width: auto; }
.logo-tmp { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-stretch: 125%; font-size: 0.72rem; line-height: 1.1; letter-spacing: 0; }
.logo-tmp span { max-width: 5.5em; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--rd-red); }
.primary ul { list-style: none; display: flex; gap: 28px; }
.primary a { text-decoration: none; font-weight: 600; font-stretch: 105%; padding: 8px 0; border-bottom: 3px solid transparent; }
.primary a:hover { border-bottom-color: var(--rd-black); }
.primary a[aria-current="page"] { border-bottom-color: var(--rd-red); }
.cta-nav { min-height: 40px; padding: 0.55rem 0.8rem; font-size: 0.72rem; }
@media (min-width: 1100px) { .cta-nav { font-size: 1.17rem; padding: 0.6rem 1.2rem; min-height: 48px; } }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.burger i, .burger i::before, .burger i::after { content: ""; position: absolute; left: 10px; right: 10px; height: 3px; background: var(--rd-black); }
.burger i { top: 20px; }
.burger i::before { top: -8px; left: 0; right: 0; }
.burger i::after { top: 8px; left: 0; right: 0; }
.menu-open .burger i { background: transparent; }
.menu-open .burger i::before { top: 0; transform: rotate(45deg); }
.menu-open .burger i::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .js .burger { display: block; }
  .js .primary { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--rd-black); color: var(--rd-white); padding: 24px var(--gutter); overflow-y: auto; }
  .js.menu-open .primary { display: block; }
  .js.menu-open { overflow: hidden; }
  .primary ul { flex-direction: column; gap: 0; }
  .primary a { display: block; font-size: 1.7rem; font-weight: 700; font-stretch: 115%; padding: 18px 0; border-bottom: 1px solid #2a2a2a; color: var(--rd-white); }
  .primary a[aria-current="page"] { border-bottom-color: var(--rd-red); }
  .primary a:hover { border-bottom-color: #2a2a2a; }
  .no-js-fallback .primary ul { flex-wrap: wrap; gap: 16px; }
  html:not(.js) .bar { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .primary { width: 100%; order: 3; }
  html:not(.js) .primary ul { flex-wrap: wrap; gap: 6px 18px; }
  html:not(.js) .primary a { font-size: 0.95rem; }
}
@media (min-width: 900px) {
  .cta-nav { font-size: 0.85rem; padding: 0.7rem 1.1rem; min-height: 44px; }
  .logo-img { max-height: 48px; }
  .logo-tmp { font-size: 1.05rem; }
  .logo-tmp span { max-width: none; }
  .dot { width: 16px; height: 16px; }
}

/* Placeholders (solid oak, never stock) */
.ph { display: block; width: 100%; height: 100%; min-height: 100%; background: var(--rd-oak); }
.ph-wide { aspect-ratio: 16 / 9; height: auto; }
.ph-square { aspect-ratio: 1 / 1; height: auto; }

/* Customization notice bar */
.custom-bar { background: var(--rd-oak); color: var(--rd-black); font-size: 0.9rem; }
.custom-bar p { margin: 0; padding: 9px 0; font-weight: 500; }

/* Page heads */
.page-head { padding-block: 48px 24px; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin: 16px 0 0; }
@media (min-width: 900px) { .page-head { padding-block: 72px 32px; } }

/* Hero: the one deliberate motion moment on the site */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 72svh; background: var(--rd-oak); color: var(--rd-black); overflow: hidden; }
.hero.has-photo { color: var(--rd-white); background: var(--rd-black); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }
.hero-copy { position: relative; z-index: 2; padding-block: 56px 48px; }
.hero h1 { font-size: clamp(2rem, 7.4vw, 5rem); max-width: 16ch; }
.hero-sub { font-size: 1.15rem; max-width: 46ch; margin: 20px 0 0; }
.hero-tag { font-weight: 700; font-stretch: 112%; margin: 12px 0 0; }
.hero .cta { display: inline-flex; margin-top: 28px; width: auto; min-width: 300px; }
@media (max-width: 480px) { .hero .cta { display: flex; width: 100%; min-width: 0; } }
.hero h1 { animation: rd-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .hero { min-height: 82vh; } }

/* Two doors */
.doors { display: grid; }
.door { padding: 56px var(--gutter); display: flex; }
.door-inner { width: 100%; max-width: 600px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
.door p { margin: 0; max-width: 46ch; }
.door h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; font-stretch: 120%; line-height: 1.05; }
.door-studio { background: var(--rd-paper); color: var(--rd-ink90); }
.door-fab { background: var(--rd-black); color: var(--rd-white); }
.door-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.door-thumbs a { display: block; aspect-ratio: 1 / 1; background: var(--rd-oak); }
.door-thumbs img, .door-thumbs .ph { width: 100%; height: 100%; object-fit: cover; }
.door-photo { aspect-ratio: 16 / 9; background: var(--rd-oak); }
.door .ulink { align-self: flex-start; font-size: 1.15rem; }
.door-fab .ulink:hover { text-decoration-color: var(--rd-white); }
@media (min-width: 900px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .door { min-height: 70vh; padding-block: 88px; }
  .door-studio .door-inner { margin-right: 0; margin-left: auto; }
  .door-fab .door-inner { margin-left: 0; margin-right: auto; }
}

/* Blocks */
.block { padding-block: 64px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.proof { background: var(--rd-paper); }
.banner { background: var(--rd-oak); color: var(--rd-black); padding-block: 44px; }
.banner p { margin: 0; font-weight: 700; font-stretch: 108%; font-size: clamp(1.15rem, 2.6vw, 1.6rem); max-width: 60ch; line-height: 1.35; }
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; gap: 64px; } }

/* Pillars */
.pillars { list-style: none; display: grid; gap: 28px; margin-top: 28px; }
.pillars li { position: relative; padding-left: 26px; }
.pillars li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px; border-radius: 50%; background: var(--rd-red); }
.pillars p { margin: 8px 0 0; }
@media (min-width: 700px) { .pillars { grid-template-columns: 1fr 1fr; gap: 36px 48px; } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

/* Product grid and cards */
.filters { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter) 6px; overflow-x: auto; scrollbar-width: thin; }
.filters a { flex: 0 0 auto; white-space: nowrap; text-decoration: none; padding: 9px 14px; border: 1px solid var(--rd-line); font-weight: 600; font-stretch: 105%; font-size: 0.95rem; }
@media (min-width: 900px) { .filters { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.filters a:hover { border-color: var(--rd-black); }
.filters a[aria-current="page"] { border-color: var(--rd-black); box-shadow: inset 0 -3px 0 var(--rd-red); }
.dark-page .filters a { border-color: #333; }
.dark-page .filters a:hover { border-color: var(--rd-white); }
.dark-page .filters a[aria-current="page"] { border-color: var(--rd-white); }
.finder { display: flex; gap: 8px; margin-bottom: 32px; max-width: 460px; }
.finder input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--rd-line); font: inherit; background: var(--rd-white); color: var(--rd-ink90); }
.finder button { padding: 0 16px; background: var(--rd-black); color: var(--rd-white); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card-link { display: block; text-decoration: none; }
.card-photo { display: block; aspect-ratio: 4 / 5; background: var(--rd-paper); overflow: hidden; }
.card-photo img, .card-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; }
.card-name { font-weight: 600; font-stretch: 105%; font-size: 1.05rem; line-height: 1.25; }
.card-link:hover .card-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-cat { font-family: var(--rd-font-narrow); font-weight: 500; font-size: 0.9rem; color: var(--rd-cap); letter-spacing: 0.02em; }
.tag-price { display: inline-block; background: var(--rd-red); color: var(--rd-white); font-family: var(--rd-font-narrow); font-weight: 600; font-size: 1.2rem; line-height: 1.2; padding: 3px 9px; }
.tag-lg { font-size: 1.5rem; padding: 4px 12px; }
.empty { padding-block: 32px; font-size: 1.1rem; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pager a, .pager span { display: inline-block; padding: 9px 14px; border: 1px solid var(--rd-line); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--rd-black); color: var(--rd-white); border-color: var(--rd-black); }
.dark-page .pager a, .dark-page .pager span { border-color: #333; }

/* Product page */
.product { display: grid; gap: 32px; padding-block: 32px 48px; }
.product-gallery { display: grid; gap: 12px; align-content: start; }
.pg-main, .pg-more { background: var(--rd-paper); }
.pg-main img, .pg-more img { width: 100%; height: auto; }
.crumb { font-family: var(--rd-font-narrow); font-weight: 500; margin-bottom: 10px; }
.product-info h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 16px; }
.product-info .tag-price { margin-bottom: 20px; }
.specs { margin: 24px 0; }
.specs div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rd-line); }
.specs dt { flex: 0 0 9.5rem; font-family: var(--rd-font-narrow); font-weight: 500; color: var(--rd-cap); letter-spacing: 0.02em; }
.specs dd { margin: 0; }
.custom-note { background: var(--rd-paper); padding: 16px 18px; font-size: 0.98rem; margin: 24px 0 0; }
.related { padding-block: 32px 72px; }
.related h2 { margin-bottom: 24px; }
@media (min-width: 900px) {
  .product { grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding-block: 48px 72px; }
  .product-info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* Fabrication */
.proj-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .proj-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; } }
@media (min-width: 900px) { .proj-3 { grid-template-columns: repeat(3, 1fr); } }
.proj-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.proj-photo { display: block; aspect-ratio: 16 / 9; background: var(--rd-oak); overflow: hidden; margin-bottom: 10px; }
.proj-photo img, .proj-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.proj-name { font-weight: 700; font-stretch: 108%; font-size: 1.25rem; }
.proj-link:hover .proj-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--rd-red); }
.proj-client { font-family: var(--rd-font-narrow); font-weight: 500; }
.proj-scope { color: var(--rd-cap); font-size: 0.95rem; }
.case-hero { aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; overflow: hidden; background: var(--rd-oak); }
.case-hero img, .case-hero .ph { width: 100%; height: 100%; object-fit: cover; }
.case { padding-block: 40px 72px; }
.case-head h1 { max-width: 18ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 24px 0 0; }
.case-meta dt { font-family: var(--rd-font-narrow); font-weight: 500; color: var(--rd-cap); font-size: 0.95rem; }
.case-meta dd { margin: 0; font-weight: 600; }
.case-sec { padding-top: 48px; max-width: 900px; }
.case-sec h2 { margin-bottom: 16px; }
.case-gallery { display: grid; gap: 12px; margin-top: 24px; }
.case-gallery img, .case-gallery .ph { width: 100%; }
@media (min-width: 900px) { .case-sec { max-width: none; } .case-sec > p, .case-sec > .prose { max-width: 70ch; } .case-gallery { grid-template-columns: 1fr 1fr; } }
.dark-page .site-footer { border-top: 1px solid #262626; }

/* About / contact / forms */
.about-photo { max-width: 1600px; margin-inline: auto; padding-inline: 0; }
.about-photo img, .about-photo .ph { width: 100%; }
.contact { display: grid; gap: 40px; padding-block: 24px 72px; }
.contact h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.contact .phone { font-size: 1.4rem; font-weight: 700; font-stretch: 112%; margin: 16px 0 0; }
.plain { list-style: none; }
.plain li { margin-bottom: 6px; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; background: var(--rd-paper); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.brief { padding-bottom: 72px; max-width: 700px; margin-inline: 0; margin-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
.form p { margin: 0 0 20px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type=text], .form select, .form textarea, .form input[type=file] { width: 100%; padding: 12px; border: 1px solid #b9b5af; background: var(--rd-white); color: var(--rd-ink90); font: inherit; border-radius: 0; }
.hp { position: absolute; left: -9999px; }
.alt-wa { margin-top: 24px; }
.notice { padding: 18px 20px; margin-bottom: 28px; }
.notice p { margin: 0 0 14px; }
.notice.ok { background: var(--rd-paper); }
.notice.bad { border: 2px solid var(--rd-black); }
.notice > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--rd-black); color: var(--rd-white); margin-top: 0; }
.foot { display: grid; gap: 36px; padding-block: 56px 32px; }
.foot .logo-tmp, .site-footer .brand { color: var(--rd-white); }
.foot .logo-img { max-height: 44px; }
.foot-brand p { margin: 16px 0 0; color: #cfcac4; }
.foot-h { font-family: var(--rd-font-narrow); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; color: var(--rd-smoke); margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--rd-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal { padding-block: 0 32px; color: var(--rd-smoke); }
@media (min-width: 768px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
