/* ============================================================ */
/* 927 - England's 1100th Year - shared stylesheet              */
/* Loaded by every page. Itemised per house style.             */
/* ============================================================ */


/* ============================================================ */
/* 1. SECTION: Design Tokens                                    */
/* ============================================================ */

/* 1.1 Root custom properties */
:root {
    /* 1.1.1 Palette: manuscript lapis, gilt, parchment, claret */
    --ink:          #0E1A30;
    --ink-2:        #13233E;
    --lapis:        #26467F;
    --gold:         #C7A24C;
    --gold-soft:    #E4CA84;
    --parchment:    #F3EAD5;
    --parchment-2:  #EBDFC3;
    --claret:       #7C2A34;
    --stone:        #2B271F;
    --stone-soft:   #5B5344;

    /* 1.1.2 Type roles */
    --display: 'Cormorant Garamond', Georgia, serif;
    --body:    'EB Garamond', Georgia, serif;

    /* 1.1.3 Rhythm */
    --measure: 66ch;
    --pad-x:   clamp(1.25rem, 5vw, 4rem);
    --nav-h:   68px;
}
/* end of 1.1 Root custom properties */
/* end of 1. SECTION: Design Tokens */


/* ============================================================ */
/* 2. SECTION: Base & Reset                                     */
/* ============================================================ */

/* 2.1 Box model + margin reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* 2.2 Smooth in-page scrolling with sticky-nav offset */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

/* 2.3 Body base type and colour */
body {
    font-family: var(--body);
    background: var(--ink);
    color: var(--parchment);
    line-height: 1.6;
    font-size: clamp(1.05rem, 0.7rem + 0.7vw, 1.3rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 2.4 Responsive media */
img, svg { display: block; max-width: 100%; }

/* 2.5 Display headings */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; }

/* 2.6 Links inherit colour */
a { color: inherit; }
/* end of 2. SECTION: Base & Reset */


/* ============================================================ */
/* 3. SECTION: Layout Helpers                                   */
/* ============================================================ */

/* 3.1 Centred content column */
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--pad-x); }

/* 3.2 Narrow reading column */
/* 3.2.1 --measure is the reading width of the text itself. The wrap adds
   padding inside this box, so add it back or the line loses 2x --pad-x
   and drops to roughly 48 characters on a wide screen. */
.narrow { max-width: calc(var(--measure) + (var(--pad-x) * 2)); }

/* 3.3 Eyebrow label */
.eyebrow {
    font-family: var(--body);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
}

/* 3.4 Gold hairline divider */
.rule { width: 64px; height: 1px; background: var(--gold); opacity: 0.7; border: 0; margin: 1.5rem 0; }

/* 3.5 Section rhythm */
.band { padding: clamp(2.8rem, 5.2vw, 5rem) 0; }

/* 3.6 Parchment ground */
.band--light { background: var(--parchment); color: var(--stone); }
.band--light .eyebrow { color: var(--claret); }
.band--light .rule { background: var(--claret); }
.band--light .muted { color: var(--stone-soft); }

/* 3.7 Deep ground variant */
.band--deep { background: var(--ink-2); }

/* 3.8 Section heading scale */
.band h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); margin: 0.6rem 0 0; }

/* 3.9 Lead paragraph */
.lead { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); margin-top: 1.2rem; }

/* 3.10 Centred helper */
.center { text-align: center; display: grid; justify-items: center; }
.center .rule { margin-inline: auto; }
/* end of 3. SECTION: Layout Helpers */


/* ============================================================ */
/* 4. SECTION: Buttons                                          */
/* ============================================================ */

