/* William's Carpets, Pottery & Antiques, Ltd. : site styles
   Plain CSS, no build step. Colors are pulled from the rugs in the booth. */

/* Self-hosted web fonts (latin subset, variable weight). Playfair Display and Source Sans 3 are
   licensed under the SIL Open Font License 1.1 (see fonts/LICENSE.txt). */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500 700; font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2"); }

:root {
  --cream: #faf6ee;
  --ivory: #f3ecdd;
  --linen: #ebe1cc;
  --red: #7a1f1c;
  --red-bright: #9b2a2f;
  /* palette harmonized with the badge logo: deep brown, burgundy, gold, cream */
  --brown: #3a2416;
  --brown-deep: #1f130b;
  --brown-band: #2a180d;
  --gold: #b08d3e;
  --gold-light: #e2c27a;
  --gold-text: #806024; /* gold dark enough for small text on cream/white (WCAG AA) */
  --ink: #2b2220;
  --muted: #6b5f55;
  --radius: 6px;
  --maxw: 1280px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(43, 37, 34, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

img { max-width: 100%; height: auto; display: block; }
/* <picture> wrappers (WebP with JPEG/PNG fallback) should not affect layout */
picture { display: contents; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a { color: var(--red); }
a:hover { color: var(--red-bright); }

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown);
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brown); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Ornament ---------- */
.ornament {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--gold-text); margin: 0 0 1rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 2.5rem; background: currentColor; opacity: 0.8;
}
.ornament.center { justify-content: center; }
.ornament.left::before { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linen);
}
.site-header::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold) 50%, var(--red));
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}

.wordmark {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none; line-height: 1;
}
.wordmark .wm-emblem {
  width: 56px; height: 56px; border-radius: 8px; flex: none;
  border: 1px solid var(--gold); box-shadow: 0 2px 6px rgba(31, 19, 11, 0.25);
}
.wordmark .wm-text { display: flex; flex-direction: column; }
@media (max-width: 400px) { .wordmark .wm-emblem { width: 46px; height: 46px; } }
.wordmark .wm-main {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem); color: var(--red);
}
.wordmark .wm-sub {
  margin-top: 0.3rem;
  font-family: var(--serif); font-size: clamp(0.62rem, 0.55rem + 0.25vw, 0.78rem);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown);
}
.wordmark .wm-sub span { color: var(--gold-text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--linen); border-radius: var(--radius);
  padding: 0.5rem 0.65rem; cursor: pointer; color: var(--brown);
}
.nav-toggle svg { display: block; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem;
}
.site-nav a {
  text-decoration: none; color: var(--brown); font-weight: 600; font-size: 0.98rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--red); }
.site-nav .nav-cta {
  background: var(--red); color: #fff; padding: 0.55rem 1rem; border-radius: 999px; border: 0;
}
.site-nav .nav-cta:hover { background: var(--red-bright); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--linen);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .site-nav li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--linen); }
  .site-nav .nav-cta { margin-top: 0.8rem; text-align: center; border-radius: var(--radius); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); color: #fff; }
.btn-messenger { background: var(--brown); color: #fff; }
.btn-messenger:hover { background: var(--brown-deep); color: var(--gold-light); }
.btn-gold { background: linear-gradient(180deg, #e2c27a, #b8913f); color: var(--brown-deep); }
.btn-gold:hover { background: linear-gradient(180deg, #ecd08f, #c79f4b); color: var(--brown-deep); }
.btn-outline { border-color: var(--gold); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 110% at 70% 50%, #2b190d 0%, #1c110a 60%, #160d08 100%);
  color: #f3ead8;
  padding: clamp(2rem, 4.5vw, 4rem) 0;
  border-bottom: 3px solid var(--gold);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero-badge {
  display: block; width: 100%; max-width: 640px; height: auto; margin: 0 0 0.6rem -2%;
  /* soften the edges so the badge's own brown background melts into the band */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-composite: intersect;
}
.hero h1 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.04em; margin-bottom: 0.7em;
}
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: #f3ead8; border-left: 3px solid var(--gold); padding-left: 1rem; margin-bottom: 1.3rem;
}
.visit-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem;
  font-size: 1rem; color: #e9dcc4; margin-bottom: 1.5rem;
}
.visit-line strong { color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }
.hero .btn-primary { border-color: rgba(226, 194, 122, 0.55); }

.hero-figure {
  margin: 0; position: relative;
  /* the frame keeps the photo at its natural 4:3 shape at every width */
}
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid #d9b765;
  outline: 1px solid rgba(255, 255, 255, 0.25); outline-offset: 4px;
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  font-size: 0.85rem; color: #cbb994; margin-top: 0.9rem; text-align: right; font-style: italic;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure figcaption { text-align: left; }
  .hero-badge { margin: 0 auto 0.6rem; }
  .hero { background: linear-gradient(180deg, #1c110a 0%, #1c110a 30%, #24150c 100%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--ivory); border-top: 1px solid var(--linen); border-bottom: 1px solid var(--linen); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Intro */
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center;
}
.intro-feature { margin: 0; }
.intro-feature img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 5px solid #fff; outline: 1px solid var(--gold);
}
.intro-booth {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 1.6rem;
}
.pull-quote {
  font-family: var(--serif); font-style: italic; color: var(--brown);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.45;
  margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--gold);
}
.pull-quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-family: var(--sans); font-size: 0.9rem; color: var(--gold-text); letter-spacing: 0.08em; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro-feature { max-width: 440px; margin: 0 auto; } }

/* Cards */
.cards {
  display: grid; gap: clamp(1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card {
  grid-column: span 2;
  background: #fff; border: 1px solid var(--linen); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(43, 37, 34, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.feature { grid-column: span 3; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .card-body { padding: 1.3rem 1.4rem 1.5rem; border-top: 3px solid var(--gold); flex: 1; }
.card h3 { color: var(--red); margin-bottom: 0.4em; }
.card p { margin: 0; color: var(--ink); }
.card .label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 0.35rem;
}
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.feature { grid-column: span 1; }
  .card.feature:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card, .card.feature, .card.feature:first-child { grid-column: span 1; }
}

/* Gallery preview strip on home */
.preview-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.preview-grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.preview-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.35s; }
.preview-grid a:hover img { transform: scale(1.04); }
.preview-cta { text-align: center; margin-top: 2rem; }
@media (max-width: 700px) { .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch;
}
.info-card {
  background: #fff; border: 1px solid var(--linen); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 2px 10px rgba(43, 37, 34, 0.05);
}
.info-card h3 { font-size: 1.15rem; margin: 1.3rem 0 0.4rem; color: var(--red); }
.info-card h3:first-child { margin-top: 0; }
.info-card h2 { font-size: 1.15rem; margin: 1.3rem 0 0.4rem; color: var(--red); }
.info-card h2:first-child { margin-top: 0; }
.info-card address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours td { padding: 0.3rem 0; border-bottom: 1px dotted var(--linen); }
.hours td:last-child { text-align: right; }
.hours .closed td { color: var(--muted); }
.info-card .btn-row { margin-top: 1.4rem; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linen); box-shadow: var(--shadow);
  min-height: 380px; background: var(--linen);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } .map-wrap { aspect-ratio: 4 / 3; min-height: 0; width: 100%; } }

