/* Augusto Gerocarni — the terrace belt
   Terrace-and-ironwork: committed brick red carrying bands of the page,
   neutral off-white ground (no cream), charcoal ink.
   Vollkorn (sturdy old-style serif) + Mulish (humanist sans). */

:root {
  color-scheme: light;
  --ground: oklch(0.98 0.003 60);
  --surface: #ffffff;
  --ink: oklch(0.26 0.02 35);
  --ink-soft: oklch(0.45 0.025 35);
  --brick: oklch(0.42 0.115 30);
  --brick-deep: oklch(0.35 0.1 30);
  --brick-tint: oklch(0.955 0.012 30);
  --iron: oklch(0.3 0.015 280);
  --line: oklch(0.9 0.008 40);
  --on-brick: oklch(0.97 0.012 40);
  --on-brick-soft: oklch(0.88 0.025 35);
  --radius: 8px;
  --font-display: "Vollkorn", Georgia, serif;
  --font-body: "Mulish", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.65;
  font-size: 16.5px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 640; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); margin-bottom: 0.55em; }
h1 em, h2 em { font-style: italic; font-weight: 600; }

.standfirst { color: var(--ink-soft); max-width: 58ch; margin-bottom: 2.4em; font-size: 1.04rem; }
.muted { color: var(--ink-soft); }
.section { padding: 96px 0; }
.section-warm { background: var(--brick-tint); }
.section-brick { background: var(--brick); color: var(--on-brick); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-brick a:focus-visible { outline-color: var(--on-brick); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--ground) 93%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 68px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  margin-right: auto; white-space: nowrap;
}
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.site-nav a:hover { color: var(--brick); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px;
  border-radius: var(--radius); text-decoration: none;
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--brick); color: var(--on-brick); }
.btn-solid:hover { background: var(--brick-deep); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.85); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.header-cta { padding: 9px 18px; font-size: 0.88rem; white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 16, 12, 0.35) 0%, rgba(24, 16, 12, 0.06) 36%, rgba(24, 16, 12, 0.5) 64%, rgba(24, 16, 12, 0.87) 100%),
    radial-gradient(115% 85% at 16% 90%, rgba(24, 16, 12, 0.5) 0%, rgba(24, 16, 12, 0) 58%);
}
.hero-content {
  position: relative; color: #fff;
  padding-bottom: 80px; padding-top: 170px;
  text-shadow: 0 1px 3px rgba(16, 10, 8, 0.55), 0 6px 26px rgba(16, 10, 8, 0.45);
}
.hero-id { font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.95); margin-bottom: 1.15em; }
.hero-id::after { content: ""; display: block; width: 56px; height: 3px; background: #fff; opacity: 0.9; margin-top: 13px; border-radius: 2px; }
.hero-sub { max-width: 500px; margin-top: 1.2em; font-size: 1.1rem; color: rgba(255, 255, 255, 0.96); }
.hero-actions { display: flex; gap: 14px; margin-top: 2.1em; flex-wrap: wrap; text-shadow: none; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about-text p { max-width: 62ch; text-wrap: pretty; }
.about-text p + p { margin-top: 1em; }
.about-figure img { width: 100%; border-radius: var(--radius); display: block; }
.about-figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.awards { margin-top: 1.7em; border-top: 1px solid var(--line); padding-top: 1.2em; }
.awards summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--brick); }
.awards summary:hover { text-decoration: underline; }
.awards ul { margin: 0.9em 0 0 1.2em; }
.awards li { margin-bottom: 0.5em; font-size: 0.95rem; }

/* Before the sign goes up */
.prep-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.prep-grid > div p { color: var(--ink-soft); max-width: 40ch; }
.prep-list { list-style: none; }
.prep-list li {
  padding: 20px 0 20px 34px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 1.02rem;
}
.prep-list li:last-child { border-bottom: 1px solid var(--line); }
.prep-list li::before {
  content: "";
  position: absolute; left: 4px; top: 30px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brick);
}
.prep-list strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; display: block; margin-bottom: 2px; }

