:root {
  --cream: #f4efe6;
  --paper: #fbf8f2;
  --navy: #14263b;
  --navy-soft: #1c334e;
  --rust: #b5532a;
  --rust-ink: #a24a25;
  --muted: #4a5c70;
  --line: rgba(20, 38, 59, 0.16);
  --serif: "DM Serif Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(20, 38, 59, 0.06);
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(181, 83, 42, 0.09), transparent 60%),
    var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  border-top: 4px solid var(--rust);
  text-rendering: optimizeLegibility;
}

body:has(.text-bar) {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

body::selection,
::selection {
  background: var(--navy);
  color: var(--cream);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.mast {
  padding: 18px 20px 0;
}

.mast-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: min(440px, 100%);
  margin: 0 auto;
}

.mast-inner p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.mast-inner p + p::before {
  content: "·";
  margin: 0 0.7rem;
  color: var(--rust);
  letter-spacing: 0;
}

.wrap {
  width: min(440px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 12px;
}

.banner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 210px;
  background: var(--navy);
  color: var(--cream);
}

.banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  padding: 16px 12px 78px 16px;
}

.banner-kicker,
.banner-brand {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.banner-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5.4vw, 2.7rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.banner-sub {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  font-weight: 500;
}

.banner-photo {
  position: relative;
  min-height: 210px;
}

.banner-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.cover-credit {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  white-space: nowrap;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(20, 38, 59, 0.78);
  color: var(--cream);
  font-size: 0.62rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.identity {
  position: relative;
  z-index: 2;
  /* Half the circle sits on the banner, matching the mockup. */
  margin-top: -19vw;
  text-align: center;
}

.hero {
  text-align: center;
  padding: 28px 0 8px;
}

.avatar-ring {
  /* About 38% of the card width, same proportion as the Canva template. */
  width: 38vw;
  height: 38vw;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 0;
  background: #fbf8f2;
  box-shadow: 0 0 0 4px #fbf8f2;
}

.avatar-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
}

h1,
.signature {
  margin: 6px 0 0;
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 5.1rem;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
}

.role {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.pills {
  display: grid;
  gap: 10px;
  width: min(440px, 100%);
  margin: 22px auto 0;
}

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 18px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
}

.pill svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.pill:hover,
.pill:active {
  background: var(--navy);
  color: var(--cream);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust {
  margin: 0;
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

.rule {
  width: 48px;
  height: 2px;
  margin: 14px auto 14px;
  background: var(--rust);
  border: 0;
}

.title {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.tagline {
  margin: 14px auto 0;
  max-width: 28ch;
  font-size: 1.05rem;
  line-height: 1.45;
}

.area {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.block {
  margin-top: 40px;
}

.brokered {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-bar {
  margin: 0;
  padding: 14px 16px;
  background: #e7e0d4;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.panel-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.guide-cover {
  width: 168px;
  margin: 2px auto 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 38, 59, 0.14);
}

.guide-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.newsletter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}

.newsletter-thanks {
  padding-top: 4px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 14px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--navy);
}

.btn-consult {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
  font-size: 1.02rem;
}

.btn-consult:hover,
.btn-consult:active {
  background: #8e3e1e;
  border-color: #8e3e1e;
  color: #fff;
}

.help-grid {
  display: grid;
  gap: 10px;
}

.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 16px 16px 18px;
  text-align: left;
  color: inherit;
  font: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 3px 0 var(--rust), var(--shadow);
  cursor: pointer;
}

.help-card:hover {
  border-color: rgba(181, 83, 42, 0.7);
}

.help-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-ink);
}

.help-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
}

.help-copy {
  font-size: 0.92rem;
  line-height: 1.45;
}

.chip-label {
  margin: 4px 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 500;
}

.chips-also li {
  border-color: rgba(181, 83, 42, 0.45);
}

.sales {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sale {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sale-photo {
  width: 96px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--muted);
  background: #efe8dc;
  border: 1px dashed rgba(20, 38, 59, 0.28);
}

.sale-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-address,
.sale-place,
.sale-status {
  margin: 0;
}

.sale-address {
  font-weight: 600;
}

.sale-place,
.sale-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.text-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 12px;
  box-shadow: inset 4px 0 0 var(--rust), 0 12px 28px rgba(20, 38, 59, 0.28);
  font-weight: 600;
}

.text-bar span:last-child {
  font-weight: 500;
  font-size: 0.92rem;
}

body:has(dialog[open]) .text-bar {
  display: none;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust-ink);
}

.stack {
  display: grid;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  box-shadow: inset 4px 0 0 var(--rust);
  font-size: 1.05rem;
}

.btn-primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

.btn-secondary {
  justify-content: space-between;
  background: transparent;
  color: var(--navy);
  border-color: rgba(20, 38, 59, 0.78);
  min-height: 52px;
  font-weight: 500;
  font-size: 0.98rem;
  text-align: left;
}