/* Contact form */
.contact {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.contact-form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--brown); margin-bottom: 0.3rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid #d8ccb3; border-radius: var(--radius); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
/* honeypot: hidden from people, visible to naive bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; color: var(--red); margin: 0; min-height: 1.4em; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Gallery page ---------- */
.page-head {
  background: linear-gradient(180deg, var(--ivory), var(--cream));
  border-bottom: 1px solid var(--linen);
  padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(1.8rem, 4vw, 2.6rem); text-align: center;
}
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--red); }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* Gallery: 3-column grid that always ends on a full row.
   Landscape photos (.g-wide) span 2 columns next to a portrait; the wide booth view (.g-full) closes the grid
   as a full-width banner. 10 photos = 5 even rows on desktop, 7 even rows on tablet, 1 column on phones. */
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1rem; align-items: stretch;
}
.gallery figure { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.gallery a {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(43, 37, 34, 0.08);
  aspect-ratio: 3 / 4; flex: 1 1 auto; background: var(--linen);
}
.gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s;
}
/* wide cells take the height of the portrait beside them */
.gallery .g-wide { grid-column: span 2; }
.gallery .g-wide a { aspect-ratio: auto; min-height: 12rem; }
.gallery .g-full { grid-column: 1 / -1; }
.gallery .g-full a { aspect-ratio: 16 / 9; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); padding: 0.45rem 0.2rem 0; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .g-wide, .gallery .g-full { grid-column: 1 / -1; }
  .gallery .g-wide a, .gallery .g-full a { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; background: rgba(15, 18, 28, 0.94); color: #fff;
}
.lightbox::backdrop { background: rgba(15, 18, 28, 0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border: 4px solid #fff; border-radius: 3px; }
.lightbox figcaption { margin-top: 0.8rem; font-size: 1rem; text-align: center; color: #eadcbc; }
/* while the full-size photo loads: hide the old frame and show a small spinner */
.lightbox figure { position: relative; }
.lightbox img { transition: opacity 0.2s; }
.lightbox.is-loading img { opacity: 0; }
.lightbox.is-loading figcaption { visibility: hidden; }
.lightbox.is-loading::after {
  content: ""; position: fixed; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: var(--gold); border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lightbox.is-loading::after { animation-duration: 2.4s; } }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: var(--gold); border-color: var(--gold); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer { background: #1c110a; color: #e8e1d2; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.site-footer::before {
  content: ""; display: block; height: 4px; margin-top: calc(-1 * clamp(2.5rem, 5vw, 3.5rem)); margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--red) 66% 100%);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1.05rem; color: var(--gold-light); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 0.8rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer address { font-style: normal; }
.footer-brand .wm-main { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.7rem; color: #fff; display: block; line-height: 1.1; }
.footer-brand .wm-sub { font-family: var(--serif); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold-light); display: block; margin-top: 0.35rem; }
.footer-badge {
  width: 100%; max-width: 300px; height: auto; margin: -0.6rem 0 0.2rem -0.8rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-composite: intersect;
}
.footer-brand p { margin-top: 1rem; color: #cfc6b4; max-width: 34ch; }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem; color: #b9b09f; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Small-screen and ultrawide refinements ---------- */
@media (max-width: 600px) {
  .ornament.left::after { display: none; }
}
@media (min-width: 1600px) {
  :root { --maxw: 1320px; }
}
@media (min-width: 2200px) {
  html { font-size: 106.25%; }
  /* very wide monitors: content stays capped and centered; the hero photo keeps its 4:3 frame */
}

.nowrap { white-space: nowrap; }

/* ---------- Simple message pages (thanks, 404) ---------- */
.message-page { text-align: center; }
.message-page .info-card { max-width: 520px; margin: 0 auto 2rem; text-align: left; }
.message-page .btn-row { justify-content: center; }
