/* Michael McQuaid Woodworks: round 4, 2026-10-04. Black, photo-led, rounded. */
/* Palette: near-black ground, warm cream text, muted lichen accent. Type: Antonio (headings) + Hanken Grotesk (text), self-hosted, OFL. */

@font-face { font-family: "Antonio"; src: url("fonts/antonio-var.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0E0E0E;
  --bg-2: #181818;
  --bg-3: #232323;
  --cream: #F3ECE0;
  --cream-2: #D9CFBF;
  --muted: #B3A792;
  --lichen: #A3B192;
  --lichen-2: #BAC6AB;
  --line: rgba(243, 236, 224, 0.13);
  --serif: "Antonio", "Arial Narrow", sans-serif;
  --sans: "Hanken Grotesk", "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 10px;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--cream); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; max-width: 62ch; color: var(--cream-2); }

a { color: var(--lichen-2); text-decoration-color: rgba(186, 198, 171, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

:focus-visible { outline: 2px solid var(--lichen-2); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cream); color: var(--bg); padding: 10px 18px; z-index: 200; border-radius: 999px; }
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-top: 0; }
.section--ruled { border-top: 1px solid var(--line); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.lead { font-size: 1.3rem; max-width: 56ch; }

/* ---------- header ---------- */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-anchor: none;
  transition: box-shadow 250ms ease;
}
.site-header.shrunk { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  transition: min-height 250ms ease;
}
.site-header.shrunk .site-header__inner { min-height: 78px; }

.logo { display: inline-block; line-height: 0; padding-block: 8px; }
.logo img { height: 96px; width: auto; transition: height 250ms ease; }
.site-header.shrunk .logo img { height: 62px; }

.site-nav ul { display: flex; gap: clamp(14px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--cream-2); text-decoration: none; font-size: 1.02rem; padding: 6px 2px; }
.site-nav a:hover { color: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--cream); box-shadow: 0 2px 0 var(--lichen); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  cursor: pointer;
}

/* ---------- hero (home) ---------- */

.hero { position: relative; background: var(--bg); }
.hero__media img {
  width: 100%;
  height: calc(100svh - var(--header-h));
  min-height: 460px;
  max-height: 920px;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(to top, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.45) 40%, rgba(8, 8, 8, 0) 70%),
    linear-gradient(to right, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0) 60%);
}
.hero__text { padding-bottom: clamp(36px, 7vh, 88px); width: 100%; }
.hero__text h1 { max-width: 19ch; margin-bottom: 0.3em; }
.hero__text p { color: var(--cream); max-width: 46ch; font-size: 1.2rem; margin-bottom: 1.4em; }

/* page heads (inner pages) */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.page-head h1 { margin-bottom: 0.35em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--primary, .btn--lichen { background: var(--lichen); color: var(--bg); }
.btn--primary:hover, .btn--lichen:hover { background: var(--cream); color: var(--bg); }
.btn--outline, .btn--ghostlight { background: transparent; color: var(--cream); border-color: rgba(243, 236, 224, 0.55); }
.btn--outline:hover, .btn--ghostlight:hover { border-color: var(--cream); background: rgba(243, 236, 224, 0.08); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- work grid: two big columns, natural aspect ---------- */

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.work-col { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 20px); }
.work-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  text-align: left;
  font: inherit;
  color: var(--cream);
}
.work-card img { width: 100%; height: auto; transition: transform 500ms ease; }
.plate {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0));
  opacity: 0;
  transition: opacity 260ms ease;
}
.plate__name { display: block; font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; line-height: 1.3; color: var(--cream); }
.plate__note { display: block; font-size: 0.92rem; color: var(--cream-2); margin-top: 2px; }
@media (hover: hover) {
  .work-card:hover .plate, .work-card:focus-visible .plate { opacity: 1; }
  .work-card:hover img { transform: scale(1.02); }
}
@media (hover: none) {
  .plate { position: static; display: block; opacity: 1; background: var(--bg-2); padding: 12px 16px 14px; }
}

.group-head { margin: clamp(48px, 6vw, 80px) 0 clamp(18px, 2vw, 26px); }
.group-head:first-child { margin-top: 0; }

/* ---------- feature splits (home) ---------- */

