/* Yasmin Macadar — shared tokens, faces and browser surfaces (site + brand guide) */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --mist: #f1f1ef;
  --graphite: #5c5c5a;
  --ash: #a9a9a6;

  --bg: var(--white);
  --ink: var(--black);
  --tone: var(--mist);
  --muted: var(--graphite);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --text: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.5rem, 1.4rem + 4.2vw, 5rem);
  --step-monument: clamp(4.25rem, 13.4vw, 15.5rem);

  --margin: clamp(16px, 2.4vw, 36px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --section: clamp(120px, 14vw, 220px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--black) var(--mist);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--black);
  -webkit-tap-highlight-color: transparent;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.is-dark { background: var(--black); color: var(--white); --muted: var(--ash); --tone: #1c1c1b; }

::selection { background: var(--black); color: var(--white); }
.is-dark ::selection { background: var(--white); color: var(--black); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--black); }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.is-dark :focus-visible { outline-color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--margin); top: -100px; z-index: 100;
  background: var(--black); color: var(--white); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }

.display {
  font-family: var(--display);
  font-weight: 500;
  /* opsz held at 28 (the logo's cut): above it the hairlines vanish at monument sizes */
  font-variation-settings: "opsz" 28;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

/* Buttons: square, flat, one shape everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px;
  background: var(--black); color: var(--white);
  border: 1.5px solid var(--black); border-radius: 0;
  font-family: var(--text); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform 320ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--white); color: var(--black); }
  .btn:hover .arrow { transform: translateX(4px); }
}
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: var(--black); color: var(--white); }
}

/* Text link with a drawn underline that grows on hover */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none; padding-bottom: 4px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 420ms var(--ease-out);
}
.link svg { width: 18px; height: 18px; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(1); }
  .link:hover svg { transform: translateX(4px); }
}
.link:focus-visible::after { transform: scaleX(1); }
