/*
  DESIGN TOKENS
  All colors, fonts and key sizes live here, so the palette can be
  changed in one place once the real photographs are in.

  Layout concept: a quiet white wall. Thin type, wide margins, and
  photographs hung at irregular heights.
  The palette is neutral on purpose and has no accent color yet.
*/
:root {
  /* Color */
  --paper: #ffffff;        /* header, menu and page edges: the top of the page background */
  --ink: #26282b;          /* main text */
  --ink-soft: #6a6d71;     /* secondary text */
  --line: #dfe0df;         /* hairlines */
  --placeholder: #ecedec;  /* behind images while they load */
  --lightbox: #f7f7f6;     /* lightbox background; dark can be tried here */

  /* Type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --size-small: 0.8125rem;
  --size-text: 1rem;
  --size-lead: 1.25rem;
  --size-title: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);

  /* Space */
  --gutter: clamp(16px, 3vw, 44px);
  --header-height: 76px;
  --page-width: 1760px;
  --travel-width: 1250px;  /* the Travel gallery width on large screens */

  /* The page background on every page: white at the top, turning slowly to
     warm white further down. First made for Stays & Spaces. */
  --spaces-background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 28%, #faf8f5 58%, #faf8f5 100%);
  --page-background: var(--spaces-background);

  /* Homepage slider */
  --slider-background: #ffffff;           /* behind "center" slides */
  --slider-fade: 1.2s;                    /* length of the cross-fade */
  --slider-portrait-height: 65%;          /* "center" photo height, share of the slider */
  --slider-portrait-max-width: 720px;     /* "center" photo never wider than this */
  --slider-frame: min(38px, 6vw);         /* white frame around "full" photos: 1 cm, a little less on phones */
  --slider-triptych-height: 78cqh;        /* "triptych" row height, share of the slider */
  --slider-triptych-gap: 14px;            /* space between the "triptych" photos */
}

/*
  RESPONSIVE SYSTEM
  Orientation decides on touch screens (tablets and phones):
    tablet held sideways   the desktop layout
    tablet held upright    the phone layout
    phone, either way      the phone layout
  Desktop windows (mouse or trackpad) are sorted by width alone.

  "Phone layout" is written in the CSS as these two extra conditions,
  added to a width limit with a comma (which means "or"):
    (pointer: coarse) and (orientation: portrait)
    (pointer: coarse) and (max-height: 500px)
  js/gallery.js uses the same rule for the galleries.
*/
@media (max-width: 900px),
       (pointer: coarse) and (orientation: portrait),
       (pointer: coarse) and (max-height: 500px) {
  :root { --header-height: 64px; }
}
