/* ============================================================
   salimhafid.com
   White paper, black ink, admiral blue where needed.
   No external assets, no frameworks, no JS.
   ============================================================ */

:root {
  color-scheme: light;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
          "Segoe UI", Helvetica, Arial, sans-serif;

  --paper: #ffffff;
  --mat: #f7f7f7;
  --ink: #000000;
  --rule: #e2e2e2;
  --admiral: #1a4480;
  --admiral-deep: #12305e;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--admiral);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--admiral);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .button {
    transition: color 160ms ease, background-color 160ms ease,
                border-color 160ms ease, text-decoration-color 160ms ease;
  }
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

main {
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3.5rem, 9vw, 6rem);
}

/* ---------- Type ---------- */

h1 {
  font-weight: 600;
  font-size: clamp(2.35rem, 7.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}

/* ---------- Prose ---------- */

.stanza p {
  font-size: clamp(1.15rem, 3.2vw, 1.3rem);
  line-height: 1.9;
}

.stanza a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--admiral);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.stanza a:hover {
  color: var(--admiral);
}

/* ---------- Button ---------- */

.cta {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: var(--admiral);
  border: 1px solid var(--admiral);
  padding: 0.95rem 1.7rem;
}

.button:hover {
  background: var(--admiral-deep);
  border-color: var(--admiral-deep);
}

/* ---------- Plates (photographs & film) ---------- */

.plate {
  margin-top: clamp(2.25rem, 6vw, 3.25rem);
}

.plate-frame {
  border: 1px solid var(--rule);
  background: var(--mat);
  padding: clamp(0.85rem, 3vw, 1.4rem);
}

.plate-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.plate figcaption {
  margin-top: 1.15rem;
  padding-inline: 0.15rem;
}

.plate figcaption p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.plate + .plate {
  margin-top: clamp(3rem, 8vw, 4.5rem);
}

/* ---------- Video ---------- */

.video {
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--rule);
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
