/* ==========================================================================
   Francis Davis Millet Institute - design tokens
   Source: Figma file wo9RmPUccR2OeLvr749rXQ, page "Prototype" (44:2).
   Where the UX Style Guide page and the prototype disagree, the prototype
   value is used. Values that exist only in the style guide are marked.

   Copy of build/base/tokens.css. The theme adds a few values, each marked
   where it stands: --fdm-measure-reading, --fdm-search-form-max,
   --fdm-password-form-max, --fdm-z-preview, --fdm-preview-bar-height and
   the --fdm-listing-* sizes moved here from build/research/research.css.
   ========================================================================== */

:root {
  /* ---- Colour: core ---------------------------------------------------- */
  --fdm-green-900: #262e0a;       /* header, footer, headings, text on gold, dark outlines */
  --fdm-ink: #1e2210;             /* body text */
  --fdm-gold-400: #efba5f;        /* primary buttons, labels on green, focus ring on green */
  --fdm-gold-500: #e3a843;        /* primary button hover (style guide 02) */
  --fdm-paper-50: #faf8f2;        /* page background, text on green */
  --fdm-paper-200: #edebe0;       /* bands, tags, inset panels, outline-button hover */
  --fdm-white: #ffffff;           /* cards, fields, drop-down */
  --fdm-rule: #d8d5c5;            /* dividers, card and field borders */
  --fdm-muted: #5c5a4e;           /* lead text, captions, placeholders */
  --fdm-slate: #516973;           /* small-caps metadata labels */
  --fdm-link: #1a5fa8;            /* links in text, always underlined */
  --fdm-error: #9c2f2f;           /* form errors (style guide 02; not drawn in the prototype) */

  /* ---- Colour: on the green header and footer --------------------------- */
  --fdm-on-green: #faf8f2;        /* brand name, nav links */
  --fdm-on-green-soft: #e9e6d8;   /* footer links and text, search label */
  --fdm-on-green-muted: #b9bca4;  /* copyright line */
  --fdm-green-rule: #4a5230;      /* footer divider */
  --fdm-green-outline: #6b7154;   /* header search box border */

  /* ---- Colour: tints ---------------------------------------------------- */
  --fdm-green-tint: #e4ecdc;      /* selected radio option */
  --fdm-gold-tint: #fbefd3;       /* highlighted note panel */

  /* ---- Colour: roles ---------------------------------------------------- */
  --fdm-color-bg: var(--fdm-paper-50);
  --fdm-color-surface: var(--fdm-white);
  --fdm-color-surface-alt: var(--fdm-paper-200);
  --fdm-color-text: var(--fdm-ink);
  --fdm-color-heading: var(--fdm-green-900);
  --fdm-color-text-muted: var(--fdm-muted);
  --fdm-color-label: var(--fdm-slate);
  --fdm-color-border: var(--fdm-rule);
  --fdm-color-border-strong: var(--fdm-green-900);
  --fdm-color-focus: var(--fdm-green-900);
  --fdm-color-focus-on-green: var(--fdm-gold-400);

  /* ---- Font families (Google Fonts) ------------------------------------ */
  --fdm-font-heading: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fdm-font-body: "Crimson Text", Georgia, "Times New Roman", serif;
  --fdm-font-label: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fdm-weight-regular: 400;
  --fdm-weight-semibold: 600;

  /* ---- Type sizes: every size drawn in the prototype -------------------- */
  --fdm-fs-10: 10px;   /* tag */
  --fdm-fs-11: 11px;   /* kicker label, footer column heading */
  --fdm-fs-12: 12px;   /* small button, field label, byline, date caption */
  --fdm-fs-13: 13px;   /* button, chip */
  --fdm-fs-15: 15px;   /* fine print, phone caption */
  --fdm-fs-16: 16px;   /* small text, header search, caption */
  --fdm-fs-17: 17px;   /* nav, links, footer text, field text */
  --fdm-fs-18: 18px;   /* body */
  --fdm-fs-19: 19px;   /* large body: citations, form options, phone brand */
  --fdm-fs-20: 20px;   /* page lead, phone footer name */
  --fdm-fs-21: 21px;   /* home hero lead */
  --fdm-fs-23: 23px;   /* header brand */
  --fdm-fs-24: 24px;   /* footer name, phone card heading */
  --fdm-fs-26: 26px;   /* side-card heading */
  --fdm-fs-30: 30px;   /* card heading, work section heading */
  --fdm-fs-32: 32px;   /* list-item heading, form heading */
  --fdm-fs-36: 36px;   /* phone home title */
  --fdm-fs-38: 38px;   /* featured band heading, phone page title */
  --fdm-fs-40: 40px;   /* feature title */
  --fdm-fs-52: 52px;   /* work title */
  --fdm-fs-56: 56px;   /* page title (h1) */
  --fdm-fs-64: 64px;   /* home title (display) */

  /* Fluid sizes: exact at 390 and at 1440, linear in between. */
  --fdm-fs-display: clamp(36px, 25.6px + 2.66667vw, 64px);   /* 36 -> 64 */
  --fdm-fs-h1: clamp(38px, 31.3143px + 1.71429vw, 56px);     /* 38 -> 56 */

  /* ---- Line heights: ratios drawn in the prototype ---------------------- */
  --fdm-lh-105: 1.05;   /* display, h1 */
  --fdm-lh-108: 1.08;   /* work title, phone home title */
  --fdm-lh-110: 1.1;    /* header brand */
  --fdm-lh-115: 1.15;   /* h2, h3, h4 */
  --fdm-lh-120: 1.2;    /* nav, buttons, chips */
  --fdm-lh-130: 1.3;    /* labels, gallery captions */
  --fdm-lh-140: 1.4;
  --fdm-lh-145: 1.45;   /* phone card text */
  --fdm-lh-150: 1.5;    /* UI text, links, fields */
  --fdm-lh-155: 1.55;   /* body, leads */
  --fdm-lh-165: 1.65;   /* long reading text */

  /* Figma snaps every line box to a whole pixel. These are the snapped
     values for fixed-size text, so vertical rhythm matches the frames. */
  --fdm-lh-10: 13px;        /* 10 / 130% */
  --fdm-lh-11: 14px;        /* 11 / 130% */
  --fdm-lh-12: 14px;        /* 12 / 120% */
  --fdm-lh-12-loose: 18px;  /* 12 / 150% */
  --fdm-lh-12-label: 16px;  /* 12 / 130% */
  --fdm-lh-13: 16px;        /* 13 / 120% */
  --fdm-lh-15: 23px;        /* 15 / 150% */
  --fdm-lh-16: 24px;        /* 16 / 150% */
  --fdm-lh-17: 26px;        /* 17 / 150% */
  --fdm-lh-17-tight: 20px;  /* 17 / 120%, header nav */
  --fdm-lh-17-menu: 22px;   /* 17 / auto, drop-down items */
  --fdm-lh-18: 28px;        /* 18 / 155% */
  --fdm-lh-18-ui: 27px;     /* 18 / 150% */
  --fdm-lh-18-loose: 30px;  /* 18 / 165% */
  --fdm-lh-19: 29px;        /* 19 / 150% */
  --fdm-lh-19-loose: 32px;  /* 19 / 165% */
  --fdm-lh-20: 31px;        /* 20 / 155% */
  --fdm-lh-21: 33px;        /* 21 / 155% */
  --fdm-lh-23: 25px;        /* 23 / 110% */
  --fdm-lh-24: 36px;        /* 24 / 150%, footer name */
  --fdm-lh-24-heading: 28px;/* 24 / 115% */
  --fdm-lh-26: 30px;        /* 26 / 115% */
  --fdm-lh-26-auto: 31px;   /* 26 / auto, "No image available" heading */
  --fdm-lh-30: 34px;        /* 30 / 115% */
  --fdm-lh-30-loose: 36px;  /* 30 / 120%, work section heading */
  --fdm-lh-32: 37px;        /* 32 / 115% */
  --fdm-lh-36: 39px;        /* 36 / 108%, phone home title */
  --fdm-lh-38: 44px;        /* 38 / 115%, featured band heading */
  --fdm-lh-38-tight: 40px;  /* 38 / 105%, phone page title */
  --fdm-lh-40: 46px;        /* 40 / 115% */
  --fdm-lh-52: 56px;        /* 52 / 108%, work title */
  --fdm-lh-56: 59px;        /* 56 / 105%, page title */
  --fdm-lh-64: 67px;        /* 64 / 105%, home title */

  /* ---- Letter spacing ---------------------------------------------------- */
  --fdm-ls-0: 0;
  --fdm-ls-5: 0.05em;   /* small buttons, field labels */
  --fdm-ls-6: 0.06em;   /* buttons, bylines, date captions */
  --fdm-ls-8: 0.08em;   /* kicker labels, tags, footer headings */

  /* ---- Spacing steps: every gap and padding drawn in the prototype ------- */
  --fdm-space-2: 2px;
  --fdm-space-3: 3px;
  --fdm-space-4: 4px;
  --fdm-space-5: 5px;
  --fdm-space-6: 6px;
  --fdm-space-7: 7px;
  --fdm-space-8: 8px;
  --fdm-space-10: 10px;
  --fdm-space-12: 12px;
  --fdm-space-14: 14px;
  --fdm-space-16: 16px;
  --fdm-space-18: 18px;
  --fdm-space-20: 20px;
  --fdm-space-22: 22px;
  --fdm-space-24: 24px;
  --fdm-space-26: 26px;
  --fdm-space-28: 28px;
  --fdm-space-32: 32px;
  --fdm-space-36: 36px;
  --fdm-space-40: 40px;
  --fdm-space-45: 45px;
  --fdm-space-48: 48px;
  --fdm-space-56: 56px;
  --fdm-space-64: 64px;
  --fdm-space-72: 72px;
  --fdm-space-80: 80px;
  --fdm-space-112: 112px;

  /* ---- Layout ------------------------------------------------------------ */
  --fdm-page-max: 1440px;          /* Figma desktop frame */
  --fdm-content-max: 1216px;       /* 1440 minus two 112px gutters */
  --fdm-gutter-desktop: 112px;
  --fdm-gutter-phone: 20px;
  /* 20px at 390, 112px at 1440, linear in between. */
  --fdm-gutter: clamp(20px, -14.1714px + 8.7619vw, 112px);
  /* Header side padding: 20px at 390, 48px at 1440. */
  --fdm-header-gutter: clamp(20px, 9.6px + 2.66667vw, 48px);
  --fdm-header-height: 92px;
  --fdm-header-height-phone: 68px;
  --fdm-measure-lead: 820px;       /* page lead paragraph width */
  --fdm-measure-reading: 760px;    /* long reading text (research article, plain pages) */
  --fdm-search-form-max: 640px;    /* search field with its button (search results, page not found) */
  --fdm-password-form-max: 560px;  /* WordPress's password form for a protected page */
  --fdm-noimage-ratio: 386 / 480;  /* "No image available" panel */
  --fdm-noimage-logo: 64px;

  /* ---- Radius ------------------------------------------------------------ */
  --fdm-radius-2: 2px;     /* photographs and artwork frames */
  --fdm-radius-4: 4px;     /* buttons, fields, header search */
  --fdm-radius-6: 6px;     /* inset panel */
  --fdm-radius-8: 8px;     /* cards, drop-down */
  --fdm-radius-12: 12px;   /* tag, switch track */
  --fdm-radius-14: 14px;   /* phone chip */
  --fdm-radius-16: 16px;   /* chip */
  --fdm-radius-round: 999px;

  --fdm-radius-image: var(--fdm-radius-2);
  --fdm-radius-control: var(--fdm-radius-4);
  --fdm-radius-panel: var(--fdm-radius-6);
  --fdm-radius-card: var(--fdm-radius-8);
  --fdm-radius-tag: var(--fdm-radius-12);
  --fdm-radius-chip: var(--fdm-radius-16);

  /* ---- Borders ----------------------------------------------------------- */
  --fdm-border-width: 1px;
  --fdm-border-width-strong: 1.5px;    /* outlined button, active search field */
  --fdm-border-width-selected: 2px;    /* selected radio option */
  --fdm-border: 1px solid var(--fdm-rule);
  --fdm-border-strong: 1.5px solid var(--fdm-green-900);
  --fdm-border-selected: 2px solid var(--fdm-green-900);
  --fdm-border-dashed: 1px dashed var(--fdm-slate);        /* upload drop zone, 6-4 dash in Figma */
  --fdm-border-on-green: 1px solid var(--fdm-green-rule);
  --fdm-border-search-on-green: 1px solid var(--fdm-green-outline);

  /* ---- Icons ------------------------------------------------------------- */
  --fdm-icon-stroke: 1.75;   /* default line weight for inline SVG icons */
  --fdm-icon-size: 18px;

  /* ---- Shadow ------------------------------------------------------------ */
  --fdm-shadow-menu: 0 8px 24px 0 rgba(30, 34, 16, 0.18);   /* the only shadow in the prototype */

  /* ---- Focus ------------------------------------------------------------- */
  --fdm-focus-width: 2px;
  --fdm-focus-offset: 3px;

  /* ---- Motion ------------------------------------------------------------ */
  --fdm-duration: 150ms;
  --fdm-ease: ease;

  /* ---- Layers ------------------------------------------------------------ */
  --fdm-z-header: 100;
  --fdm-z-menu: 110;
  --fdm-z-skip: 200;
  --fdm-z-preview: 300;            /* "Preview of the new design" bar (theme only) */

  /* ---- Preview bar (theme only, not in Figma) ----------------------------- */
  --fdm-preview-bar-height: 40px;

  /* ---- Shared list layout (assets/css/lists.css) --------------------------
     Drawn in the Research, Featured and Sponsors frames. They sat in
     build/research/research.css because pages may not edit the base. */
  --fdm-listing-title-max: 1000px;     /* row title width */
  --fdm-listing-text-max: 900px;       /* row text width */
  --fdm-listing-heading-width: 384px;  /* split row: heading column */
  --fdm-listing-name-min: 200px;       /* split row: three 240px name columns at 1440 */
  --fdm-listing-name-lh: 28px;         /* 19px names on a 28px line */

  /* ---- Breakpoints (for reference; custom properties cannot be used in
          media queries) ----------------------------------------------------
     phone:   max-width 599.98px
     tablet:  600px to 1023.98px
     desktop: min-width 1024px
     ------------------------------------------------------------------------ */
}
