/* ================================================================
 *  demo-aparthotel-1.css — Framo theme for the Aparthotel demo
 *
 *  NGỌC DIỆP: the colours of a Huế garden house: shutter green, roof-tile
 *  terracotta, lacquer brown-black ink, warm paper; Alegreya headings
 *  and Be Vietnam Pro text. The template's own values are kept in
 *  demo-aparthotel-1.original.css: copy it over this file to go back.
 *
 *  The colors, fonts and layout settings of the Aparthotel
 *  demo (Framo Residences, serviced apartments for long and short stays in a city district (kitchens, workspaces, laundry, weekly cleaning)).
 *  Its pages load this file after the template's own CSS, so a value set
 *  here wins. Each brand color generates its own scale of tints and
 *  shades — change one line, the whole palette follows.
 *
 *  Your own CSS goes in custom.css, which loads after this file.
 * ================================================================ */

/* Body, heading and code fonts (Google Fonts), named in --font-sans /
   --font-heading below. Keep JetBrains Mono in
   the URL: code blocks use it (--font-mono). Since 2026-12-04 each page
   loads the fonts itself, with a <link rel="stylesheet" data-theme-fonts>
   in its head, not an @import here: Cloudflare keeps this file for hours
   and it cannot carry a version in its address, so a cached copy kept
   loading the old fonts. To change a font, change that link on every page
   and the names in custom.css (and below).
   Alegreya sets the headings: a calligraphic book serif (Huerta
   Tipográfica), warm and hand-made. Be Vietnam Pro sets the text and the
   labels: drawn by Vietnamese designers for Vietnamese first, so the stacked
   marks (ệ, ộ, ẩ) stay clear at every size. Both cover Vietnamese. Chosen
   2026-12-04 over Cormorant Garamond + Inter (the usual template pairing),
   Literata and Spectral, compared on the site's own EN and VI headings. */

/* Dark scheme: take ONE of these two lines out of this comment.
@import url("../dark.css");                                     the whole site dark
@import url("../dark.css") (prefers-color-scheme: dark);        dark when the visitor's system is
*/

:root {

    /* ------------------------------------------------------------
     *  BRAND COLORS
     * ------------------------------------------------------------ */
    --color-primary-base:    #2f5b47;   /* main color: garden green, the old shutters and banana leaves (buttons, links, the active unit tab); labels on it are white */
    --color-secondary-base:  #2a2420;   /* second color: lacquer brown-black ink for the text; the dark sections and the dark scheme take its warm hue */
    --color-tertiary-base:   #e8dfd1;   /* third color: warm paper, the page, panels and soft fills */
    --color-quaternary-base: #716a60;   /* fourth color: warm grey for meta */
    --color-accent-base:     #b45c36;   /* attention color: roof-tile terracotta, only for small details (stars, the slider, the badge) */

    /* Readable text (-ink), text on each fill (on-) and hover are derived
       from the seeds. */
    --color-on-primary: #fff;   /* labels on the brand fill: white (a preset picks its own) */

    --color-primary:       var(--color-primary-base);
    --color-primary-hover: oklch(from var(--color-primary-base) calc(l - 0.06) c h);

    /* ------------------------------------------------------------
     *  NEUTRALS
     *  Tinted by the seeds above, so a Style Switcher preset retints them
     *  too. A plain hex here fixes one for good.
     * ------------------------------------------------------------ */
    --color-text:        var(--color-secondary-base);   /* headings and body text: olive-black ink */
    --color-text-soft:   oklch(from var(--color-secondary-base) 0.42 calc(c * 0.7) h);   /* running text: the ink softened */
    --color-text-muted:  oklch(from var(--color-quaternary-base) 0.5 c h);   /* meta text */
    --color-bg:          oklch(from var(--color-tertiary-base) 0.953 calc(c * 0.45) h);   /* page background: stone (#f2f0ea) */
    --color-bg-soft:     oklch(from var(--color-tertiary-base) 0.93 calc(c * 0.6) h);     /* a step deeper */
    --color-bg-muted:    oklch(from var(--color-tertiary-base) 0.905 calc(c * 0.8) h);    /* hover fills */
    --color-border:      oklch(from var(--color-tertiary-base) 0.86 calc(c * 0.8) h);     /* lines and borders */
    --color-border-soft: oklch(from var(--color-tertiary-base) 0.9 calc(c * 0.7) h);      /* the faintest rules */
    --color-dark:        var(--color-secondary-base);   /* dark sections and dark buttons */
    /* Brand-colored text on the ground, held at or under 0.5 lightness so a
       preset's lighter primary still reads at 4.5:1 */
    --color-primary-ink: oklch(from var(--color-primary-base) min(l, 0.5) c h);

    /* ------------------------------------------------------------
     *  TYPOGRAPHY
     * ------------------------------------------------------------ */
    --text-scale: 1;   /* text size, spacing follows: 0.875 = 14px · 1 = 16px · 1.125 = 18px */

    --font-sans:    'Be Vietnam Pro', system-ui, sans-serif;   /* body text */
    --font-heading: 'Alegreya', Georgia, serif;   /* headings */

    /* Headings and buttons */
    --heading-weight:     500;
    --heading-tracking:   -0.005em;
    --btn-font-weight:    600;                     /* 500–700 */
    --btn-letter-spacing: 0;                       /* button tracking */
    --btn-text-transform: none;                    /* or uppercase: buttons in capitals */

    /* ------------------------------------------------------------
     *  SHAPE
     * ------------------------------------------------------------ */
    --radius-scale:        1.5;      /* corner rounding: 0 square · 0.5 subtle · 1 · 1.5 round */
    --btn-radius-override: 9999px;  /* one shape for every button: 0px square · 0.5rem rounded · 9999px pill */

    /* ------------------------------------------------------------
     *  LAYOUT
     * ------------------------------------------------------------ */
    --container-max: 1400px;   /* widest content column (1140px, 1280px, 1320px, 1440px …) */
    --section-y-scale: 1.2;      /* space between sections: 0.75 compact · 1 · 1.25 spacious */
}

/* The floating island sits inside the hero's inset photo frame: the frame's
   inset plus a gutter of its own (the template's :root:has() rule sets the
   default; this one outranks it) */
html:root[data-demo="aparthotel-1"]:has(.header-floating) {
    --float-inset: 2.5rem;
}

@media (max-width: 1023px) {
    html:root[data-demo="aparthotel-1"]:has(.header-floating) { --float-inset: 1.25rem; }
}
