/* Colony Homes. One stylesheet, no script. Colours are tokens; dark follows the reader's setting. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #10201f;
  --ink-2: #4f5f5d;
  --accent: #0d6b63;        /* Colony teal: links, the button */
  --accent-hover: #09524c;
  --on-accent: #ffffff;
  --band: #0d6b63;          /* the footer, the same teal as the street that stands on it */
  --on-band: #ffffff;
  --on-band-2: #cdebe6;
  --focus: #0d6b63;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1716;
    --ink: #e8f2f0;
    --ink-2: #a3b8b5;
    --accent: #2ec4b6;
    --accent-hover: #62d8cd;
    --on-accent: #0c1716;
    --band: #0d5650;
    --on-band: #ffffff;
    --on-band-2: #c3e4de;
    --focus: #2ec4b6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--font); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 4.2vw + 1rem, 4.25rem); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 600 0.8rem/1.2 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--ink-2); max-width: 38rem; }

/* The logo along the top */
.bar { padding: 1.25rem 0; }
.brand { display: inline-flex; }
.brand img { height: 2.75rem; width: auto; }
@media (max-width: 40rem) { .brand img { height: 2.25rem; } }

/* The home page: one short screen, the street standing on the footer */
.home { display: flex; flex-direction: column; }
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero h1 { max-width: 15ch; margin-bottom: 1.5rem; }
.reach { margin-top: clamp(1.75rem, 3vw, 2.5rem); color: var(--ink-2); }
.email {
  display: inline-block; margin-top: 0.25rem;
  font-weight: 600; font-size: clamp(1.5rem, 2.6vw + 0.8rem, 2.5rem); line-height: 1.2; letter-spacing: -0.01em;
  overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 0.16em;
}
.note { margin-top: 1.5rem; color: var(--ink-2); }
.street { margin-top: auto; }
.street img { width: 100%; height: clamp(8.5rem, 16vw, 14.375rem); object-fit: cover; object-position: 50% 100%; }

/* The footer: a teal band */
.foot { background: var(--band); color: var(--on-band-2); padding: 1.5rem 0 2rem; font-size: 0.9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot a { color: var(--on-band); }
.foot a:hover { color: var(--on-band); text-decoration-thickness: 2px; }
.foot :focus-visible { outline-color: var(--on-band); }

/* Plain pages: privacy, not found */
.page { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem); margin-bottom: 1rem; }
.page h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
.page p + p, .page p + ul, .page ul + p { margin-top: 0.9rem; }
.page ul { padding-left: 1.2rem; margin: 0.9rem 0 0; }
.page li + li { margin-top: 0.4rem; }
.page .after { margin-top: 2.5rem; }
.muted { color: var(--ink-2); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
