/* Life in the Glass House
   Palette from the development brief; type: Newsreader (editorial serif) + Figtree (sans) */

:root {
  --ivory: #F6F2EA;
  --paper: #FBF9F4;
  --navy: #202D3A;
  --charcoal: #33332F;
  --olive: #777963;
  --olive-deep: #5E604D;
  --taupe: #B6A799;
  --taupe-light: #E4DCD2;
  --rose: #B98D8C;
  --rose-deep: #94696A;
  --rose-wash: #F3E8E4;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 500; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: var(--charcoal);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--olive-deep);
  margin-bottom: 0.6em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

.site-header {
  border-bottom: 1px solid var(--taupe-light);
  background: var(--ivory);
  position: relative;
  z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; }
.brand-by { font-size: 0.82rem; color: var(--olive-deep); margin-top: 3px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a {
  text-decoration: none; color: var(--charcoal); font-size: 0.95rem; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--taupe); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--taupe); border-radius: var(--radius);
  color: var(--navy); font: inherit; font-size: 0.95rem; padding: 7px 14px; cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory); border-bottom: 1px solid var(--taupe-light);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav li { border-top: 1px solid var(--taupe-light); }
  .nav a { display: block; padding: 14px 0; border-bottom: none; }
}

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

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.98rem; font-weight: 500;
  padding: 13px 24px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid var(--navy); background: var(--navy); color: var(--ivory);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.btn.rose { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn.rose:hover { background: var(--navy); border-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { font-weight: 500; }

/* ---------- Photo placeholders ----------
   Replace each .photo block with a real <img> when photography is ready. */

.photo {
  position: relative; background: linear-gradient(160deg, #D9CFC3 0%, #C4B6A8 55%, #B6A799 100%);
  border-radius: var(--radius); overflow: hidden; min-height: 240px;
  display: flex; align-items: flex-end;
}
.photo.rose { background: linear-gradient(160deg, #EBD9D3 0%, #D2B2AE 60%, #B98D8C 100%); }
.photo.olive { background: linear-gradient(160deg, #CFCDBE 0%, #A9A88F 60%, #777963 100%); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph-label {
  position: relative; margin: 14px; font-size: 0.82rem; color: var(--navy);
  background: rgba(246,242,234,.85); padding: 5px 10px; border-radius: 2px;
}

/* The signature element: window mullions over the hero photo */
.glass {
  position: relative;
}
.glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(50% - 3px), var(--ivory) calc(50% - 3px), var(--ivory) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(to bottom, transparent calc(42% - 3px), var(--ivory) calc(42% - 3px), var(--ivory) calc(42% + 3px), transparent calc(42% + 3px));
  box-shadow: inset 0 0 0 10px var(--ivory), inset 0 0 0 11px var(--taupe);
}

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

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 0.25em; }
.hero .byline { font-family: var(--serif); font-size: 1.35rem; color: var(--olive-deep); margin-bottom: 1.2em; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--navy); margin-bottom: 1em; }
.hero .photo { min-height: clamp(360px, 48vw, 600px); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .photo { order: -1; min-height: 340px; }
}

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 60ch; }

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

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy); color: #E7E2D8; }
.section.navy h2, .section.navy h3 { color: var(--ivory); }
.section.navy a { color: var(--ivory); }
.section.navy .kicker { color: var(--taupe); }
.section.rose { background: var(--rose-wash); }
.rule { border: 0; border-top: 1px solid var(--taupe-light); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--taupe); border-bottom: 1px solid var(--taupe);
  margin-top: 40px;
}
.facts div { padding: 22px 20px 22px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--taupe-light); }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.facts span { font-size: 0.92rem; color: var(--charcoal); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--taupe-light); }
}

/* Topic list (Marriage & Family) */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 32px; }
.topic { padding: 26px 0; border-top: 1px solid var(--taupe); }
.topic h3 { margin-bottom: 0.35em; }
.topic p { margin: 0; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }

/* Book */
.book {
  width: min(300px, 70vw); aspect-ratio: 2 / 3; margin: 0 auto;
  background: var(--navy); color: var(--ivory); border-radius: 2px 6px 6px 2px;
  box-shadow: 18px 22px 0 -6px var(--taupe-light), inset 6px 0 0 rgba(0,0,0,.18);
  display: flex; flex-direction: column; justify-content: space-between; padding: 30px 26px;
}
.book .b-title { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; }
.book .b-rail { height: 2px; background: var(--rose); width: 60%; margin: 18px 0; }
.book .b-sub { font-size: 0.88rem; color: var(--taupe-light); }
.book .b-auth { font-family: var(--serif); font-size: 1.05rem; color: var(--taupe-light); }
.book img { width: 100%; height: 100%; object-fit: cover; }

.formats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; padding: 0; list-style: none; }
.formats li { font-size: 0.9rem; border: 1px solid var(--taupe); padding: 5px 12px; border-radius: 40px; }

