/* Tropical Resort and Marina on Lake Beresford: brand tokens. Version 1, Nov 5, 2026.
   Link this file, then set data-palette on any section to change its colors.
   Every color on a page comes from a variable in this file. Flat color only: no gradients, glows or shadows.
   Contrast ratios for every pair live in contrast.md, written by tools/check_contrast.py. */

/* Fonts. All open license (SIL OFL 1.1). See fonts/README.md. */
/* Web pages load six files at most. Weight 500 draws as Regular and 600 as Bold, which took every page from 9 files and 184 KB to 6 files and 135 KB. Print pieces add fonts-full.css. */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

/* If the web fonts fail, these system fonts are resized to hold the same line breaks. */
@font-face { font-family: "Besley"; src: url("fonts/Besley-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Roboto Condensed Bold"), local("RobotoCondensed-Bold"); font-weight: 700; size-adjust: 92.6%; ascent-override: 108%; descent-override: 21.6%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Roboto Condensed Bold"), local("RobotoCondensed-Bold"); font-weight: 600; size-adjust: 90.4%; ascent-override: 110.6%; descent-override: 22.1%; line-gap-override: 0%; }
/* iPhones have no Arial Narrow or Roboto Condensed. Without this face they drop to full width Arial and the first screen grows a line. */
@font-face { font-family: "Barlow Condensed Fallback Apple"; src: local("Helvetica Neue Condensed Bold"), local("HelveticaNeue-CondensedBold"); font-weight: 700; size-adjust: 90.7%; ascent-override: 110.3%; descent-override: 22.1%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback Apple"; src: local("Helvetica Neue Condensed Bold"), local("HelveticaNeue-CondensedBold"); font-weight: 600; size-adjust: 88.6%; ascent-override: 112.9%; descent-override: 22.6%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("Roboto"); font-weight: 400 500; size-adjust: 96.6%; ascent-override: 103.6%; descent-override: 20.7%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 700; size-adjust: 91.6%; ascent-override: 109.1%; descent-override: 21.8%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif Fallback"; src: local("Georgia"), local("Noto Serif"), local("NotoSerif"); font-style: normal; size-adjust: 107.2%; ascent-override: 96.7%; descent-override: 31.3%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"), local("Noto Serif Italic"), local("NotoSerif-Italic"); font-style: italic; size-adjust: 97%; ascent-override: 106.8%; descent-override: 34.5%; line-gap-override: 0%; }

:root {
  /* Core colors. Use the role variables below in pages. These names exist so roles can point at them. */
  --c-deep-water: #0E2C49;
  --c-block-aqua: #9FD3C9;
  --c-terrazzo: #F5EFE3;
  --c-hull-white: #FFFFFF;
  --c-buoy-orange: #C2410C;
  --c-buoy-orange-press: #A33609;
  --c-pool: #14727F;
  --c-lake-blue: #1B5079;
  --c-live-oak: #2F4A2A;
  --c-spanish-moss: #C9D3B0;
  --c-pine-rafter: #5C3317;
  --c-knotty-pine: #8E5B28;
  --c-slate: #3D5266;
  --c-sand-rule: #D9D0BE;

  /* Roles. Terrazzo is the default palette. */
  --paper: var(--c-terrazzo);
  --ink: var(--c-deep-water);
  --ink-muted: var(--c-slate);
  --label: var(--c-pool);
  --link: var(--c-lake-blue);
  --rule: var(--c-sand-rule);
  --rule-strong: var(--c-deep-water);
  --panel: var(--c-hull-white);
  --panel-ink: var(--c-deep-water);
  --panel-muted: var(--c-slate);
  --accent: var(--c-block-aqua);
  --accent-ink: var(--c-deep-water);
  --cta: var(--c-buoy-orange);
  --cta-ink: var(--c-hull-white);
  --cta-press: var(--c-buoy-orange-press);
  --cta-edge: var(--c-buoy-orange);
  --focus: var(--c-deep-water);
  --cta-press-edge: var(--c-buoy-orange-press);   /* Edge of a pressed button. Deep Water keeps its terrazzo edge. */

  /* Form and message states. These sit on white or terrazzo only: fields never sit straight on a dark palette.
     Each one always comes with an icon and words, so color is never the only signal. */
  --state-error: var(--c-buoy-orange-press);   /* The rust of a pressed button: reads as a problem, and stays in the family. */
  --state-ok: var(--c-live-oak);
  --state-wait: var(--c-slate);
  --field-bg: var(--c-hull-white);
  --field-edge: var(--c-slate);
  --field-ink: var(--c-deep-water);
  --field-focus: var(--c-deep-water);          /* Fixed, because palette focus can be terrazzo or white, which vanishes on a white panel. */

  /* Type families */
  --font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback Apple", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, Arial, sans-serif;
  --font-ui: "Barlow", "Barlow Fallback", Roboto, Arial, sans-serif;
  --font-read: "Source Serif 4", "Source Serif Fallback", Georgia, "Noto Serif", serif;
  /* Sign voice: signs, plaques and paper on the property or in the hand. Never offer lines, buttons or page headlines. */
  --font-sign: "Besley", Georgia, "Noto Serif", serif;

  /* Type scale, phone first. 16px is 1rem. Comments give the phone and desktop sizes. */
  --fs-offer: clamp(3.5rem, 14vw, 6.5rem);                 /* 56 to 104. Offer lines only, may be caps. */
  --fs-h1: clamp(2.375rem, 1.7rem + 2.9vw, 4rem);          /* 38 to 64. Sentence case. */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.625rem);       /* 28 to 42. Sentence case. */
  --fs-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);     /* 22 to 26. Room names, card titles. */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);  /* 18 to 21. Hero subline. */
  --fs-body: 1.0625rem;                                    /* 17. Source Serif 4. */
  --fs-ui: 1rem;                                           /* 16. Buttons, prices, form text. */
  --fs-small: 0.9375rem;                                   /* 15. Notes. */
  --fs-legal: 0.8125rem;                                   /* 13. Floor. Nothing a guest must read goes under this. */
  --fs-label: 0.8125rem;                                   /* 13. Print pieces only. Web labels are sentence case at --fs-ui. */

  --lh-tight: 1.04;
  --lh-head: 1.1;
  --lh-body: 1.5;
  --ls-caps: 0.14em;
  --ls-plate: 0.04em;
  --ls-display: 0.002em;

  /* Spacing on a 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Edges. Bands, plates, cards and photos are square. Only buttons and fields round, and only slightly. */
  --r-none: 0;
  --r-btn: 4px;
  --r-field: 4px;
  --rule-hair: 1px;
  --rule-heavy: 3px;

  /* Layout */
  --gutter-phone: 16px;
  --gutter-photo: 8px;   /* White or terrazzo gap between a room photo and anything orange. */
  --tap-min: 48px;
  --measure: 65ch;
  --page-max: 1200px;
}