/* 4.1 Base button */
.btn {
    display: inline-block;
    font-family: var(--body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.85em 1.9em;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
/* 4.2 Primary: gilt */
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
/* 4.3 Ghost: outlined for dark grounds */
.btn--ghost { background: transparent; color: var(--parchment); border-color: rgba(199,162,76,0.55); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
/* 4.4 Ink variant for parchment grounds */
.btn--ink { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-2); transform: translateY(-2px); }
/* 4.5 Small button */
.btn--sm { padding: 0.55em 1.15em; font-size: 0.9rem; }
/* end of 4. SECTION: Buttons */


/* ============================================================ */
/* 5. SECTION: Site Header / Navigation                         */
/* ============================================================ */

/* 5.1 Sticky nav bar */
.nav {
    position: sticky; top: 0; z-index: 50;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(14,26,48,0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(199,162,76,0.28);
}
/* 5.2 Nav inner row */
.nav__row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
/* 5.3 Wordmark */
.nav__mark { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--gold-soft); letter-spacing: 0.06em; text-decoration: none; }
/* 5.4 Nav links cluster */
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
/* 5.5 Individual nav link */
.nav__link { text-decoration: none; font-size: 0.98rem; letter-spacing: 0.02em; color: rgba(243,234,213,0.82); transition: color .2s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-soft); }
/* 5.6 Underline for current page */
.nav__link[aria-current="page"] { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
/* 5.7 Hamburger toggle (hidden on desktop) */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; color: var(--parchment); }
.nav__toggle svg { width: 26px; height: 26px; }

/* 5.8 Mobile behaviour */
@media (max-width: 780px) {
    /* 5.8.1 Show toggle */
    .nav__toggle { display: block; }
    /* 5.8.2 Collapse links into drop panel */
    .nav__links {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--ink); border-bottom: 1px solid rgba(199,162,76,0.28);
        max-height: 0; overflow: hidden; transition: max-height .35s ease;
    }
    /* 5.8.3 Open state */
    .nav__links.is-open { max-height: 420px; }
    /* 5.8.4 Stacked link spacing */
    .nav__link { padding: 1rem var(--pad-x); border-top: 1px solid rgba(199,162,76,0.12); }
    /* 5.8.5 Nav CTA full-width row */
    .nav__links .btn { margin: 1rem var(--pad-x); text-align: center; }
}
/* end of 5. SECTION: Site Header / Navigation */


/* ============================================================ */
/* 6. SECTION: Heroes (home + interior)                         */
/* ============================================================ */

/* 6.1 Home hero shell */
.hero {
    position: relative;
    min-height: calc(100svh - var(--nav-h));
    display: grid; place-items: center; text-align: center;
    padding: 4rem 0;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% -10%, #1B3059 0%, var(--ink) 55%, #0A1424 100%);
}
/* 6.2 Star-field overlay */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(228,202,132,0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 70% 20%, rgba(228,202,132,0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 40% 70%, rgba(228,202,132,0.35) 50%, transparent 51%),
        radial-gradient(1px 1px at 85% 60%, rgba(228,202,132,0.3) 50%, transparent 51%),
        radial-gradient(1px 1px at 12% 82%, rgba(228,202,132,0.3) 50%, transparent 51%);
}
/* 6.3 Hero content stack */
.hero__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.4rem; }
/* 6.4 Hero headline */
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); font-weight: 600; letter-spacing: -0.01em; max-width: 16ch; }
/* 6.5 Hero lede */
.hero__lede { max-width: 54ch; font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.35rem); color: rgba(243,234,213,0.86); }
/* 6.6 Hero actions */
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.6rem; }

/* 6.7 Interior page hero (compact) */
.page-hero {
    position: relative; text-align: center;
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
    background: radial-gradient(120% 120% at 50% -20%, #1B3059 0%, var(--ink) 60%, #0A1424 100%);
    display: grid; justify-items: center; gap: 1rem;
}
/* 6.8 Interior hero heading */
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.8rem); max-width: 18ch; }
/* 6.9 Interior hero lede */
.page-hero p { max-width: 52ch; color: rgba(243,234,213,0.82); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); }
/* end of 6. SECTION: Heroes */


/* ============================================================ */
/* 7. SECTION: Seal Component                                   */
/* ============================================================ */

/* 7.1 Seal frame */
.seal { width: clamp(150px, 26vw, 240px); filter: drop-shadow(0 6px 30px rgba(0,0,0,0.45)); }
/* 7.2 Small seal (interior heroes / footer) */
.seal--sm { width: clamp(96px, 16vw, 128px); }
/* 7.3 Rotating outer ring */
.seal__ring { transform-box: fill-box; transform-origin: center; animation: seal-spin 90s linear infinite; }
/* 7.4 Arc lettering */
.seal__arc { font-family: var(--body); font-size: 12.4px; letter-spacing: 2.6px; font-weight: 600; fill: var(--gold); text-transform: uppercase; }
/* 7.5 Central year */
.seal__year { font-family: var(--display); font-weight: 700; font-size: 66px; fill: var(--gold-soft); }
/* 7.6 Central date */
/* 12TH OF JULY is nearly twice the width of 12 JULY, so the date needs
   less size and tracking to sit comfortably inside the inner ring. */
.seal__date { font-family: var(--body); font-size: 9.5px; letter-spacing: 3px; fill: var(--parchment); }
/* 7.7 Ring strokes */
.seal__line { fill: none; stroke: var(--gold); }
/* 7.8 Spin keyframes */
@keyframes seal-spin { to { transform: rotate(360deg); } }
/* end of 7. SECTION: Seal Component */