/* My Favorite Things */
.mft-mark { font-family: var(--serif); font-style: italic; color: var(--rose-deep); }
.mft-head h1, .mft-head h2 { color: var(--navy); }
.section.rose .kicker { color: var(--rose-deep); }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-top: 1px solid var(--taupe-light); }
.list-plain li:last-child { border-bottom: 1px solid var(--taupe-light); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.panel { border-top: 2px solid var(--navy); padding-top: 22px; }
.panel.rose { border-top-color: var(--rose-deep); }
.panel.olive { border-top-color: var(--olive); }
.panel h3 { margin-bottom: 0.4em; }

/* Directory of other properties */
.directory { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.directory li { border-top: 1px solid rgba(231,226,216,.25); padding: 20px 0; }
.directory a { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.directory a:hover { text-decoration: underline; color: var(--ivory); }
.directory p { margin: 4px 0 0; font-size: 0.95rem; color: #CFC8BC; }
@media (max-width: 760px) { .directory { grid-template-columns: 1fr; } }

/* Pull quote */
.pull {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; color: var(--navy);
  border-left: 3px solid var(--rose); padding-left: 24px; margin: 0; max-width: 30ch;
}

/* ---------- Forms ---------- */

form.form { max-width: 720px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 500; color: var(--navy); margin-bottom: 6px; font-size: 0.97rem; }
.field .hint { font-size: 0.88rem; color: var(--olive-deep); margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; font: inherit; color: var(--charcoal); background: var(--paper);
  border: 1px solid var(--taupe); border-radius: var(--radius); padding: 11px 13px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choices label { font-weight: 400; color: var(--charcoal); display: flex; gap: 8px; align-items: center; margin: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #E8EBDD; color: var(--olive-deep); }
.form-status.err { background: var(--rose-wash); color: var(--rose-deep); }
[hidden] { display: none !important; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-top: 20px; }
.inline-form input[type="email"] {
  flex: 1 1 240px; font: inherit; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--taupe); background: var(--paper); color: var(--charcoal);
}

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

.site-footer { background: var(--navy); color: #CFC8BC; padding: 64px 0 40px; font-size: 0.95rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--ivory); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 14px; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); margin-bottom: 6px; }
.footer-base { border-top: 1px solid rgba(231,226,216,.2); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page entrance: one quiet moment on the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero .glass { animation: settle 1.1s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
}

/* Editorial notes for Joe & Danielle: remove before launch */
.note {
  border: 1px dashed var(--rose); background: var(--rose-wash); color: var(--rose-deep);
  padding: 14px 18px; border-radius: var(--radius); font-size: 0.93rem; max-width: var(--measure);
}

.faq dt { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin-top: 26px; }
.faq dd { margin: 6px 0 0; max-width: var(--measure); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-top: 28px; }
.gallery .photo { min-height: 260px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* Tighten the gap where an intro is followed directly by a compact section */
.hero + .section.tight, .page-hero + .section.tight { padding-top: 0; }
fieldset.field legend { padding: 0; }

/* Real-photo variant of the window: a single transom bar up in the sky, so no bar crosses a face */
.glass.transom::after {
  background: linear-gradient(to bottom, transparent calc(16% - 3px), var(--ivory) calc(16% - 3px), var(--ivory) calc(16% + 3px), transparent calc(16% + 3px));
}

/* Real book cover */
.book.cover { padding: 0; background: none; overflow: hidden; display: block; }
.book.cover img { display: block; }
.writing-grid { grid-template-columns: repeat(2, 1fr); }

/* My Favorite Things accent: borrowed from MyFavoriteThingsBA.com, scoped to its own block */
.mft { --mft-blush: #FCEEEF; --mft-line: #EBC9D0; --mft-crimson: #A8102E; --mft-crimson-deep: #8A0C25; --mft-rose: #C2486D; background: var(--mft-blush); }
.mft-host { font-size: .95rem; font-weight: 500; color: var(--mft-rose); margin-bottom: 4px; }
.mft-mark { display: inline-block; text-decoration: none; line-height: 1; margin: 6px 0 18px; padding-bottom: 10px; }
.mft-caps { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2.3rem, 4.6vw, 3.4rem); color: var(--mft-crimson); }
.mft-script { display: block; font-family: "Pinyon Script", cursive; font-size: clamp(2.8rem, 5.6vw, 4.2rem); color: var(--mft-rose); margin: 4px 0 0 22%; line-height: .9; }
.mft-tag { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-style: normal; font-size: 1.3rem; color: var(--mft-crimson); border-top: 1px solid var(--mft-line); padding-top: 14px; }
.mft-btn { background: var(--mft-crimson); border-color: var(--mft-crimson); }
.mft-btn:hover { background: var(--mft-crimson-deep); border-color: var(--mft-crimson-deep); }
.mft-photo { border-radius: 50% 50% var(--radius) var(--radius); overflow: hidden; border: 1px solid var(--mft-line); box-shadow: 0 0 0 8px var(--mft-blush), 0 0 0 9px var(--mft-line); aspect-ratio: 4 / 5; }
.mft-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mft-inline { color: #A8102E; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.mft-inline em { font-family: "Pinyon Script", cursive; font-style: normal; font-weight: 400; font-size: 1.5em; color: #C2486D; }
.mft-inline:hover { text-decoration: underline; color: #8A0C25; }
@media (max-width: 860px) { .mft-photo { order: -1; aspect-ratio: 1 / 1; } }