/* Six palettes. Each sets ink, paper, accent and CTA roles. All flat color. */

/* Terrazzo Floor: the house palette. Web pages, terms cards, reviews, anything read closely. */
[data-palette="terrazzo"] {
  --paper: var(--c-terrazzo);
  --ink: var(--c-deep-water);
  --ink-muted: var(--c-slate);
  --label: var(--c-pool);
  --link: var(--c-lake-blue);
  --rule: var(--c-sand-rule);
  --rule-strong: var(--c-deep-water);
  --panel: var(--c-hull-white);
  --panel-ink: var(--c-deep-water);
  --panel-muted: var(--c-slate);
  --accent: var(--c-block-aqua);
  --accent-ink: var(--c-deep-water);
  --cta: var(--c-buoy-orange);
  --cta-ink: var(--c-hull-white);
  --cta-press: var(--c-buoy-orange-press);
  --cta-edge: var(--c-buoy-orange);
  --focus: var(--c-deep-water);
}

/* Block Wall: the painted aqua walls. Ad panels, offer cards, soft site sections. */
[data-palette="block-wall"] {
  --paper: var(--c-block-aqua);
  --ink: var(--c-deep-water);
  --ink-muted: #1B3B54;
  --label: var(--c-deep-water);
  --link: var(--c-deep-water);
  --rule: #7DB8AD;
  --rule-strong: var(--c-deep-water);
  --panel: var(--c-terrazzo);
  --panel-ink: var(--c-deep-water);
  --panel-muted: var(--c-slate);
  --accent: var(--c-deep-water);
  --accent-ink: var(--c-terrazzo);
  --cta: var(--c-buoy-orange);
  --cta-ink: var(--c-hull-white);
  --cta-press: var(--c-buoy-orange-press);
  --cta-edge: var(--c-buoy-orange);
  --focus: var(--c-deep-water);
}

