/* Charlottesville Poem Store
   Carried over from the WordPress Twenty Twenty-Five theme: Platypi headings,
   Ysabeau Office body, black bands, white page. */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --cream: #fbfaf3;
  --teal: #1fbf9f;
  --muted: #686868;
  --rule: color-mix(in srgb, currentColor 20%, transparent);

  --serif: 'Platypi', Georgia, serif;
  --sans: 'Ysabeau Office', 'Helvetica Neue', Arial, sans-serif;

  --text-lg: clamp(1.125rem, 1.08rem + 0.39vw, 1.375rem);
  --text-md: clamp(1rem, 0.98rem + 0.2vw, 1.125rem);
  --h-xl: clamp(1.4rem, 1.3rem + 0.63vw, 1.8rem);
  --h-xxl: clamp(2rem, 1.85rem + 0.94vw, 2.6rem);

  --gutter: clamp(30px, 5vw, 50px);
  --space-section: clamp(30px, 7vw, 70px);
  --wide: 1340px;
  --content: 645px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: currentColor; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: -0.1px;
  text-wrap: pretty;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--h-xxl); }
h2 { font-size: var(--h-xl); }
h3 { font-size: var(--text-lg); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong, b { font-weight: 600; }

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

/* ---------- layout helpers ---------- */

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-section) 0; }
.center { text-align: center; }
.band-dark { background: var(--ink); color: var(--paper); }
.band-cream { background: var(--cream); }
.band-teal { background: var(--teal); color: var(--ink); }

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

.site-header { background: var(--ink); color: var(--paper); position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 20px; padding-bottom: 20px;
}
.site-title {
  font-family: var(--sans); font-weight: 700; font-size: var(--text-md);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 20px; }
.site-nav a { text-decoration: none; font-size: 1rem; font-weight: 400; white-space: nowrap; }
.site-nav a:hover, .site-nav summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

.submenu { position: relative; }
.submenu summary {
  list-style: none; cursor: pointer; font-size: 1rem; font-weight: 400; white-space: nowrap;
}
.submenu summary::-webkit-details-marker { display: none; }
.submenu summary::after { content: ' \25BE'; font-size: 0.75em; }
.submenu ul {
  position: absolute; right: 0; top: calc(100% + 12px);
  background: var(--ink); min-width: 290px; padding: 10px 0;
  border: 1px solid #333;
}
.submenu ul a { display: block; padding: 8px 18px; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
}
.social svg { width: 20px; height: 20px; fill: #fff; }
.social .ig { background: #f00075; }
.social .fb { background: #0866ff; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; cursor: pointer; padding: 6px; }
  .menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .2s; }
  .nav-toggle:focus-visible + .menu-toggle { outline: 2px solid #fff; outline-offset: 2px; }
  .site-nav { display: none; }
  .nav-toggle:checked ~ .site-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); padding: 12px var(--gutter) 32px;
    border-top: 1px solid #333;
  }
  .nav-toggle:checked + .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked + .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav > ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-nav a, .submenu summary { font-size: 1.25rem; }
  .submenu ul { position: static; border: 0; padding: 8px 0 0 16px; min-width: 0; }
  .submenu ul a { padding: 6px 0; }
}

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