/* ============================================================ */
/* 8. SECTION: Proposal Band                                    */
/* ============================================================ */

/* 8.1 Two-column proposal */
.proposal { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .proposal { grid-template-columns: 1.1fr 0.9fr; } }
/* 8.2 Proposal aside card */
.proposal__card { background: var(--ink); color: var(--parchment); padding: 2rem clamp(1.5rem,3vw,2.4rem); border-radius: 3px; border: 1px solid rgba(199,162,76,0.35); }
/* 8.3 Card list */
.proposal__card ul { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.proposal__card li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: baseline; }
/* 8.4 Gold index marker */
.marker { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 1.35rem; line-height: 1; }
/* end of 8. SECTION: Proposal Band */


/* ============================================================ */
/* 9. SECTION: Story Band                                       */
/* ============================================================ */

/* 9.1 Story paragraph spacing */
.story p + p { margin-top: 1.1rem; }
/* 9.2 Pull quote */
.pull { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.2; color: var(--gold-soft); margin: 2rem 0; max-width: 22ch; }
.band--light .pull { color: var(--claret); }
/* end of 9. SECTION: Story Band */


/* ============================================================ */
/* 10. SECTION: Pillars Grid                                    */
/* ============================================================ */

/* 10.1 Grid frame */
.pillars { display: grid; gap: 1px; margin-top: 3rem; background: rgba(199,162,76,0.28); border: 1px solid rgba(199,162,76,0.28); }
@media (min-width: 680px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
/* 10.2 Individual pillar */
.pillar { background: var(--ink); padding: 2rem clamp(1.4rem,2.4vw,2rem); display: grid; gap: 0.6rem; align-content: start; }
/* 10.3 Pillar tag */
.pillar__tag { font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
/* 10.4 Pillar title */
.pillar h3 { font-size: 1.5rem; color: var(--parchment); }
/* 10.5 Pillar copy */
.pillar p { color: rgba(243,234,213,0.78); font-size: 1rem; }
/* end of 10. SECTION: Pillars Grid */


/* ============================================================ */
/* 11. SECTION: Forms (newsletter / sign-up)                    */
/* ============================================================ */

/* 11.1 Form card */
.form-card { background: var(--parchment); color: var(--stone); padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 3px; }
/* 11.2 Field group */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-soft); }
.field input {
    font-family: var(--body); font-size: 1.05rem; padding: 0.7em 0.85em;
    border: 1px solid rgba(43,39,31,0.28); border-radius: 2px; background: #fff; color: var(--stone);
}
.field input:focus-visible { outline: 2px solid var(--claret); outline-offset: 1px; border-color: var(--claret); }
/* 11.3 Consent note */
.consent { font-size: 0.85rem; color: var(--stone-soft); margin: 0.3rem 0 1.2rem;
           display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start;
           cursor: pointer; line-height: 1.45; }
/* 12.x.1 Checkbox sized to sit on the first line of the label */
.consent input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem;
                                  accent-color: var(--claret); cursor: pointer; }
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent a { color: var(--claret); text-underline-offset: 2px; }
/* 11.4 Thank-you state */
.thanks { display: none; text-align: center; padding: 1rem 0; }
.thanks h3 { color: var(--claret); font-size: 1.9rem; }
.form-card.is-done form { display: none; }
.form-card.is-done .thanks { display: block; }
/* end of 11. SECTION: Forms */


/* ============================================================ */
/* 12. SECTION: Petition & Share Block                          */
/* ============================================================ */

