/* harrysergeev.com — design tokens
   Every color, font size and key spacing on the site comes from here.
   Change a value once and it updates on every page. See /styleguide/ for a live preview. */

/* "block": while the font is still arriving the text waits (a fraction of a second), instead of
   showing in a system font first and then jumping into TT Firs Neue, which made the whole
   (long) play page flicker. */
@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/tt-firs-neue-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/tt-firs-neue-demibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

:root {
  /* ---- Color ---- */
  --color-bg: #000;            /* page background */
  --color-fg: #fff;            /* main text */
  --color-muted: #a3a3a3;      /* secondary text, hover state */
  --color-placeholder: #111;   /* shown while an image loads */

  /* ---- Font ---- */
  --font: "TT Firs Neue", Arial, sans-serif;
  --weight-regular: 400;
  --weight-bold: 600;

  /* ---- Type scale (size / line height) ----
     Big sizes are fluid: clamp(smallest, grows with the screen width, largest).
     The smallest value is used on a ~375px phone, the largest on a wide desktop,
     and the text scales smoothly in between instead of jumping at breakpoints.
     Unitless line heights are multiples of the font size. */
  --type-display: clamp(44px, 18.55px + 6.788vw, 100px);   /* home page name and menu */
  --type-display-lh: 1.02;
  --type-display-nav-lh: .95;
  --type-display-tracking: clamp(-1px, -.2px - .1vw, -.5px);
  --type-title: clamp(40px, 25.21px + 3.944vw, 82px);      /* page titles: director, works, demo */
  --type-title-lh: 1.03;
  --type-contact: clamp(40px, 25.21px + 3.944vw, 82px);    /* contact page links */
  --type-contact-lh: 1.12;
  --type-time: 40px;           /* audio player time */
  --type-time-lh: 52px;
  --type-heading: 28px;        /* role names, section headings */
  --type-heading-lh: 36px;
  --type-card-lh: 42px;
  --type-list: clamp(24px, 21.6px + .64vw, 28px);           /* production list on theater pages */
  --type-list-lh: 1.3;
  --type-nav: 26px;            /* name in the header, menu links */
  --type-nav-lh: 36px;
  --type-nav-tracking: -0.2px;
  --type-body: clamp(17px, 15.2px + .48vw, 20px);           /* running text */
  --type-body-lh: 1.25;
  --type-label: clamp(16px, 13.6px + .64vw, 20px);          /* small bold labels */
  --type-label-lh: 1.05;
  --type-caption: 17px;        /* download link */
  --type-small: 14px;          /* footer */
  --type-small-lh: 19px;
  --type-legal: 12px;          /* Impressum / Datenschutz links */
  /* The play text (reading pages): body size, plus these */
  --type-play-small: 20px;     /* chapter numbers and the author line under the title */
  --type-play-lh: clamp(23px, 22.63px + .095vw, 24px);      /* play paragraphs */
  --play-para-gap: clamp(12px, 9.03px + .762vw, 20px);      /* between paragraphs */
  --play-chapter-gap: clamp(8px, 3.54px + 1.143vw, 20px);   /* extra space under a chapter number */
  --play-note-bottom: max(32px, env(safe-area-inset-bottom));   /* the note under the play title, from the bottom of the screen */

  /* ---- Layout ---- */
  --gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));   /* space at the left/right edge of the page (more beside a phone's notch in landscape) */
  --col-gap: 24px;             /* gap between the two columns */
  --content-max: 813px;        /* max width of long text */
  --header-height: 54px;

  /* ---- Motion ---- */
  /* Three speeds and one curve for everything that moves:
     quick feedback (hover, buttons), a scene change (menu, page), and the stage
     lighting up (background videos and photos). */
  --ease: ease;
  --ease-out: cubic-bezier(.2, .7, .2, 1);  /* quick start, soft landing: used for almost all motion */
  --fast: .2s;                 /* hover and button feedback */
  --page-in: .55s;             /* new page / open menu arriving */
  --page-out: .25s;            /* old page leaving: always quicker than arriving */
  --ease-in-out: cubic-bezier(.6, 0, .25, 1);  /* slow start and end: the shadow spreading over the screen */
  --menu-in: 1s;               /* menu opening: the shadow spreads and the name grows */
  --menu-out: .8s;            /* menu closing / leaving the home page: the shadow shrinks into the corner */
  --bg-video-opacity: .65;
  --bg-video-fade: 3s;
  --bio-photo-opacity: .8;
}

/* No breakpoint blocks: the fluid sizes above cover every screen width. */
