/* ============================================================
   Global — variables, reset, base typography
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────
   Colours and type from the Figma file's variables
   ([INT] Maid's Head Website Design, Design system page).
   ─────────────────────────────────────────────────────────── */
:root {
    /* Colours */
    --color-copper:      #B5532E; /* Secondary/Copper — main buttons site-wide */
    --color-copper-text: #9E4423; /* Secondary/Copper text — copper text on light, 4.5:1 */
    --color-burgundy:    #510711; /* Accent/Bentley Burgundy — weddings buttons */
    --color-ochre:       #DB903F; /* Secondary/Lampshade Ochre — link hover on dark */
    --color-beamwood:    #140D0C; /* ink/Beamwood — main text, meetings & events buttons */
    --color-walnut:      #43291C; /* ink/Walnut — eyebrows, outlines */
    --color-ink-soft:    #3D372E; /* ink/Soft — small body text */
    --color-canvas:      #FAFAFA; /* paper/Neutral canvas — page background */
    --color-candle-wax:  #F0EFEC; /* paper/Candle wax — dividers */
    --color-linen:       #E1DDD6; /* pressed state on light buttons */
    --color-on-dark:     #FCFBFA; /* text on copper, burgundy and beamwood buttons */
    --color-teal:        #0E4341; /* Accent/Heritage teal — The WinePress panel */
    --color-umber:       #413326; /* body copy on the weddings and meetings sections */
    --color-umber-muted: rgba(65, 51, 38, 0.65); /* faded eyebrows */
    --color-on-dark-muted: rgba(240, 239, 236, 0.6); /* placeholders and hints on beamwood */
    --color-error:       #FF4E4E; /* field errors on beamwood */

    /* Fonts */
    --font-heading: "Fraunces", Georgia, serif;
    --font-body:    "Jost", sans-serif;

    /* Type scale — Figma variables, for reference when building section CSS */
    /* H5:      Fraunces Light 28px / 1.15, -0.5px */
    /* Lead:    Jost Regular   16px / 1.65, 0.5px */
    /* Small:   Jost Regular   14px / 1.15 */
    /* Eyebrow: Jost Regular   14px / 1.4, 4.48px (32%), uppercase */
    /* Italic:  Fraunces Italic 22px / 1.2 (16px on mobile) */
    /* Button:  Jost Medium    16px, 3.36px, uppercase */

    /* Spacing — section padding */
    --pad-x: 64px;
    --pad-y: 80px;
    --section-y: 64px; /* the home page sections */

    /* Layout */
    --site-max-w: 1312px; /* 1440 frame less 64px each side */

    /* Misc */
    --transition: 200ms ease;
}

/* ── Breakpoints ─────────────────────────────────────────────
   The only four on the site:
     Desktop  1367px and up    (no media query)
     Laptop   1025px – 1366px  @media (max-width: 1366px)
     Tablet   768px – 1024px   @media (max-width: 1024px)
     Mobile   767px and below  @media (max-width: 767px)
   ─────────────────────────────────────────────────────────── */

/* Tablet — 1024px and below (Figma 744px frames) */
@media (max-width: 1024px) {
    :root {
        --pad-x: 40px;
        --pad-y: 64px;
        --section-y: 48px;
    }
}

/* Mobile — 767px and below (Figma 393px frames) */
@media (max-width: 767px) {
    :root {
        --pad-x: 20px;
        --pad-y: 48px;
        --section-y: 48px;
    }
}


/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Links to an anchor stop below the sticky header. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-beamwood);
    background: var(--color-canvas);
    /* Fraunces' design settings; Jost has no such axes and ignores them. */
    font-variation-settings: "SOFT" 0, "WONK" 1;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

ul[class], ol[class] {
    list-style: none;
}


/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
}

/* A section's main heading — Figma Desktop/H1, Mobile/H1. The *word* in
   italics (maidshead_accent) takes the section's accent colour. */
.section-title {
    font-size: 68px;
    font-weight: 300;
    line-height: 0.94;
    letter-spacing: -1.02px;
    color: var(--color-beamwood);
}

.section-title em {
    color: var(--color-burgundy);
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
        line-height: 1.06;
        letter-spacing: -0.32px;
    }
}

/* Small uppercase label above a heading or list — Figma "Eyebrow". */
.eyebrow {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 4.48px;
    text-transform: uppercase;
    color: var(--color-walnut);
}


/* ── Utilities ──────────────────────────────────────────────── */

/* Read by screen readers, not shown. WordPress core expects themes to have it. */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    margin: 0;
    clip: auto;
    z-index: 100000;
    background: var(--color-canvas);
    color: var(--color-beamwood);
}

/* Keyboard focus only — components set their own designed ring. */
:focus:not(:focus-visible) {
    outline: none;
}
