/* repo.bechou.dev — Lề's identity: asphalt, road paint, Lề red; Saira (SIL OFL). */
@font-face { font-family: "Saira"; src: url("fonts/Saira-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saira"; src: url("fonts/Saira-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira"; src: url("fonts/Saira-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #121315;          /* asphalt */
  --surface: #1c1e22;
  --ink: #f5f3ec;         /* road paint */
  --muted: #a6a49d;
  --accent: #dc3229;      /* Lề red, a shade deeper so white type on it reads at 4.6:1 */
  --accent-press: #c2281f;
  --accent-ink: #ffffff;
  --paint: #f5f3ec;  --paint-ink: #121315;
  --red: #e4362e;    --red-ink: #000000;
  --blue: #1c5cd6;   --blue-ink: #f5f3ec;
  --amber: #ffb020;  --amber-ink: #121315;

  --s-small: 0.875rem;                                   /* 14px */
  --s-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);   /* 17–19px */
  --s-lead: clamp(1.375rem, 1rem + 1.1vw, 2.125rem);     /* 22–34px, statements */
  --s-head: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem);     /* 36–68px */
  --s-display: clamp(3.5rem, 1rem + 7.6vw, 7.75rem);     /* 56–124px */

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: 20px;
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 var(--s-body)/1.5 "Saira", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); }

/* One button: square corners, one fill. */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--s-body);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.button:hover { background: var(--accent-press); }
.button:active { transform: translateY(1px) scale(.985); }
.button--ink { background: var(--paint-ink); color: var(--paint); }
.button--ink:hover { background: #2a2c31; }

.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; transition: color .18s var(--ease); }
.link:hover { color: var(--amber); }

/* Navigation: wordmark, three links, the action. */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; gap: 28px; padding: 24px var(--margin); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.375rem; text-decoration: none; letter-spacing: -0.01em; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: var(--s-body); transition: color .18s var(--ease); }
.nav__links a:hover { color: var(--amber); }

/* Section entrances: heading, then text, then picture. Content stays visible without script. */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav { gap: 16px; padding: 16px var(--margin); }
  .nav__links { display: none; }
  .nav .button { margin-left: auto; min-height: 44px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}
