:root {
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --ink: #1e2923;
  --muted: #667069;
  --line: #d8d8cf;
  --forest: #255a45;
  --forest-dark: #173d2e;
  --clay: #a85535;
  --amber: #8b6914;
  --success-bg: #deeee5;
  --warn-bg: #f5ead0;
  --low-bg: #efe3de;
  --radius: 14px;
  --shadow: 0 14px 38px rgba(32, 48, 39, .08);
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(37, 90, 69, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 90, 69, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.58;
}

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.masthead {
  padding: 64px 0 44px;
  color: #f8f7f1;
  background: var(--forest-dark);
  border-bottom: 7px solid var(--clay);
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr);
  gap: 64px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.masthead .eyebrow { color: #efb596; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 600; }
h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { margin: 12px 0 8px; font-size: clamp(1.45rem, 3vw, 2rem); }

.intro { max-width: 700px; margin: 18px 0 0; color: #dce5df; font-size: 1.1rem; }

.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  overflow: hidden;
}

.summary div { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.18); }
.summary div:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); border-right: 0; }
.summary dt { color: #b8c7bf; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.summary dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; }

main { padding-block: 38px 72px; }

.notice {
  margin-bottom: 54px;
  padding: 22px 24px;
  background: #f8eedf;
  border: 1px solid #dec9a8;
  border-radius: var(--radius);
}

.notice h2 { margin-bottom: 8px; font-family: "Aptos", "Segoe UI", sans-serif; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.notice p { margin: 0; }

section + section { margin-top: 62px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 20px; }
.count { padding: 7px 12px; color: var(--forest-dark); background: #dce9e2; border-radius: 999px; font-size: .84rem; font-weight: 800; white-space: nowrap; }

.offer {
  position: relative;
  margin-top: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--forest);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.offer-bath { border-top-color: #397488; }
.offer-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.category, .confidence { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.category { color: #fff; background: var(--forest); }
.offer-bath .category { background: #2f6577; }
.confidence.high { color: #214d37; background: var(--success-bg); }
.confidence.medium { color: #6b5010; background: var(--warn-bg); }
.confidence.low { color: #74402e; background: var(--low-bg); }
.location { margin: 0 0 20px; color: var(--muted); font-weight: 650; }

.price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
  border-block: 1px solid var(--line);
}

.price-row div { padding: 16px 18px 16px 0; }
.price-row span { display: block; color: var(--muted); font-size: .77rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.price-row strong { display: block; margin-top: 3px; font-size: 1.23rem; font-variant-numeric: tabular-nums; }

.offer-kitchen .price-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

details { margin-top: 12px; border-top: 1px solid var(--line); }
summary { min-height: 48px; padding: 13px 2px; color: var(--forest-dark); cursor: pointer; font-weight: 800; }
details p, details ul { margin-top: 4px; }
li + li { margin-top: 6px; }

a { color: #1b5b72; text-underline-offset: 3px; }
a:hover { color: #0f3543; }
a:focus-visible, summary:focus-visible { outline: 3px solid #e2a26f; outline-offset: 3px; }

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 11px 17px;
  color: #fff;
  background: var(--forest-dark);
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover { color: #fff; background: var(--forest); }

.method {
  padding: 30px;
  background: #e7e4da;
  border-radius: var(--radius);
}
.method h2 { margin-bottom: 18px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.method-grid p { margin: 0; }

footer { padding: 24px 0; color: #cbd5cf; background: #17231d; font-size: .86rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; }
.footer-grid p { margin: 0; }

@media (max-width: 760px) {
  .masthead { padding-top: 42px; }
  .masthead-grid { grid-template-columns: 1fr; gap: 30px; }
  .summary { max-width: 480px; }
  main { padding-top: 26px; }
  .section-heading { align-items: start; }
  .price-row, .offer-kitchen .price-row { grid-template-columns: 1fr; }
  .price-row div + div { border-top: 1px solid var(--line); }
  .method-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 22px, 1120px); }
  .offer, .notice, .method { padding: 19px; }
  .offer-topline { align-items: flex-start; flex-direction: column; }
  .section-heading { flex-direction: column; }
  .primary-link { width: 100%; text-align: center; }
}

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