/* ==========================================================================
   Threaded Love Studio — shared stylesheet
   Mobile-first. Palette lives in :root — change colors in one place.
   ========================================================================== */

:root {
  --rose:        #c9788a;
  --rose-deep:   #a85a6c;
  --blush:       #f5e1e3;
  --blush-soft:  #fdf2f3;
  --cream:       #fbf7f3;
  --ink:         #4a413e;
  --muted:       #7d716c;
  --line:        #ebdcd8;
  --white:       #ffffff;

  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Parisienne", "Snell Roundhand", cursive;
  --sans:   "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gap: 1.5rem;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
}

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

a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

/* ---------- Typography ---------------------------------------------------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
p  { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .9rem;
  font-weight: 400;
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.script { font-family: var(--script); color: var(--rose); font-size: 1.5em; line-height: 1.1; }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Delicate divider with a heart at the middle */
.divider { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 2.5rem 0; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(90px, 18vw); background: var(--line); }
.divider span { color: var(--rose); font-size: .8rem; }

/* ---------- Header / nav -------------------------------------------------- */

/* Static on phones — the wrapped nav is tall enough that sticking it would eat
   a quarter of the viewport and clip headings on scroll. Sticky from tablet up. */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 820px) {
  .site-header { position: sticky; top: 0; z-index: 50; }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: .85rem;
}

.wordmark { text-decoration: none; display: block; text-align: center; line-height: 1; }
.wordmark .mark-script { font-family: var(--script); font-size: 1.85rem; color: var(--rose); display: block; }
.wordmark .mark-caps {
  font-family: var(--serif);
  font-size: .7rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-top: .1rem;
  padding-left: .42em; /* optically centre the tracked caps */
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.35rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--rose); border-bottom-color: var(--rose); }
.site-nav a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--rose); }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--rose);
  transition: background-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }
.btn-secondary { background: transparent; color: var(--rose-deep); }
.btn-secondary:hover { background: var(--blush-soft); color: var(--rose-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---------- Sections ------------------------------------------------------ */

section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-blush { background: var(--blush-soft); }
.section-tight { padding-block: clamp(2rem, 5vw, 3rem); }

/* ---------- Hero ---------------------------------------------------------- */

.hero { padding-block: 0; background: var(--blush-soft); }
.hero .wrap { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-copy h1 { margin-bottom: .35em; }
.hero-img img { border-radius: var(--radius); width: 100%; object-fit: cover; }

@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-copy { order: 1; }
  .hero-img  { order: 2; }
}

/* ---------- Gallery grid -------------------------------------------------- */

/* Stays 2-up on phones — square crops read fine at ~160px and keep the page short. */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid figure { margin: 0; }
.grid img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.grid figure > a { display: block; text-decoration: none; }
.grid figure > a:hover img { opacity: .88; transition: opacity .18s ease; }
.grid figcaption {
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .7rem;
  text-align: center;
}
.grid figcaption a { color: var(--muted); text-decoration: none; }
.grid figcaption a:hover { color: var(--rose); }

/* ---------- Feature rows (image + text, alternating) ---------------------- */

.feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.feature:last-child { margin-bottom: 0; }
.feature img { border-radius: var(--radius); }
@media (min-width: 780px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.reverse .feature-media { order: 2; }
}

/* ---------- Steps --------------------------------------------------------- */

.steps { display: grid; gap: 1.75rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { text-align: center; }
.step-num {
  counter-increment: step;
  width: 3rem; height: 3rem;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step) "."; }
.step h3 { font-size: 1.05rem; letter-spacing: .04em; margin-bottom: .4rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Prose cards --------------------------------------------------- */

.cards { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.card li { margin-bottom: .4rem; }

/* ---------- CTA band ------------------------------------------------------ */

.cta { background: var(--blush); text-align: center; }
.cta h2 { margin-bottom: .4em; }
.cta .lede { margin-inline: auto; margin-bottom: 1.9rem; color: var(--ink); }
.cta .note { font-size: .85rem; color: var(--muted); margin-top: 1.5rem; margin-bottom: 0; }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-block: 2.75rem;
  text-align: center;
}
.site-footer .wordmark { margin-bottom: 1.1rem; }
.site-footer nav ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .3rem 1.2rem; margin: 0 0 1.2rem; padding: 0;
}
.site-footer nav a {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.site-footer nav a:hover { color: var(--rose); }
.site-footer .meta { font-size: .84rem; color: var(--muted); margin: 0; }
.site-footer .meta + .meta { margin-top: .35rem; }

/* ---------- Accessibility ------------------------------------------------- */

.skip-link {
  position: absolute; left: -9999px;
  background: var(--rose); color: var(--white);
  padding: .75rem 1.25rem; z-index: 100; border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   "Under construction" notice — TEMPORARY
   Remove this block along with construction-notice.js at launch.
   ========================================================================== */

body.notice-open { overflow: hidden; }

.notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(74, 65, 62, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: notice-fade .22s ease;
}

.notice {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 30rem;
  width: 100%;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  text-align: center;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  box-shadow: 0 18px 50px rgba(74, 65, 62, .22);
  animation: notice-rise .26s ease;
}

.notice:focus { outline: none; }

.notice-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 .8rem;
}

.notice h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: .6em; }

.notice p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 1.6rem;
}

.notice-actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  align-items: stretch;
}

.notice-actions .btn { width: 100%; }

/* Side by side once there's room for it. */
@media (min-width: 480px) {
  .notice-actions { flex-direction: row; justify-content: center; }
  .notice-actions .btn { width: auto; }
}

.notice-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: var(--radius);
}
.notice-close:hover { color: var(--rose-deep); }

@keyframes notice-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes notice-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .notice-backdrop, .notice { animation: none; }
}