.button {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: var(--text-md); font-weight: 600;
  letter-spacing: 1.44px; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2.25rem; border-radius: 9999px; border: 0; cursor: pointer;
}
.button:hover { background: #2b2b2b; }
.button:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
.band-dark .button, .button.light { background: var(--paper); color: var(--ink); }
.band-dark .button:hover, .button.light:hover { background: #e8e8e8; }

/* ---------- cover / hero ---------- */

.cover {
  position: relative; min-height: 430px; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: #333;
}
.cover picture, .cover > img { position: absolute; inset: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.1); }
.cover .wrap { position: relative; z-index: 1; width: 100%; padding-top: var(--gutter); padding-bottom: var(--gutter); }
.cover h1, .cover h2 { font-size: var(--h-xxl); margin-bottom: 0.4em; }
.cover p { max-width: 34em; }
.cover .button { margin-top: 0.4em; }
.cover.tall { min-height: min(700px, 90vh); }
.cover.home { min-height: min(840px, 92vh); }
.cover.home img { object-position: 25% center; }
.cover.home .wrap, .cover.tall .wrap { text-shadow: 0 1px 12px rgba(0,0,0,0.35); }

/* ---------- home ---------- */

.clients { padding: 26px 0 30px; overflow: hidden; }
.clients h2 { text-align: center; margin-bottom: 20px; }
.marquee { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 56px; list-style: none; margin: 0; padding: 0 28px; }
.marquee img { height: 70px; width: auto; max-width: 230px; object-fit: contain; }
.marquee li.tall img { height: 90px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .marquee ul[aria-hidden] { display: none; }
}

.tagline h2 { max-width: 1000px; margin: 0 auto; text-align: center; font-size: var(--h-xl); }

.intro-heading { margin-bottom: 1.8em; }
.intro-heading h3 { font-family: var(--serif); font-size: var(--text-lg); }

.columns { display: grid; gap: clamp(24px, 3vw, 44px); }
.columns.three { grid-template-columns: repeat(3, 1fr); }
.columns.two { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 781px) {
  .columns.three, .columns.two { grid-template-columns: 1fr; }
}
.step img { margin-bottom: 24px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.step h3 { margin-bottom: 0.7em; }
.step p { font-size: var(--text-md); }

.stats { padding: 30px 0; }
.stats h2 { font-size: var(--h-xl); margin-bottom: 0.9em; }

.reviews h2 { text-align: center; font-size: var(--h-xxl); margin-bottom: 1.2em; }
.reviews .columns + .columns { margin-top: clamp(24px, 3vw, 44px); }
.review {
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 30px; margin: 0;
}
.review p { font-size: var(--h-xl); font-weight: 400; line-height: 1.25; margin-bottom: 1.4em; }
.review cite { display: block; font-style: normal; font-size: 0.8rem; }

/* ---------- content pages ---------- */

.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.3em; }

.split { padding: 10px 0; }
.split .wrap { padding-top: 10px; padding-bottom: 10px; }
.split h2 { margin-bottom: 0.8em; }
.split p, .split li { font-size: var(--text-md); }
.split ul { padding-left: 1.2em; }
.split figure { margin: 0; }
.split figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split figure + figure { margin-top: 24px; }

.services h2 { margin-bottom: 1.2em; }
.services .columns.two { align-items: start; }
.service { border-top: 1px solid var(--rule); padding-top: 18px; }
.service h3 { font-size: var(--text-lg); margin-bottom: 0.8em; }
.service p { font-size: var(--text-md); }
.services .columns + .columns { margin-top: 30px; }

.details { padding: 20px 0; }
.details p { font-size: var(--text-md); }
.details strong { font-weight: 500; }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-grid a { display: block; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- blog ---------- */

.blog-head { text-align: center; }
.blog-head h1 { margin-bottom: 0.5em; }
.blog-head p { font-family: var(--serif); font-size: var(--h-xl); line-height: 1.2; margin-bottom: 1.4em; }
.post { margin-bottom: 70px; }
.post > img, .post > picture img, .post > a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; }
.post h2 { font-size: var(--h-xl); margin-bottom: 0.7em; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post-date { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.6em; }
.post-body p { font-size: var(--text-md); }
.article h1 { margin-bottom: 0.5em; }
.post-nav {
  max-width: var(--wide); margin: 50px auto 0; padding: 20px var(--gutter) 0;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 20px; font-size: 1rem;
}
.post-nav a { text-underline-offset: 3px; }
.post-nav .next { margin-left: auto; text-align: right; }

/* ---------- consultation form ---------- */

.inquiry { margin-top: 30px; }
.inquiry fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.inquiry .field { margin-bottom: 26px; }
.inquiry label, .inquiry legend {
  display: block; font-size: 1rem; font-weight: 600; margin-bottom: 8px;
}
.inquiry .req { color: #d63637; }
.inquiry .sub { font-size: 0.8rem; font-weight: 300; color: var(--muted); margin-top: 4px; display: block; }
.inquiry input[type=text], .inquiry input[type=email], .inquiry input[type=datetime-local], .inquiry input[type=date],
.inquiry select, .inquiry textarea {
  width: 100%; max-width: 420px; font: inherit; font-size: 1rem;
  padding: 10px 12px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: var(--ink);
}
.inquiry textarea { max-width: none; min-height: 140px; resize: vertical; }
.inquiry .name-row { display: flex; gap: 12px; max-width: 420px; }
.inquiry .name-row > div { flex: 1; }
.inquiry .checks label { font-weight: 300; display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.inquiry .hp { position: absolute; left: -9999px; }
.inquiry .button { font-size: 0.95rem; padding: 0.85rem 2rem; }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 90px 0 110px; }

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

.site-footer .book { text-align: center; padding: 20px 0 30px; }
.site-footer .book h2 { font-size: var(--h-xl); margin-bottom: 16px; }
.site-footer .book img { width: 260px; margin: 0 auto 20px; border-radius: 12px; }
.site-footer .about { text-align: center; padding: 10px 0 20px; }
.site-footer .about img { width: 125px; margin: 0 auto 22px; }
.site-footer .about .site-title { font-size: var(--text-md); display: inline-block; margin-bottom: 6px; }
.site-footer .about p { max-width: 640px; margin: 0 auto; font-size: var(--text-md); }
.site-footer .about .legal { font-size: 0.8rem; max-width: 640px; margin: 20px auto 0; text-align: center; }

/* ---------- commission page ---------- */

.commission-portrait { margin: 10px 0 30px; }
.commission-portrait img { width: 100%; border-radius: 4px; }
.commission-examples { gap: 16px; margin-bottom: 30px; align-items: start; }
.commission-examples figure { margin: 0; }
.inquiry .address { max-width: 520px; display: grid; gap: 10px; }
.inquiry .address input, .inquiry .address select { max-width: none; }
.inquiry .address .row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 10px; }
@media (max-width: 600px) { .inquiry .address .row { grid-template-columns: 1fr; } }
.inquiry input[type=date] { width: auto; min-width: 200px; }

/* ---------- form errors (js/forms.js) ---------- */

.inquiry .error { display: block; color: #b32d2e; font-size: 0.9rem; font-weight: 500; margin-top: 6px; }
.inquiry [aria-invalid="true"]:not(fieldset) { border-color: #b32d2e; box-shadow: 0 0 0 1px #b32d2e; }
.inquiry fieldset[aria-invalid="true"] legend { color: #b32d2e; }
.inquiry .form-summary {
  color: #b32d2e; font-weight: 500; font-size: 1rem;
  border-left: 3px solid #b32d2e; padding: 6px 0 6px 12px; margin: 0 0 18px;
}