.btn-secondary .arrow {
  color: var(--rust);
  flex: none;
  transition: transform 160ms ease;
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.btn-secondary:hover .arrow,
.btn-secondary:active .arrow {
  color: var(--cream);
  transform: translateX(3px);
}

.btn-ghost {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow);
  min-height: 52px;
}

.btn-ghost:hover {
  border-color: var(--rust);
}

.pill:focus-visible,
.btn:focus-visible,
.quick a:focus-visible,
.social a:focus-visible,
.split a:focus-visible,
.close:focus-visible,
.footer a:focus-visible,
.help-card:focus-visible,
.text-bar:focus-visible,
.consent input:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.quick {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick > li > a,
.quick-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 1px;
  align-items: center;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick > li > a:hover,
.quick-card:hover {
  border-color: rgba(181, 83, 42, 0.55);
}

.emoji {
  grid-row: 1 / span 2;
  font-size: 1.25rem;
  line-height: 1;
}

.ql {
  font-weight: 600;
  font-size: 0.95rem;
}

.qv {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.split a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.split a:hover,
.split a:active {
  background: var(--navy);
  color: var(--cream);
}

.save {
  margin-top: 8px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.social a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  transition: background-color 160ms ease, color 160ms ease;
}

.social a:hover,
.social a:active {
  background: var(--navy);
  color: var(--cream);
}

.social svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer {
  padding: 0 0 28px;
  text-align: center;
}

.footer-inner {
  padding-top: 28px;
}

.footer-inner {
  width: min(440px, 100%);
  margin: 0 auto;
}

.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer p {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--navy);
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.eho svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.copy {
  margin-top: 14px !important;
  color: var(--muted) !important;
  letter-spacing: 0.08em;
}

.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;
}

dialog {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 24px 70px rgba(20, 38, 59, 0.32);
}

dialog::backdrop {
  background: rgba(20, 38, 59, 0.58);
}

dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 0 20px;
}

.dialog-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust-ink);
}

.dialog-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.1;
}

.close {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.close:hover {
  border-color: var(--rust);
}

.lead-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 20px 22px;
  -webkit-overflow-scrolling: touch;
}

.dialog-lead {
  margin: 12px 0 16px;
  color: var(--navy);
}

.field {
  margin: 0 0 14px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.req {
  color: var(--rust-ink);
}

.opt {
  font-weight: 500;
  color: var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 12px;
  border: 1px solid rgba(20, 38, 59, 0.28);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2314263B' stroke-width='1.8'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
  border-color: var(--navy);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--rust);
}

fieldset.field {
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segment label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  border: 1.5px solid rgba(20, 38, 59, 0.4);
  border-radius: 10px;
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
}

.segment input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.segment label:has(input:checked) {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.segment label:has(input:focus-visible) {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.form-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thanks {
  padding-top: 48px;
  padding-bottom: 24px;
  text-align: center;
}

.thanks h1 {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.05;
}

.about-page {
  padding-top: 20px;
  padding-bottom: 28px;
}

.about-page .avatar-ring {
  width: min(220px, 56vw);
  height: min(220px, 56vw);
  margin: 4px auto 6px;
}

.about-page h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1.05;
  text-align: center;
  margin: 10px 0 18px;
}

.about-copy p {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.about-page .btn {
  justify-content: center;
  text-align: center;
}

.back-link {
  display: block;
  margin-top: 4px;
  text-align: center;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thanks .tagline {
  margin-bottom: 22px;
}

.thanks .stack {
  text-align: left;
}

.thanks .btn {
  justify-content: center;
  text-align: center;
}

@media (min-width: 800px) {
  body,
  body:has(.text-bar) {
    padding: 22px 0 48px;
  }

  .text-bar {
    display: none;
  }

  .block {
    margin-top: 52px;
  }

  .mast-inner,
  .footer-inner {
    width: min(880px, calc(100% - 80px));
  }

  .mast-inner {
    justify-content: space-between;
  }

  .mast-inner p + p::before {
    content: none;
  }

  .wrap {
    width: min(880px, calc(100% - 80px));
  }

  .narrow {
    width: min(480px, 100%);
    margin-inline: auto;
  }

  .help-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .banner {
    min-height: 300px;
  }

  .banner-copy {
    padding: 40px 36px 56px 56px;
    gap: 10px;
  }

  .banner-photo,
  .banner {
    min-height: 300px;
  }

  .identity {
    margin-top: -19vw;
  }

  .avatar-ring {
    width: 38vw;
    height: 38vw;
    box-shadow: 0 0 0 5px #fbf8f2;
  }

  .banner-copy {
    max-width: 42%;
  }

  .signature,
  h1 {
    font-size: 6.6rem;
  }

  .hero {
    padding-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