.feature {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature--flip { grid-template-columns: 5fr 7fr; }
.feature--flip > .feature__media { order: 2; }
.feature__media img { width: 100%; height: auto; border-radius: var(--radius); }

.heading-link { color: var(--cream); text-decoration: none; }
.heading-link:hover { color: var(--lichen-2); }

/* ---------- inner-page splits ---------- */

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--flip { grid-template-columns: 7fr 5fr; }
.split--flip > .split__media { order: 2; }
.split__media img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- shop ---------- */

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.product { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.product img { width: 100%; height: auto; }
.product__body { padding: 22px 24px 26px; }
.product__name { font-size: 1.4rem; margin: 0 0 4px; }
.product__price { font-weight: 700; font-size: 1.15rem; margin: 0 0 10px; color: var(--cream); }
.product__status { color: var(--muted); font-size: 0.98rem; margin: 0 0 16px; }
.note-band { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; max-width: 70ch; }
.note-band p { margin: 0; max-width: none; }
.shop-more { margin-top: 28px; color: var(--muted); }

/* ---------- forms ---------- */

.form { max-width: 640px; }
.form label { display: block; font-weight: 500; margin: 0 0 6px; color: var(--cream); }
.form .req { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: var(--bg-2);
  border: 1px solid rgba(243, 236, 224, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 20px;
}
.form select option { color: #0E0E0E; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--lichen-2); outline-offset: 1px; border-color: var(--lichen-2); }
.form .hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.form-hint { color: var(--muted); font-size: 0.95rem; margin-top: -12px; margin-bottom: 20px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-details p { margin-bottom: 0.9em; }
.contact-photo img { border-radius: var(--radius); }

.blog-note { font-size: 1.35rem; max-width: 40ch; }

/* ---------- footer ---------- */

.site-footer { background: #080808; color: var(--cream-2); padding: clamp(48px, 6vw, 80px) 0 32px; border-top: 1px solid var(--line); }
.footer-logo img { width: 180px; height: auto; }
.footer-blurb { margin-top: 18px; max-width: 34ch; }
.site-footer a { color: var(--cream-2); text-decoration-color: transparent; }
.site-footer a:hover { color: var(--cream); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--cream); margin-bottom: 0.7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.92rem; color: var(--muted); }
.site-footer__base a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6, 6, 6, 0.95); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(1200px, 92vw); max-height: 90svh; display: flex; flex-direction: column; margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: 80svh; width: auto; height: auto; object-fit: contain; margin-inline: auto; border-radius: var(--radius); }
.lightbox__caption { color: var(--cream-2); text-align: center; padding-top: 12px; font-size: 1rem; }
.lightbox__btn { position: absolute; background: var(--bg-3); color: var(--cream); border: 1px solid var(--line); border-radius: 999px; font-size: 1.4rem; line-height: 1; width: 48px; height: 48px; cursor: pointer; }
.lightbox__btn:hover { background: var(--lichen); color: var(--bg); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- mobile ---------- */

.call-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 150; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.call-bar .btn { flex: 1; text-align: center; padding: 12px 10px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 10px 2px; font-size: 1.15rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--lichen); }
}

@media (max-width: 760px) {
  :root { --header-h: 84px; }
  body { padding-bottom: 74px; }
  .call-bar { display: flex; }
  .logo img { height: 68px; }
  .site-header.shrunk .site-header__inner { min-height: 64px; }
  .site-header.shrunk .logo img { height: 48px; }
  .hero__media img { height: calc(88svh - var(--header-h)); min-height: 520px; object-position: 50% 85%; }
  .hero__text h1 { max-width: none; }
  .feature, .feature--flip, .split, .split--flip, .contact-grid { grid-template-columns: 1fr; }
  .feature--flip > .feature__media, .split--flip > .split__media { order: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .site-footer__base a { display: inline-block; padding: 8px 0; }
  .work-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .site-header__inner, .logo img, .plate, .work-card img { transition: none; }
}
.more-link { margin-top: clamp(20px, 3vw, 36px); }

/* round 3: section jump buttons, single-photo groups, studio section */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 2.4vw, 28px); }
.btn--sm { padding: 12px 20px; font-size: 0.98rem; }
.group-head { scroll-margin-top: calc(var(--header-h) + 20px); }
.work-grid--single { grid-template-columns: 1fr; }
.studio-text { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 40px); }
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.studio-grid img { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 760px) { .studio-grid { grid-template-columns: 1fr; } }
.work-grid--single { max-width: 820px; }

/* round 4: About page layout */
.about-intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-intro h1 { margin-bottom: 0.35em; }
.about-intro p { font-size: 1.2rem; }
.about-intro img, .studio-split img { width: 100%; height: auto; border-radius: var(--radius); }
.studio-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.studio-split p { font-size: 1.12rem; }
.studio-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
@media (max-width: 760px) {
  .about-intro, .studio-split { grid-template-columns: 1fr; }
}
.studio-photos img { aspect-ratio: 4 / 3; object-fit: cover; }