/* Deep Water: the lake in shadow. Lower thirds, plates, end cards. Never a whole web page. */
[data-palette="deep-water"] {
  --paper: var(--c-deep-water);
  --ink: var(--c-terrazzo);
  --ink-muted: #BFD3DC;
  --label: var(--c-block-aqua);
  --link: var(--c-block-aqua);
  --rule: #2C4A66;
  --rule-strong: var(--c-terrazzo);
  --panel: var(--c-terrazzo);
  --panel-ink: var(--c-deep-water);
  --panel-muted: var(--c-slate);
  --accent: var(--c-block-aqua);
  --accent-ink: var(--c-deep-water);
  --cta: var(--c-buoy-orange);
  --cta-ink: var(--c-hull-white);
  --cta-press: var(--c-buoy-orange-press);
  --cta-edge: var(--c-terrazzo);   /* Orange on this ground is 2.75:1, so the button gets a terrazzo edge. */
  --cta-press-edge: var(--c-terrazzo);
  --focus: var(--c-terrazzo);
}

/* Saltwater Pool: pool and summer pieces. Orange never touches this ground (1.08:1), so the CTA is white. */
[data-palette="pool"] {
  --paper: var(--c-pool);
  --ink: var(--c-hull-white);
  --ink-muted: #E8F3F1;
  --label: var(--c-hull-white);
  --link: var(--c-hull-white);
  --rule: #4E97A1;
  --rule-strong: var(--c-hull-white);
  --panel: var(--c-terrazzo);
  --panel-ink: var(--c-deep-water);
  --panel-muted: var(--c-slate);
  --accent: var(--c-block-aqua);
  --accent-ink: var(--c-deep-water);
  --cta: var(--c-hull-white);
  --cta-ink: var(--c-deep-water);
  --cta-press: var(--c-terrazzo);
  --cta-edge: var(--c-hull-white);
  --cta-press-edge: var(--c-terrazzo);
  --focus: var(--c-hull-white);
}

/* Live Oak: the oaks and the state park next door. Grounds and nature pieces. No orange here, it reads as Christmas (1.9:1). */
[data-palette="live-oak"] {
  --paper: var(--c-live-oak);
  --ink: var(--c-terrazzo);
  --ink-muted: #DDE3CC;
  --label: var(--c-spanish-moss);
  --link: var(--c-spanish-moss);
  --rule: #4A6445;
  --rule-strong: var(--c-terrazzo);
  --panel: var(--c-terrazzo);
  --panel-ink: var(--c-live-oak);
  --panel-muted: #435339;
  --accent: var(--c-spanish-moss);
  --accent-ink: var(--c-live-oak);
  --cta: var(--c-terrazzo);
  --cta-ink: var(--c-live-oak);
  --cta-press: var(--c-hull-white);
  --cta-edge: var(--c-terrazzo);
  --cta-press-edge: var(--c-hull-white);
  --focus: var(--c-terrazzo);
}

/* Pine Rafter: the dark ceiling beams. Room spec cards and lower thirds over water. Dark brown on purpose: never the mid pine as a large fill, it drifts to gold. */
[data-palette="pine"] {
  --paper: var(--c-pine-rafter);
  --ink: var(--c-terrazzo);
  --ink-muted: #E8DCC8;
  --label: var(--c-block-aqua);
  --link: var(--c-block-aqua);
  --rule: #7B5435;
  --rule-strong: var(--c-terrazzo);
  --panel: var(--c-terrazzo);
  --panel-ink: var(--c-pine-rafter);
  --panel-muted: #624126;
  --accent: var(--c-block-aqua);
  --accent-ink: var(--c-deep-water);
  --cta: var(--c-terrazzo);
  --cta-ink: var(--c-pine-rafter);
  --cta-press: var(--c-hull-white);
  --cta-edge: var(--c-terrazzo);
  --cta-press-edge: var(--c-hull-white);
  --focus: var(--c-terrazzo);
}
