/* Paul Park Real Estate: tokens. One theme: off-white grounds, midnight text, the logo's blue as accent and as the colour of whole sections.
   Components read the semantic tokens only. Spacing is the 4px scale plus the layout tokens. */

@font-face { font-family: "Switzer"; src: url("../assets/fonts/switzer-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* raw colour */
  --midnight-900: #080E24;
  --midnight-700: #0B1330;
  --brand-blue: #0F4C94;
  --sky: #5AA2FF;
  --ivory: #FAFAF7;
  --ivory-deep: #EFEFEA;
  --cream: #F3EFE6;
  --slate: #4A5066;
  --mist: #B9BED0;

  /* semantic colour */
  --bg: var(--ivory);
  --bg-soft: var(--ivory-deep);
  --fg: var(--midnight-700);
  --fg-quiet: var(--slate);
  --accent: var(--brand-blue);
  --on-accent: var(--ivory);
  --line: rgba(11, 19, 48, 0.14);
  --line-strong: rgba(11, 19, 48, 0.4);
  --frame: rgba(250, 250, 247, 0.6);
  --glass: rgba(250, 250, 247, 0.6);
  --glass-strong: rgba(250, 250, 247, 0.84);
  --glass-blue: rgba(15, 76, 148, 0.5);
  --glass-card: rgba(250, 250, 247, 0.84);

  /* texture: fine grain, one soft diagonal band of light and shadow, and three column lines. Stacked under every ground. */
  --grain-on-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-on-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .07 0 0 0 0 .19 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --light-on-dark: linear-gradient(118deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.05) 32%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.2) 66%, rgba(0, 0, 0, 0) 86%);
  --light-on-light: linear-gradient(118deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.8) 32%, rgba(255, 255, 255, 0) 48%, rgba(11, 19, 48, 0.05) 66%, rgba(11, 19, 48, 0) 86%);
  --tex-grain: var(--grain-on-light);
  --tex-light: var(--light-on-light);
  --tex-cols: linear-gradient(transparent, transparent);

  /* section grounds */
  --band-soft: var(--ivory-deep);
  --band-blue: var(--brand-blue);
  --band-night: var(--midnight-700);
  --on-deep: var(--cream);
  --line-deep: rgba(243, 239, 230, 0.35);

  /* type: Switzer for headings, Inter for text. Six heading levels, one body size, one small size. */
  --font-display: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --t-h1: 15vw;
  --t-h2: clamp(32px, 4vw, 56px);
  --t-h3: clamp(26px, 2.6vw, 36px);
  --t-h4: 24px;
  --t-h5: 20px;
  --t-h6: 12px;
  --t-body: 16px;
  --t-small: 12px;

  /* spacing: 4px scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* layout: one section rhythm, one heading gap, one column grid */
  --section: 64px;
  --head-gap: 32px;
  --col-gap: 24px;
  --gutter: 16px;
  --grid-2: minmax(0, 1fr);
  --radius: 2px;
  --pill: 999px;
  --control: 48px;
  --inset: 16px;
  --max: 1312px;
  --header: 72px;
  --hero-top: 96px;
  --header-s: 64px;
  --logo: 40px;
  --mark: 32px;
  --frame-inset: 12px;
  --door-w: 200px;
  --portrait: 96px;
  --cue: 112px;
  --videos-h: auto;
  --step-photo: 240px;
  --step-no: 128px;
  --way-h: 280px;
  --foot-mark: 96px;
  --rev-w: 100%;
  --hero-photo: 100%;
}

@media (min-width: 768px) {
  :root {
    --t-h1: min(12.2vw, 176px);
    --section: 96px;
    --head-gap: 48px;
    --col-gap: 48px;
    --gutter: 32px;
    --header: 88px;
    --hero-top: 112px;
    --logo: 52px;
    --door-w: 248px;
    --portrait: 128px;
    --rev-w: 720px;
    --videos-h: min(56svh, 380px);
    --step-photo: 320px;
    --step-no: 160px;
    --way-h: 360px;
    --foot-mark: 160px;
  }
}

@media (min-width: 1024px) {
  :root {
    --t-h1: min(12.2vw, 19.5svh, 176px);
    --section: 128px;
    --gutter: 64px;
    --col-gap: 64px;
    --grid-2: minmax(0, 5fr) minmax(0, 7fr);
    --hero-photo: min(32vw, 46svh, 464px);
    --videos-h: min(56svh, 520px);
    --step-no: 256px;
    --way-h: min(46svh, 440px);
    --tex-cols: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 3 - 1px), var(--line) calc(100% / 3 - 1px), var(--line) calc(100% / 3));
  }
}