/* 12.1 Petition card */
.petition {
    background: var(--ink); border: 1px solid rgba(199,162,76,0.35);
    border-radius: 3px; padding: clamp(1.8rem, 4vw, 2.6rem); display: grid; gap: 1rem;
}
/* 12.2 Petition heading row */
.petition h3 { font-size: 1.7rem; color: var(--gold-soft); }
/* 12.3 Signature meter (visual only) */
.meter { height: 10px; border-radius: 999px; background: rgba(199,162,76,0.2); overflow: hidden; }
.meter__fill { height: 100%; width: 42%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
/* 12.4 Meter caption */
.meter__caption { font-size: 0.85rem; color: rgba(243,234,213,0.7); }
/* 12.5 Share row */
.share { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
/* 12.6 Share button */
.share__btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(199,162,76,0.1); border: 1px solid rgba(199,162,76,0.4);
    color: var(--parchment); border-radius: 2px; padding: 0.55em 1em; cursor: pointer;
    font-family: var(--body); font-size: 0.92rem; text-decoration: none; transition: background .2s ease, border-color .2s ease;
}
.share__btn:hover { background: rgba(199,162,76,0.22); border-color: var(--gold); }
.share__btn svg { width: 17px; height: 17px; }
/* end of 12. SECTION: Petition & Share Block */


/* ============================================================ */
/* 13. SECTION: Donation Widget                                 */
/* ============================================================ */

/* 13.1 Donation card */
.donate-card { background: var(--parchment); color: var(--stone); border-radius: 4px; padding: clamp(1.8rem, 4vw, 2.6rem); }
/* 13.2 Frequency toggle */
.freq { display: inline-flex; border: 1px solid rgba(43,39,31,0.25); border-radius: 999px; padding: 3px; margin-bottom: 1.4rem; }
.freq button { font-family: var(--body); font-size: 0.95rem; border: 0; background: none; padding: 0.5em 1.3em; border-radius: 999px; cursor: pointer; color: var(--stone-soft); }
.freq button.is-active { background: var(--ink); color: var(--parchment); }
/* 13.3 Amount grid */
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
/* 13.4 Amount chip */
.amount {
    font-family: var(--display); font-weight: 700; font-size: 1.5rem;
    padding: 0.8em 0; border: 1px solid rgba(43,39,31,0.3); border-radius: 3px;
    background: #fff; color: var(--stone); cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.amount:hover { border-color: var(--claret); }
.amount.is-active { background: var(--claret); color: var(--parchment); border-color: var(--claret); }
/* 13.5 Custom amount field */
.amount-custom { position: relative; margin-bottom: 1.4rem; }
.amount-custom span { position: absolute; left: 0.85em; top: 50%; transform: translateY(-50%); color: var(--stone-soft); font-size: 1.1rem; }
.amount-custom input {
    width: 100%; font-family: var(--body); font-size: 1.1rem; padding: 0.75em 0.85em 0.75em 1.8em;
    border: 1px solid rgba(43,39,31,0.3); border-radius: 3px; background: #fff; color: var(--stone);
}
.amount-custom input:focus-visible { outline: 2px solid var(--claret); outline-offset: 1px; }
/* 13.6 Impact line */
.impact { font-size: 0.92rem; color: var(--stone-soft); margin-top: 1rem; text-align: center; }
/* end of 13. SECTION: Donation Widget */


/* ============================================================ */
/* 14. SECTION: Shop / Product Grid                             */
/* ============================================================ */

/* 14.1 Product grid */
.shop { display: grid; gap: clamp(1.4rem, 3vw, 2rem); grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 640px) { .shop { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .shop { grid-template-columns: repeat(3, 1fr); } }
/* 14.2 Product card */
.product { background: var(--ink-2); border: 1px solid rgba(199,162,76,0.22); border-radius: 4px; overflow: hidden; display: grid; }
/* 14.3 Product image panel */
.product__art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 20%, #1B3059, #0A1424); }
.product__art svg { width: 62%; height: 62%; }
/* 14.4 Product body */
.product__body { padding: 1.3rem 1.4rem 1.6rem; display: grid; gap: 0.35rem; }
/* 14.5 Product name */
.product__body h3 { font-size: 1.35rem; color: var(--parchment); }
/* 14.6 Product blurb */
.product__body p { font-size: 0.92rem; color: rgba(243,234,213,0.7); }
/* 14.7 Price + action row */
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem; }
.product__price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--gold-soft); }
/* end of 14. SECTION: Shop / Product Grid */


/* ============================================================ */
/* 15. SECTION: Invitation Band                                 */
/* ============================================================ */

/* 15.1 Invitation body width */
.invite p { max-width: 46ch; }
/* end of 15. SECTION: Invitation Band */


/* ============================================================ */
/* 16. SECTION: Footer                                          */
/* ============================================================ */

