/* The Oberdorfer Team: coming-soon page.
   Colors and type come from theme.json presets (generated from assets/css/tokens.css);
   the fallbacks after each var() keep the static preview identical. */
:root {
  --cs-navy: var(--wp--preset--color--navy, #071D2D);
  --cs-navy-700: var(--wp--preset--color--navy-700, #1A3446);
  --cs-ivory: var(--wp--preset--color--ivory, #F7F3EC);
  --cs-paper: var(--wp--preset--color--paper, #FBF9F5);
  --cs-gold: var(--wp--preset--color--gold, #B49A65);
  --cs-gold-ink: var(--wp--preset--color--gold-ink, #7A6438);
  --cs-gold-pale: var(--wp--preset--color--gold-pale, #D9C9A5);
  --cs-ink: var(--wp--preset--color--ink, #142A38);
  --cs-mist: var(--wp--preset--color--mist, #A3AEB3);
  --cs-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Times New Roman", serif;
  --cs-sans: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

body { margin: 0; background: var(--cs-navy); color: var(--cs-ivory); font-family: var(--cs-sans); -webkit-font-smoothing: antialiased; }
.cs-page, .cs-footer { margin: 0 !important; max-width: none !important; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }

/* ---- Page: navy field with the publication's inset gold frame ---------------- */
.cs-page { min-height: 100svh; box-sizing: border-box; padding: clamp(1rem, 3vw, 2rem); background: var(--cs-navy); display: grid; }
.cs-frame {
  position: relative; box-sizing: border-box; border: 1px solid var(--cs-gold); outline: 1px solid color-mix(in srgb, var(--cs-gold) 45%, transparent); outline-offset: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) 0; overflow: hidden;
}
.cs-frame > * { margin: 0; }

/* Brand: the wordmark with the typographic "Powered by" line (never a redrawn REWAP logo). */
.cs-brand { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.cs-brand > * { margin: 0 !important; }
.cs-logo { width: min(22rem, 80%); }
.cs-logo img { display: block; width: 100%; height: auto; }
.cs-powered { font: 600 0.6875rem/1.4 var(--cs-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--cs-mist); }

/* The announcement: a gold-ruled small-caps line over a large italic "Coming soon". */
.cs-announce { margin-top: clamp(2.5rem, 6vw, 4.5rem) !important; display: flex; flex-direction: column; align-items: center; width: 100%; }
.cs-announce > * { margin: 0 !important; }
.cs-announce__pre {
  display: flex; align-items: center; gap: 1.1rem; width: min(34rem, 100%);
  font: 600 0.75rem/1.4 var(--cs-sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cs-gold);
}
.cs-announce__pre::before, .cs-announce__pre::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--cs-gold)); }
.cs-announce__pre::after { background: linear-gradient(90deg, var(--cs-gold), transparent); }
.cs-announce__big {
  margin-top: 0.1em !important; font: 300 italic clamp(3.75rem, 15vw, 10rem)/0.95 var(--cs-display); letter-spacing: -0.02em;
  color: var(--cs-gold-pale); white-space: nowrap; padding-bottom: 0.08em;
  background: linear-gradient(180deg, #EFE4CB 0%, var(--cs-gold-pale) 45%, var(--cs-gold) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: cs-rise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
.cs-announce__pre { animation: cs-fade 1.4s ease both 0.2s; }
@keyframes cs-rise { from { opacity: 0; transform: translateY(0.12em); letter-spacing: 0.02em; } to { opacity: 1; transform: none; letter-spacing: -0.02em; } }
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }
@media (forced-colors: active) { .cs-announce__big { -webkit-text-fill-color: CanvasText; background: none; } }

/* Portrait beside the copy; stacked on small screens. */
.cs-grid {
  margin-top: clamp(2.5rem, 6vw, 4.5rem) !important; width: 100%; max-width: 70rem;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; text-align: left;
}
.cs-portrait { margin: 0 !important; position: relative; }
.cs-portrait::after { content: ""; position: absolute; inset: 0.75rem -0.75rem -0.75rem 0.75rem; border: 1px solid var(--cs-gold); pointer-events: none; }
.cs-portrait img { display: block; position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 20%; }
.cs-copy > * { margin: 0 !important; max-width: 38rem; }

.cs-kicker { font: 600 0.75rem/1.5 var(--cs-sans) !important; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cs-gold); }
.cs-display { margin-top: 1rem !important; font: 300 clamp(2.5rem, 5.2vw, 4.5rem)/1.02 var(--cs-display); letter-spacing: -0.015em; color: var(--cs-ivory); text-wrap: balance; }
.cs-display em { font-style: italic; color: var(--cs-gold-pale); }
.cs-pillars { margin-top: 1.25rem !important; font: 400 italic clamp(1.15rem, 1.9vw, 1.4rem)/1.4 var(--cs-display); color: var(--cs-gold-pale); }
.cs-lead { margin-top: 1.25rem !important; font-size: clamp(1rem, 1.5vw, 1.0625rem); line-height: 1.7; color: #D9D5CC; }
.cs-soon { margin-top: 1rem !important; font-size: 1rem; line-height: 1.6; color: var(--cs-ivory); font-weight: 600; }

.cs-actions { margin-top: 1.75rem !important; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cs-btn { margin: 0 !important; }
.cs-btn .wp-block-button__link {
  display: inline-block; box-sizing: border-box; min-height: 48px; padding: 0.95rem 1.6rem; border-radius: 0; border: 1px solid var(--cs-ivory);
  background: transparent; color: var(--cs-ivory); font: 600 0.75rem/1.4 var(--cs-sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.cs-btn .wp-block-button__link:hover { background: var(--cs-ivory); color: var(--cs-navy); }
.cs-btn--gold .wp-block-button__link { background: var(--cs-gold); border-color: var(--cs-gold); color: var(--cs-navy); }
.cs-btn--gold .wp-block-button__link:hover { background: var(--cs-gold-pale); border-color: var(--cs-gold-pale); }

/* Contact lines: name, phone and email, each on its own line on phones. */
.cs-contacts { margin-top: 2rem !important; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--cs-gold) 45%, transparent); scroll-margin-top: 2rem; }
.cs-contacts > * { margin: 0 !important; }
.cs-contacts > * + * { margin-top: 0.75rem !important; }
.cs-person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; font-size: 0.9375rem; line-height: 1.5; color: #D9D5CC; }
.cs-person strong { font: 400 1.25rem/1.2 var(--cs-display); color: var(--cs-ivory); min-width: 11.5rem; }
.cs-person a { color: var(--cs-ivory); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--cs-gold) 60%, transparent); overflow-wrap: anywhere; }
.cs-person a:hover { color: var(--cs-gold-pale); border-bottom-color: var(--cs-gold-pale); }
.cs-person a.cs-vcard {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; border-bottom: 0;
  font: 600 0.6875rem/1.4 var(--cs-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cs-gold);
}
.cs-person a.cs-vcard::before { content: "+"; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border: 1px solid var(--cs-gold); font: 400 1rem/1 var(--cs-sans); letter-spacing: 0; }
.cs-person a.cs-vcard:hover, .cs-saveall a.cs-vcard:hover { color: var(--cs-gold-pale); }
.cs-saveall a.cs-vcard { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; text-decoration: none; font: 600 0.6875rem/1.4 var(--cs-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cs-gold); }
.cs-saveall a.cs-vcard::before { content: "+"; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border: 1px solid var(--cs-gold); font: 400 1rem/1 var(--cs-sans); letter-spacing: 0; }
.cs-saveall a.cs-vcard:hover::before { background: var(--cs-gold); color: var(--cs-navy); }
.cs-saveall { padding-top: 0.25rem; }
.cs-role { display: block; margin-top: 0.2rem; font: 600 0.625rem/1.4 var(--cs-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cs-mist); }
.cs-person a.cs-minor { border-bottom-color: transparent; font-size: 0.875rem; color: var(--cs-gold-pale); }
.cs-person a.cs-minor:hover { border-bottom-color: var(--cs-gold-pale); }
.cs-person a.cs-vcard:hover::before { background: var(--cs-gold); color: var(--cs-navy); }
.cs-serving { margin-top: 1.5rem !important; font: 400 italic 1.125rem/1.4 var(--cs-display); color: var(--cs-mist); }

@media (max-width: 52rem) {
  .cs-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cs-portrait { width: min(22rem, 86%); }
  .cs-copy { display: flex; flex-direction: column; align-items: center; }
  .cs-actions { justify-content: center; }
  .cs-contacts { width: 100%; }
  .cs-person { flex-direction: column; align-items: center; gap: 0.15rem; }
  .cs-person strong { min-width: 0; margin-bottom: 0.15rem; }
  .cs-saveall { text-align: center; }
  .cs-contacts > * + * { margin-top: 1.75rem !important; }
}

/* The townscape sits below the content, like the publication's house linework. */
.cs-townscape {
  display: block; margin-top: clamp(2rem, 4vw, 3rem) !important; margin-bottom: -1px !important;
  width: min(28rem, 100%); max-width: none !important; height: auto; color: var(--cs-gold); opacity: 0.6; pointer-events: none;
}

/* ---- Footer: the brokerage on its own ivory plate ---------------------------- */
.cs-footer { background: var(--cs-ivory); color: var(--cs-ink); padding: 2rem clamp(1rem, 4vw, 3rem); }
.cs-footer__inner { max-width: 72rem; margin: 0 auto !important; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: center; }
.cs-footer__inner > * { margin: 0 !important; }
.cs-rewap img { display: block; width: 180px; height: auto; }
.cs-footer__text > * { margin: 0 !important; }
.cs-footer__text > * + * { margin-top: 0.5rem !important; }
.cs-disclosure, .cs-copy { font-size: 0.8125rem; line-height: 1.6; color: var(--cs-ink); }
.cs-eho { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--cs-ink); }
.cs-eho svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.4; }
@media (max-width: 40rem) { .cs-footer__inner { grid-template-columns: 1fr; } }

/* ---- Focus, links, motion --------------------------------------------------- */
a:focus-visible, .wp-block-button__link:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 3px; }
.cs-footer a:focus-visible { outline-color: var(--cs-gold-ink); }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: 0.75rem 1rem; background: var(--cs-ivory); color: var(--cs-navy); }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 1ms !important; animation: none !important; } }
