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

/* One theme: warm dark with soft purple. */
:root {
  color-scheme: dark;
  --bg: #1d1719; --surface: #282026; --text: #efe6df; --muted: #b9adb0; --border: #3a3036;
  --accent: #c8a6f7; --accent-soft: rgb(200 166 247 / .13); --glow: rgb(160 110 230 / .22);
  --band-bg: #271d2e; --band-text: #efe6df; --band-muted: #b9a9c0; --band-border: #3d3046; --band-accent: #d4b8fb;
  --shadow: 0 22px 50px rgb(8 3 10 / .55);
  /* each project's own colour, from its icon */
  --meetcha: #9ccc5a; --rentalhunt: #2dd4bf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", Nunito, "Varela Round", Quicksand, var(--sans);
}

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text);
  background: radial-gradient(70rem 42rem at 12% -12rem, var(--glow), transparent 70%) no-repeat, var(--bg);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.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: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6rem; }

/* ---- the opening ---- */
.hero { padding-top: 4.5rem; padding-bottom: 5.5rem; }
.kicker {
  display: inline-block; margin: 0 0 1.6rem; padding: .3rem .95rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font: 600 .95rem/1.5 var(--rounded);
}
h1 {
  font-size: clamp(2.7rem, 8.2vw, 5.8rem); line-height: 1.04; letter-spacing: -.025em;
  margin: 0 0 1.8rem;
}
h1 em { font-style: italic; font-weight: 500; 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(2, minmax(0, 1fr)); gap: 1.4rem; }
.project {
  --p: var(--accent);
  position: relative; display: flex; flex-direction: column;
  /* a soft wash of the project's colour from the top corner */
  background: radial-gradient(28rem 16rem at 0 0, color-mix(in srgb, var(--p) 11%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--border); border-radius: 26px;
  padding: 1.75rem 1.75rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project--meetcha { --p: var(--meetcha); }
.project--rentalhunt { --p: var(--rentalhunt); }
@media (hover: hover) {
  .project:hover {
    transform: translateY(-3px); box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--p) 35%, var(--border));
  }
}
.project__name {
  display: flex; align-items: center; gap: .75rem;
  font: 700 1.4rem/1.2 var(--rounded); letter-spacing: -.02em;
}
.project__name img { border-radius: 14px; }
.project__kicker { margin: 1.3rem 0 .4rem; font: 600 .95rem/1.5 var(--rounded); color: var(--p); }
.project h3 { font-size: 1.5rem; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 .8rem; }
.project p { margin: 0 0 1.4rem; }
.project__link {
  margin-top: auto; font-family: var(--rounded); font-weight: 600; 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: 600 .95rem/1.5 var(--rounded); }
.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.4rem; border-top: 1px solid var(--band-border); font-size: 1.08rem; }
.them { color: var(--band-muted); }
.us { font-weight: 500; }
.them::before, .us::before {
  position: absolute; left: 0; top: 1.3rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; line-height: 1;
}
.them::before { content: "✕"; color: var(--band-muted); background: rgb(185 169 192 / .1); }
.us::before { content: "✓"; color: var(--band-accent); background: rgb(212 184 251 / .16); }

/* ---- 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: 500; font-style: italic; letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem); margin: 0 0 1.6rem;
}
.closing__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 0; }
.closing__links a {
  padding: .45rem 1.15rem; border-radius: 999px; background: var(--accent-soft);
  font: 600 1rem/1.5 var(--rounded); text-decoration: none;
}
@media (hover: hover) {
  .closing__links a:hover { background: rgb(200 166 247 / .22); }
}

/* ---- 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: .15rem; }
  .why { padding: 4rem 0; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .project { padding: 1.4rem 1.3rem 1.25rem; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
  .project:hover { transform: none; }
}
