/* subhan.com: cream, with one red horizon. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/albert-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/albert-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --cream: #faf9f5;
  --ink: #1d1b1c;
  --soft: #5a5552;
  --muted: #6b6461;
  --line: #d6d0cb;
  --red: #c8102e;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Phone sizes first; tablet and desktop below. */
  --fig-h: min(46svh, 105vw, 440px);   /* height of the photo */
  --h: clamp(80px, 17svh, 150px);      /* height of the red horizon above the bottom edge */
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- the horizon and the photo ---------- */
.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--h) - 1px);
  height: 2px;
  background: var(--red);
  z-index: 0;
}
.ground {
  position: fixed;
  z-index: 1;
  bottom: 0;
  right: 4px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
}
.figure {
  display: block;
  height: var(--fig-h);
  width: auto;
  max-width: none;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.10));
}

/* ---------- text ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: max(32px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.inner { width: 100%; max-width: 1120px; margin-inline: auto; }
.place { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.hero { display: grid; gap: 14px; align-content: start; margin-top: 12px; }
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: min(19.5vw, 5.5rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.tagline { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: min(5.1vw, 1.5rem); letter-spacing: 0.05em; text-transform: uppercase; color: var(--soft); }
.intro { margin: 0; max-width: 40ch; font-size: 15px; color: var(--soft); }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; min-height: 46px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font: 500 15px var(--font-body);
  transition: background-color .2s ease, border-color .2s ease;
}
a.pill:hover, button.pill:hover { background: #f1eee7; border-color: #c7c0ba; }
button.pill { cursor: pointer; }

.foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); text-underline-offset: 3px; align-self: flex-start; }
.foot a:hover { color: var(--ink); }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  :root { --fig-h: min(58svh, 760px); --h: clamp(90px, 13svh, 160px); }
  .stage { padding-top: max(52px, env(safe-area-inset-top, 0px)); padding-left: max(64px, env(safe-area-inset-left, 0px)); padding-right: max(56px, env(safe-area-inset-right, 0px)); padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)); }
  .ground { right: max(16px, 6.7vw); }
  .place { font-size: 12px; }
  .hero { margin-top: 48px; gap: 18px; }
  h1 { font-size: min(12.5vw, 6.5rem); }
  .tagline { font-size: min(3.4vw, 1.75rem); letter-spacing: 0.06em; }
  .intro, .pill { font-size: 16px; }
  .foot { flex-direction: row; gap: 22px; font-size: 14px; }
}

/* ---------- desktop: text on the left, photo on the right ---------- */
@media (min-width: 1024px) {
  :root { --fig-h: min(88svh, 980px); --h: clamp(80px, 12svh, 140px); }
  .stage { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  .ground { right: max(24px, calc((100vw - 1120px) / 2 - 100px)); }
  .hero { margin-top: auto; margin-bottom: auto; }
  .hero > * { max-width: min(64%, 720px); }  /* keep the text clear of the photo */
  h1 { font-size: clamp(5rem, 7.8vw, 7rem); }
  .tagline { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  .intro { font-size: 17px; }
  .foot { margin-top: 0; }
}

/* ---------- phones turned sideways (wide but short): text left, photo right, all on one screen ---------- */
@media (min-width: 600px) and (max-height: 520px) {
  :root { --fig-h: 94svh; --h: 16svh; }
  .stage { padding-top: max(20px, env(safe-area-inset-top, 0px)); padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); padding-left: max(32px, env(safe-area-inset-left, 0px)); gap: 14px; }
  .ground { right: max(24px, env(safe-area-inset-right, 0px)); }
  .hero { margin-top: 4px; gap: 10px; }
  .hero > * { max-width: 58%; }
  h1 { font-size: min(15svh, 5.5rem); }
  .tagline { font-size: min(5svh, 1.4rem); }
  .intro, .pill { font-size: 14px; }
  .foot { font-size: 12px; }
}

/* ---------- privacy page ---------- */
body.doc { background: var(--cream); color: var(--ink); }
.doc-main { max-width: 640px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 64px max(24px, env(safe-area-inset-left, 0px)); display: grid; gap: 18px; }
.doc-main h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
.doc-main p { font-size: 1.0625rem; color: var(--soft); }
.doc-main .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.doc-main .back:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }
