/* Marshall Art Restorations — site stylesheet
   Frame mirrors the live GoDaddy site (measured 2026-10-06 at 1280 and 1440):
   48px page margins at header and hero; 1112px section container;
   gallery pairs 532px, small pairs 339px centered in 726px; contact 726px; 48px gaps.
   Palette: near-black ground #00000a, cream ink #ffebcd.
   Cream-on-charcoal variant preserved in git history (commit 1a89817). */

:root {
  --bg: #00000a;
  --ink: #ffebcd;
  --ink-soft: rgba(255, 235, 205, 0.72);
  --line: rgba(255, 235, 205, 0.3);
  --serif: "Adamina", Georgia, "Times New Roman", serif;
  --sans: "Poppins", Arial, sans-serif;
  --container: 1160px;   /* 1112 content + 2 x 24 padding */
  --pad-page: 24px;
  --pad-wide: 48px;      /* header and hero side margins, like live */
}

@media (max-width: 900px) {
  :root { --pad-wide: 24px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 1112px content centered — 84px page margins at 1280, like live */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-page);
  padding-right: var(--pad-page);
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; }

/* ---------- header: full width, 48px side margins (live: brand at x=48) ---------- */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  max-width: none;
  padding: 24px var(--pad-wide) 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.35;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-top: 3px;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; }

.site-nav a {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav a:hover { border-bottom-color: var(--line); }

/* ---------- hero: 48px margins, full-width image (live: 1184px image at 1280) ---------- */

.hero { padding: 92px var(--pad-wide) 44px; text-align: center; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  line-height: 1.28;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero .tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0;
}

.hero img { width: 100%; margin: 110px auto 0; border: 1px solid var(--line); }

/* ---------- sections: 1112px container, like live ---------- */

.section { border-top: 1px solid var(--line); padding: 54px 0; }

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 0 0 14px;
}

.section p { margin: 0 0 14px; }
.section p:last-child { margin-bottom: 0; }

/* mission: image left, text right at 532 / 532; heading centered in its column (live) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border: 1px solid var(--line); }
.center { text-align: center; }

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
}

/* about: 400px text block, 36px into the container (live: x=120 at 1280) */
.about-copy { max-width: 400px; margin-left: 36px; }

@media (max-width: 720px) {
  .about-copy { margin-left: 0; }
}

/* ---------- contact: 726px centered block (live) ---------- */

.contact { text-align: center; }
.contact .wrap { max-width: 774px; }
.contact .phone { font-family: var(--serif); font-size: 1.45rem; margin: 6px 0; }
.contact .phone a { text-decoration: none; }
.contact .owner { font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ---------- gallery: before & after ---------- */

.gallery-page .page-head { padding: 44px 0 6px; text-align: center; }

.gallery-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  line-height: 1.3;
  margin: 0;
}

.project { padding: 54px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 26px; }

/* live pair widths: full pairs 532+532 in the container; small pairs 339+339 centered in 726 */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pair--small { max-width: 726px; margin-left: auto; margin-right: auto; }
.pair--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) {
  .pair, .pair--three { grid-template-columns: 1fr; gap: 28px; }
  .pair--small { max-width: none; }
}

figure { margin: 0; }
figure img { width: 100%; border: 1px solid var(--line); }

figcaption {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* bottom-align captions when the two images differ in height */
.pair figure { display: flex; flex-direction: column; }
.pair figcaption { margin-top: auto; padding-top: 24px; }

/* ---------- gallery: portfolio wall (3 per row, 48px gaps) ---------- */

.wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}

.wall figure { flex: 0 1 calc(33.333% - 32px); min-width: 220px; }

.wall figure img { width: 100%; }

.portfolio-intro { text-align: center; margin: 0 0 34px; }

@media (max-width: 720px) {
  .wall { gap: 24px; }
}

/* ---------- footer: copyright left, NAP right (live container) ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
}

.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