/* 16.1 Footer shell */
.foot { background: var(--ink); border-top: 1px solid rgba(199,162,76,0.25); padding: 3.5rem 0 2.5rem; }
/* 16.2 Footer grid */
.foot__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
/* 16.3 Wordmark */
.foot__mark { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--gold-soft); letter-spacing: 0.04em; }
/* 16.4 Footer small print */
.foot small { color: rgba(243,234,213,0.55); display: block; margin-top: 0.7rem; max-width: 44ch; }
/* 16.5 Footer nav column */
.foot__col h4 { font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.foot__col a { display: block; text-decoration: none; color: rgba(243,234,213,0.78); padding: 0.28rem 0; font-size: 0.98rem; }
.foot__col a:hover { color: var(--gold-soft); }
/* 16.6 Base line */
.foot__base { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(199,162,76,0.15); font-size: 0.85rem; color: rgba(243,234,213,0.5); }
/* end of 16. SECTION: Footer */


/* ============================================================ */
/* 17. SECTION: Motion & Accessibility                          */
/* ============================================================ */

/* 17.1 Reveal base state */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
/* 17.2 Revealed state */
.reveal.is-visible { opacity: 1; transform: none; }
/* 17.3 Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .seal__ring { animation: none; }
    html { scroll-behavior: auto; }
}
/* 17.4 Keyboard focus visibility */
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
/* 17.5 Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
/* end of 17. SECTION: Motion & Accessibility */

/* ============================================================ */
/* 18. SECTION: Form feedback                                   */
/* ============================================================ */

/* 18.1 Honeypot field: off-screen for people, present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 18.2 Submission error message */
.form-error { margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; border-radius: 3px; font-size: 0.92rem;
              color: #F6E7E7; background: rgba(140, 32, 32, 0.28); border: 1px solid rgba(190, 70, 70, 0.55); }
.form-error[hidden] { display: none; }

/* 18.3 Working state on a submitting button */
button[disabled] { opacity: 0.65; cursor: progress; }
/* end of 18. SECTION: Form feedback */

/* ============================================================ */
/* 19. SECTION: Development status                              */
/* ============================================================ */

/* 19.1 "In development" tag in place of a buy button */
.tag-dev { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
           text-transform: uppercase; padding: 0.5em 1em; border-radius: 2px;
           color: var(--gold); border: 1px dashed rgba(199,162,76,0.6); background: rgba(199,162,76,0.06); }

/* 19.2 Status line under the shop heading */
.shop-status { margin-top: 1rem; font-size: 0.98rem; color: rgba(243,234,213,0.72);
               border-left: 2px solid var(--gold); padding-left: 0.9rem; }
/* end of 19. SECTION: Development status */

/* ============================================================ */
/* 20. SECTION: Wessex dragon mark                              */
/* ============================================================ */

/* 20.1 The tapestry detail in the "Older still" callout on About.
   Shown as a captioned artefact photograph rather than a cut-out mark:
   the dragon only reads as a creature with its context around it. */
.callout__fig { margin: 0 0 1.2rem; }
.callout__dragon { width: 100%; height: auto; display: block; border-radius: 3px;
                   border: 1px solid rgba(199,162,76,0.5); }
.callout__fig figcaption { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.45;
                           color: rgba(243,234,213,0.6); }

/* 20.2 No float: the callout sits in a narrow reading column, so a floated
   figure squeezes the text to a word per line. Full width reads better. */
.callout__fig { width: 100%; }
/* end of 20. SECTION: Wessex dragon mark */

/* ============================================================ */
/* 21. SECTION: Centred section headers                         */
/* ============================================================ */

/* 21.1 Header block above a card grid. The grid itself stays a grid;
   only the eyebrow, heading and rule are centred, so a page does not
   mix left and centre headings at random. */
.sec-head { text-align: center; display: grid; justify-items: center; margin-bottom: 2rem; }
.sec-head h2 { margin-inline: auto; }
.sec-head .rule { margin-inline: auto; }
/* end of 21. SECTION: Centred section headers */

/* ============================================================ */
/* 22. SECTION: Scale figure                                    */
/* ============================================================ */

/* 22.1 The band itself, a little tighter than a normal section */
.scale { padding-block: clamp(2.6rem, 4.6vw, 4.4rem); }

/* 22.2 The headline percentage */
.scale__figure {
    font-family: var(--display);
    font-weight: 700;
    /* Cormorant uses old-style figures, so the 7 descends below the
       baseline. A tight line-height let it collide with the line beneath. */
    line-height: 1.12;
    font-size: clamp(4.2rem, 2rem + 9vw, 9rem);
    color: var(--gold-soft);
    margin: 0.4rem 0 1.6rem;
    letter-spacing: -0.01em;
}

/* 22.3 The sentence that gives the figure meaning */
.scale__line {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
    line-height: 1.25;
    max-width: 26ch;
    margin-inline: auto;
    color: var(--parchment);
}

/* 22.4 The counterweight line */
.scale__sub {
    margin-top: 1rem;
    max-width: 40ch;
    margin-inline: auto;
    color: rgba(243,234,213,0.72);
    font-size: 1rem;
}
/* end of 22. SECTION: Scale figure */

/* ============================================================ */
/* 23. SECTION: Petition status                                 */
/* ============================================================ */

/* 23.1 Honest status line in place of a progress meter, used until the
   petition is approved and there are real signature numbers to show. */
.petition__status { margin: 0.4rem 0 1.4rem; color: rgba(243,234,213,0.78); font-size: 0.98rem; line-height: 1.5; }
/* end of 23. SECTION: Petition status */