/* Patch */
.patch-list { list-style: none; max-width: 720px; }
.patch-list li {
  display: grid; grid-template-columns: 170px 1fr auto;
  gap: 18px; align-items: center;
  padding: 11px 0;
}
.patch-suburb { font-weight: 700; font-size: 0.98rem; }
.patch-bar {
  height: 16px; border-radius: 3px;
  background: var(--brick);
  width: calc(var(--n) * 5.5%);
  min-width: 12px;
  opacity: calc(0.55 + var(--n) * 0.03);
}
.patch-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brick-deep); }
.patch-rest { border-top: 1px solid var(--line); margin-top: 8px; display: block; padding-top: 14px; }
.patch-rest .patch-suburb { font-weight: 500; color: var(--ink-soft); font-size: 0.92rem; }

/* Listing cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px oklch(0.35 0.06 30 / 0.16); }
.card:hover .card-address { color: var(--brick); }
.card-img { aspect-ratio: 4 / 2.8; width: 100%; object-fit: cover; display: block; background: var(--brick-tint); }
.card-body { padding: 17px 19px 19px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-price { font-weight: 700; font-size: 0.95rem; color: var(--brick-deep); }
.card-address { font-family: var(--font-display); font-size: 1.16rem; font-weight: 700; line-height: 1.22; transition: color 0.15s ease; }
.card-suburb { color: var(--ink-soft); font-size: 0.9rem; }
.card-features { display: flex; gap: 14px; justify-content: space-between; color: var(--ink-soft); font-size: 0.88rem; margin-top: auto; padding-top: 10px; }
.card-note { color: var(--brick-deep); font-weight: 700; }
.badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--iron); color: #fff;
  padding: 3px 9px; border-radius: 4px; margin-bottom: 3px;
}
.listings-note { margin-top: 2em; color: var(--ink-soft); font-size: 0.94rem; }

/* Testimonials on brick */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote { background: oklch(0.38 0.105 30); border-radius: var(--radius); padding: 30px 32px; }
.quote blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; line-height: 1.55; font-weight: 500;
  color: var(--on-brick); text-wrap: pretty;
}
.quote cite { display: block; margin-top: 1.2em; font-style: normal; font-weight: 700; font-size: 0.9rem; color: var(--on-brick-soft); }
.quote:first-child { grid-column: 1 / -1; background: oklch(0.36 0.1 30); }
.quote:first-child blockquote { font-size: 1.3rem; max-width: 60ch; }
.section-brick h2 { color: var(--on-brick); }

/* Team */
.team-list { list-style: none; border-top: 1px solid var(--line); max-width: 720px; }
.team-list li {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.member-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; }
.member-role { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact-grid > div:first-child p { max-width: 46ch; color: var(--ink-soft); }
.contact-details { display: flex; flex-direction: column; gap: 13px; }
.contact-line {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 21px; text-decoration: none; color: var(--ink); font-weight: 700;
}
.contact-line span {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px;
}
a.contact-line:hover { border-color: var(--brick); }
.socials { display: flex; gap: 18px; margin-top: 5px; }
.socials a { color: var(--brick-deep); font-weight: 700; font-size: 0.92rem; text-decoration: none; padding: 6px 0; }
.socials a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 27px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.87rem; color: var(--ink-soft); }
.site-footer a { color: inherit; }

/* Reveal — JS applies .pre below the fold only, motion permitting */
.pre { opacity: 0; transform: translateY(15px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pre { opacity: 1; transform: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .section { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .prep-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-nav { display: none; }
  .patch-list li { grid-template-columns: 130px 1fr auto; gap: 12px; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 1.05rem; }
  .header-cta { padding: 8px 13px; font-size: 0.82rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 56px; }
  .patch-list li { grid-template-columns: 105px 1fr auto; }
  .patch-suburb { font-size: 0.88rem; }
}
