:root { --bg:#000; --fg:#fff; --dim:rgba(255,255,255,.45); --faint:rgba(255,255,255,.28); }

* { box-sizing:border-box; margin:0; padding:0; }
html, body { min-height:100%; background:var(--bg); color:var(--fg); }
body {
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
a { color:inherit; }

/* ---------- Home ---------- */
/* Photo slightly left of centre, links to its right */
.home main {
  flex:1; display:flex; align-items:center; justify-content:center;
  gap:clamp(32px, 5vw, 88px);
  padding:24px 24px 0;
  transform:translateX(-4vw);
}
.photo { flex:0 0 auto; }
.photo img {
  display:block; height:min(84vh, 1100px); width:auto; max-width:56vw; object-fit:cover;
  /* soften the edges into the black background */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
}

.side { display:flex; flex-direction:column; gap:28px; }
.side h1 {
  font-size:13px; font-weight:normal; letter-spacing:.32em; text-transform:uppercase;
  color:var(--fg);
}
.links { display:flex; flex-direction:column; gap:14px; }
.links a {
  display:flex; align-items:center; gap:12px;
  color:var(--dim); text-decoration:none; font-size:12px; letter-spacing:.06em;
  transition: color .2s;
}
.links a:hover, .links a:focus-visible { color:var(--fg); outline:none; }
.links svg { width:16px; height:16px; flex:0 0 auto; }

/* Phones / narrow windows: stack photo above links */
@media (max-width: 760px) {
  .home main { flex-direction:column; transform:none; gap:28px; padding-top:0; }
  .photo img { height:auto; width:100vw; max-width:none; max-height:72vh; }
  .side { align-items:center; }
  .links { align-items:flex-start; }
}

footer .credit { color:var(--faint); }

/* ---------- Footer (all pages) ---------- */
footer {
  display:flex; justify-content:center; gap:20px;
  padding:18px 16px calc(18px + env(safe-area-inset-bottom));
  font-size:11px; letter-spacing:.06em;
}
footer a { color:var(--faint); text-decoration:none; }
footer a:hover, footer a:focus-visible { color:var(--fg); }

/* ---------- Legal pages ---------- */
.legal main {
  flex:1; width:100%; max-width:640px; margin:0 auto;
  padding:56px 24px 40px;
  font-size:13px; line-height:1.7; color:rgba(255,255,255,.82);
}
.legal .back { display:inline-block; margin-bottom:40px; color:var(--dim); text-decoration:none; font-size:12px; }
.legal .back:hover { color:var(--fg); }
.legal h1 { font-size:15px; font-weight:normal; letter-spacing:.12em; text-transform:uppercase; margin-bottom:28px; color:var(--fg); }
.legal h2 { font-size:12px; font-weight:normal; letter-spacing:.1em; text-transform:uppercase; margin:32px 0 8px; color:var(--fg); }
.legal p, .legal ul { margin-bottom:12px; }
.legal ul { padding-left:18px; }
.legal a { color:var(--fg); }
.legal .note { color:var(--dim); font-size:12px; }
