/*
Theme Name: Keith & Carolina
Description: Wedding site for Keith and Carolina at Jupiter Beach Resort. The front page is the wedding. The blog stays under Posts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: keith-carolina
*/
@import url('https://fonts.googleapis.com/css2?family=Monsieur+La+Doulaise&family=Parisienne&family=Pinyon+Script&display=swap');

:root {
  --sand: #e3ebf3;
  --foam: #f4f7fb;
  --ink: #243446;
  --sea: #4e6e88;
  --shell: #5d7c94;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --muted: color-mix(in srgb, var(--ink) 72%, var(--sand));
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, [role="button"], summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
section[id] { scroll-margin-top: 5rem; }
::selection { background: color-mix(in srgb, var(--sea) 28%, var(--sand)); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}
.brand, .brand-foot { font-family: var(--serif); text-decoration: none; }
.brand .long { display: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.15rem; }
.nav a { text-decoration: none; padding: 0.5rem 0.55rem; font-size: 0.95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); }
.foot { padding-top: 2rem; padding-bottom: 2.5rem; color: var(--muted); font-size: 0.95rem; }
.brand-foot { color: var(--ink); font-size: 1.05rem; margin: 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.narrow { max-width: 42rem; }
.band { background: var(--foam); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3.5rem 0; }
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea);
}
.eyebrow.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 8vw, 5.5rem); margin: 0.6rem 0 0; }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0.55rem 0 0; }
h3 { font-size: 1.8rem; margin: 0.45rem 0 0; }
.page-title { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.amp { display: block; margin: 0.15rem 0; font-style: italic; color: var(--shell); font-size: 0.72em; }
.amp-inline { font-style: italic; color: var(--shell); }
.lede { max-width: 36rem; color: color-mix(in srgb, var(--ink) 82%, var(--sand)); }
.quiet { color: var(--muted); }
p { text-wrap: pretty; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--sea);
  color: var(--foam);
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
}
.btn:active { scale: 0.96; }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn-ink { background: var(--ink); color: var(--foam); }
.nav .btn { color: var(--foam); padding-left: 1rem; padding-right: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; align-items: center; }

.hero { display: grid; }
.hero-photo { min-height: 68vh; }
.hero-photo img, .split img, .story-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { min-height: 68vh; object-position: 100% 20%; }
.hero-copy { padding: 2.5rem 1.25rem 3rem; }
.split { display: grid; gap: 1.5rem; align-items: center; margin-top: 2.5rem; }
.split img, .story-grid img, .post-thumb img, .post-hero img { border-radius: var(--radius); }
.story-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
.story-grid img { aspect-ratio: 3 / 4; object-fit: cover; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: end; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }

.album { columns: 2; column-gap: 0.8rem; }
.shot { break-inside: avoid; margin: 0 0 0.8rem; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 1rem; overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.45rem; padding: 0 0.2rem; font-size: 0.95rem; color: var(--muted); }
.shot-remove { border: 0; background: none; color: var(--shell); font: inherit; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; min-height: 2.75rem; }
.empty { border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); background: var(--foam); border-radius: var(--radius); text-align: center; padding: 3rem 1.25rem; }
.empty-title { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 0.5rem; }
.album-block { margin-top: 3rem; }

.uploader, .qr-panel, .print-sheet, .post-card {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.uploader { padding: 1.25rem; max-width: 40rem; margin-top: 1.5rem; }
.uploader label { color: var(--muted); font-size: 0.95rem; }
.uploader input[type="text"], .uploader input:not([type="file"]), .host-form input {
  width: 100%;
  margin-top: 0.45rem;
  min-height: 3rem;
  border-radius: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: var(--sand);
  color: var(--ink);
  font: inherit;
  padding: 0.6rem 0.9rem;
}
.status { min-height: 1.3rem; color: var(--muted); font-size: 0.95rem; }
.hosts { margin-top: 3.5rem; max-width: 28rem; border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--muted); }
.host-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.8rem; }
.qr-panel { display: grid; gap: 1.5rem; align-items: center; padding: 1.5rem; }
.qr-mark { width: 11rem; height: 11rem; margin: 0 auto; background: var(--sand); border-radius: 1rem; padding: 0.7rem; }
.qr-mark svg { width: 100%; height: 100%; }
.qr-large { width: 14rem; height: 14rem; }
.guest-url {
  margin: 1rem auto 0;
  max-width: 22rem;
  word-break: break-all;
  font-size: 0.95rem;
}
.guest-url a { color: var(--sea); }
.posts { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.post-card { padding: 1.2rem; }
.post-card h2 { margin-top: 0.35rem; }
.post-card h2 a, .entry a { text-underline-offset: 0.15em; }
.excerpt, .entry { color: color-mix(in srgb, var(--ink) 84%, var(--sand)); }
.entry { font-size: 1.08rem; }
.entry > *:first-child { margin-top: 0; }
.post-hero { margin: 1.2rem 0; }
.post-thumb { display: block; margin-bottom: 0.8rem; }
.pager { margin-top: 1.5rem; }
.pager .nav-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.back { margin-top: 2rem; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.is-open {
  display: flex;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 1rem; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--foam);
  color: var(--ink);
  font: inherit;
}

@media (min-width: 640px) {
  .brand .short { display: none; }
  .brand .long { display: inline; }
  .bar { padding-left: 1.5rem; padding-right: 1.5rem; }
  .album { columns: 3; }
  .host-form { flex-direction: row; align-items: center; }
  .host-form input { margin-top: 0; }
  .foot { flex-direction: row; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; min-height: calc(100svh - 4.5rem); }
  .hero-photo, .hero-photo img { min-height: 100%; height: 100%; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem 3.5rem; }
  .split, .story-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .flip img { order: 2; }
  .qr-panel { grid-template-columns: auto 1fr; padding: 2.5rem; }
  .qr-mark { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .print-sheet { box-shadow: none; border: 1px solid #243446; }
}
/* story section spacing - added 2026-10-28 */
.story-grid article p.eyebrow{margin:1rem 0 .35rem;}
.story-grid article h3{line-height:1.25;margin:.35rem 0 .6rem;}
.story-grid article p:not(.eyebrow){line-height:1.65;margin:0 0 1rem;}
/* story card overflow fix - added 2026-10-28 */
.story-grid article img{height:auto;display:block;}
.story-grid article{align-self:start;}

.hero h1, h1 .n-keith, h1 .n-carolina {font-weight:normal;}
.n-keith{font-family:'Monsieur La Doulaise',cursive;}
h1 .amp{font-family:'Parisienne',cursive;}
.n-carolina{font-family:'Pinyon Script',cursive;}
.hero h1 {font-size:clamp(4.2rem, 11vw, 7rem);line-height:1.1;}
