/* Shared styles for the privacy and 404 pages.
   The homepage keeps the QA build's own stylesheet.
   Buttons use --coral-ink (#B8482F). White on that color is about 5.2:1. */

:root {
  --cream: #fbf6ee;
  --teal: #1f5e55;
  --teal-50: #e1eeea;
  --coral: #f07a5f;
  --coral-ink: #b8482f;
  --coral-50: #fde9e3;
  --gold: #e8b04b;
  --gold-50: #fbf0d9;
  --ink: #1e2a28;
  --muted: #5b6866;
  --card: #fff;
  --line: #ece4d8;
  --r: 24px;
  --sh: 0 8px 32px rgba(30, 42, 40, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
}

/* Author display rules beat the browser's [hidden] rule. Keep hidden hidden. */
[hidden] {
  display: none !important;
}

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

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding-inline: 24px;
}

.wrap.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 8px 16px;
  z-index: 9;
}

header {
  padding-block: 16px;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  background: var(--coral-ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(184, 72, 47, 0.28);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  background: #a23f29;
}

.btn.sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  box-shadow: none;
}

.btn-secondary {
  background: #fff;
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.btn-secondary:hover {
  background: var(--teal-50);
  color: var(--teal);
}

footer {
  padding-block: 40px 48px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

footer nav {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}

footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--teal);
  text-decoration: underline;
}

h1 {
  font-size: clamp(32px, 8.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--teal);
  font-weight: 800;
}

.page {
  padding-bottom: 48px;
}

.prose {
  padding-top: 32px;
}

.page h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 40px);
}

.updated {
  margin: 0 0 20px;
  color: var(--muted);
}

.prose h2 {
  margin: 32px 0 8px;
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.prose p,
.prose li {
  font-size: 16px;
}

.prose ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.prose li {
  margin: 8px 0;
}

.prose a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bracketed privacy notes still need a human to confirm them. */
mark.needs-confirm {
  background: var(--gold-50);
  color: var(--ink);
  font-weight: 700;
  padding: 0.05em 0.35em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.miss {
  padding-top: 48px;
  padding-bottom: 72px;
  text-align: center;
}

.miss p {
  max-width: 28em;
  margin: 16px auto 24px;
  color: var(--muted);
  font-size: 18px;
}

.miss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* People who saved homes on housewalkr.com before the app moved. */
.move-notice-off .move-notice {
  display: none;
}

.move-notice {
  background: var(--teal);
  color: #fff;
}

.move-notice-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 16px;
}

.move-notice p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.move-notice a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.move-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.move-backup,
.move-dismiss {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.move-backup {
  background: var(--cream);
  color: var(--teal);
  border: 2px solid var(--cream);
}

.move-dismiss {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.move-notice :focus-visible {
  outline-color: #fff;
}

.move-status {
  font-size: 14px;
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }

  mark.needs-confirm {
    background: Mark;
    color: MarkText;
  }
}
