/* ownership.dk — one page, no scripts, nothing loaded from anywhere else. */

:root {
  --bg: #f4f5f7; --surface: #fff; --text: #0f1115; --muted: #555b66; --border: #dfe2e8;
  --accent: #2747d6;
  --band-bg: #0f1115; --band-text: #eef0f4; --band-muted: #9aa1ad; --band-border: #262a33; --band-accent: #8ea2ff;
  --shadow: 0 18px 50px rgb(15 20 40 / .12);
  /* each project's own colour, from its icon */
  --meetcha: #4d7c0f; --rentalhunt: #0f766e; --stumble: #6d28d9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f13; --surface: #161920; --text: #e8eaef; --muted: #9aa1ad; --border: #262a33;
    --accent: #8ea2ff;
    --band-bg: #161920; --band-text: #e8eaef; --band-muted: #9aa1ad; --band-border: #2b303a; --band-accent: #8ea2ff;
    --shadow: 0 18px 50px rgb(0 0 0 / .45);
    --meetcha: #9ccc5a; --rentalhunt: #2dd4bf; --stumble: #a78bfa;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .6rem; }

/* ---- the opening ---- */
.hero { padding-top: 4.5rem; padding-bottom: 5.5rem; }
.kicker {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
h1 {
  font-size: clamp(2.7rem, 8.2vw, 5.8rem); line-height: 1; letter-spacing: -.03em;
  margin: 0 0 1.8rem;
}
h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40rem; margin: 0; }

/* ---- the projects ---- */
.projects { padding-bottom: 5.5rem; }
.section-head { max-width: 42rem; margin-bottom: 2.2rem; }
.section-head p { margin: 0; font-size: 1.1rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.project {
  --p: var(--accent);
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--p); border-radius: 18px;
  padding: 1.6rem 1.6rem 1.4rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project--meetcha { --p: var(--meetcha); }
.project--rentalhunt { --p: var(--rentalhunt); }
.project--stumble { --p: var(--stumble); }
@media (hover: hover) {
  .project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.project__name {
  display: flex; align-items: center; gap: .7rem;
  font-weight: 780; font-size: 1.4rem; letter-spacing: -.03em;
}
.project__name img { border-radius: 11px; }
.project__kicker {
  margin: 1.3rem 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--p);
}
.project h3 { font-size: 1.5rem; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .8rem; }
.project p { margin: 0 0 1.4rem; }
.project__link {
  margin-top: auto; font-weight: 650; color: var(--p); text-decoration: none; overflow-wrap: anywhere;
}
/* the whole card is the link */
.project__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* keyboard focus outlines the card; browsers without :has() outline the link instead */
.project:has(.project__link:focus-visible) { outline: 3px solid var(--p); outline-offset: 3px; }
@supports selector(:has(a)) { .project__link:focus-visible { outline: none; } }

/* ---- the deal ---- */
.why { background: var(--band-bg); color: var(--band-text); padding: 5rem 0 5.5rem; }
.why .section-head p { color: var(--band-muted); }
.deal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.deal p { margin: 0; }
.deal__label {
  padding-bottom: .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.deal__label--them { color: var(--band-muted); }
.deal__label--us { color: var(--band-accent); }
.them, .us { position: relative; padding: 1.15rem 0 1.15rem 2.1rem; border-top: 1px solid var(--band-border); font-size: 1.08rem; }
.them { color: var(--band-muted); }
.us { font-weight: 600; }
.them::before, .us::before { position: absolute; left: 0; top: 1.15rem; width: 1.3rem; text-align: center; font-weight: 700; }
.them::before { content: "✕"; color: var(--band-muted); }
.us::before { content: "✓"; color: var(--band-accent); }

/* ---- how it's made, and the end ---- */
.plain { padding-top: 5rem; padding-bottom: 1rem; }
.plain h2, .plain p { max-width: 46rem; }
.plain p { font-size: 1.1rem; margin: 0; }

.closing { text-align: center; padding: 5rem 1.25rem 4.5rem; }
.closing__line {
  font-family: var(--serif); font-weight: 700; font-style: italic; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem); margin: 0 0 1.4rem;
}
.closing__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; margin: 0; font-weight: 650; }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 2.5rem; padding-bottom: 4rem; }
}
@media (max-width: 720px) {
  /* the deal as pairs: the usual one, then ours under it */
  .deal { grid-template-columns: minmax(0, 1fr); }
  .deal__label { display: none; }
  .us { border-top: 0; padding-top: 0; }
  .us::before { top: 0; }
  .why { padding: 4rem 0; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .project { padding: 1.3rem 1.25rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
  .project:hover { transform: none; }
}
