/* Ladybug Lofts. Deliberately a different look from the canary site: warm
   cream ground, scarlet accent, near-black "shell" ink, serif headings, and a
   spot motif. Same class names, so the two sites stay structurally
   comparable when reading a rendered page side by side. No web fonts — this
   site loads nothing third-party except the injected GTM snippet. */
:root {
  --ink: #22201f;
  --muted: #6b625a;
  --accent: #c8352b;
  --accent-dark: #9a2620;
  --leaf: #3f7d3a;
  --spot: #22201f;
  --bg: #fdfaf4;
  --bg-soft: #f4efe4;
  --line: #e0d6c6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(34, 32, 31, 0.06), 0 10px 30px rgba(34, 32, 31, 0.08);
  --measure: 72rem;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.12;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
/* The beetle sitting in front of the wordmark. A real element rather than a
   `::before`, so it can be asserted in build.test.ts and screenshotted —
   pseudo-element decoration is invisible to some browser configurations
   (verified 2026-08-31: a content blocker suppressed `::before` outright,
   glyph content included, which made a CSS-only mark unverifiable). */
.brand .mark {
  flex: 0 0 auto;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -0.2rem 0 0 var(--spot);
  align-self: center;
}
.brand .word {
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover {
  border-bottom-color: var(--leaf);
}
.site-header nav a[aria-current="page"] {
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.site-header nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 0;
}
.site-header nav .nav-cta:hover {
  background: var(--accent-dark);
}

/* Layout */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
section {
  margin: 3rem 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44rem;
}
.address {
  color: var(--muted);
  margin: 0 0 1rem;
}
.fine-print {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 44rem;
}
code {
  font-size: 0.9em;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
}
.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.button-secondary {
  background: transparent;
  color: var(--accent);
}
.button-secondary:hover {
  background: var(--bg-soft);
  color: var(--accent-dark);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

/* Hero */
.hero {
  position: relative;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-copy {
  padding: 1.5rem;
  color: #fff;
}
.hero-copy .eyebrow {
  /* The hero photo runs bright sky to dark hedge behind this line, so the
     text sits on its own dark pill instead of relying on the image. */
  display: inline-block;
  color: #ffd9d3;
  background: rgba(34, 32, 31, 0.74);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero-copy .lede {
  color: rgba(255, 255, 255, 0.87);
}
.hero-copy .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.hero-copy .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
@media (min-width: 56rem) {
  .hero img {
    aspect-ratio: auto;
    min-height: 32rem;
    max-height: 40rem;
  }
  .hero-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 3rem 2.5rem 2.5rem;
    max-width: 41rem;
    background: linear-gradient(
      to top,
      rgba(34, 32, 31, 0.95),
      rgba(34, 32, 31, 0.72) 62%,
      transparent
    );
    border-radius: 0 var(--radius) 0 0;
  }
}

/* Grids and cards */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.card,
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.card h3,
.card p {
  padding: 0 1.1rem;
}
.card h3 {
  margin-top: 1rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.gallery img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.gallery figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Floor plans */
.page-title {
  margin-top: 2.25rem;
}
.plan {
  display: grid;
  gap: 0 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.plan img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.plan-body {
  padding: 1.35rem;
}
@media (min-width: 48rem) {
  .plan {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .plan img {
    aspect-ratio: auto;
    height: 100%;
  }
  .plan:nth-child(even) img {
    order: 2;
  }
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specs div {
  min-width: 0;
}
.specs dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.specs dd {
  margin: 0;
  font-weight: 700;
}

/* CTA band — the spot motif, drawn with gradients so nothing extra loads. */
.cta-band {
  position: relative;
  text-align: center;
  color: #fff;
  background-color: var(--accent);
  background-image: radial-gradient(
      circle at 12% 22%,
      var(--spot) 0 2.1rem,
      transparent 2.15rem
    ),
    radial-gradient(
      circle at 88% 78%,
      var(--spot) 0 1.6rem,
      transparent 1.65rem
    ),
    radial-gradient(circle at 78% 14%, var(--spot) 0 1rem, transparent 1.05rem),
    radial-gradient(
      circle at 22% 86%,
      var(--spot) 0 1.2rem,
      transparent 1.25rem
    );
  border-radius: var(--radius);
  padding: 3rem 1.25rem;
  overflow: hidden;
}
.cta-band h2,
.cta-band p {
  position: relative;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
}
.cta-band .button {
  position: relative;
  background: var(--bg);
  color: var(--accent-dark);
  border-color: var(--bg);
}
.cta-band .button:hover {
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}

/* Forms */
.forms {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  margin: 1.5rem 0;
}
form {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  align-content: start;
}
form h2 {
  font-size: 1.4rem;
}
label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}
input,
textarea,
button {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  border-radius: 999px;
}
button:hover {
  background: var(--accent-dark);
}
button:disabled {
  background: var(--muted);
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}
[role="status"] {
  color: var(--leaf);
  font-weight: 600;
  min-height: 1.5rem;
  margin: 0;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 3rem 0;
}
.not-found .lede {
  margin-inline: auto;
}
.not-found .hero-actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}
.disclaimer {
  background: #fdeceb;
  border: 1px solid #f0bdb8;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--ink);
}
