/* ============================================================================
   ChancellorWellWishes.syr.edu
   Syracuse University brand-compliant stylesheet
   Meets WCAG 2.x AA / Section 508 per SU ICT Accessibility Policy
   ============================================================================ */

/* --------------------------------------------------------------------------
   0. Web Fonts — Sherman Sans from SU CDN (official brand typeface)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Sherman Sans';
    src: url('https://assets.syracuse.edu/fonts/shermansans-book.eot');
    src: url('https://assets.syracuse.edu/fonts/shermansans-book.eot?#iefix') format('embedded-opentype'),
         url('https://assets.syracuse.edu/fonts/shermansans-book.woff2') format('woff2'),
         url('https://assets.syracuse.edu/fonts/shermansans-book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sherman Sans';
    src: url('https://assets.syracuse.edu/fonts/shermansans-bookitalic.eot');
    src: url('https://assets.syracuse.edu/fonts/shermansans-bookitalic.eot?#iefix') format('embedded-opentype'),
         url('https://assets.syracuse.edu/fonts/shermansans-bookitalic.woff2') format('woff2'),
         url('https://assets.syracuse.edu/fonts/shermansans-bookitalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Sherman Sans';
    src: url('https://assets.syracuse.edu/fonts/shermansans-bold.eot');
    src: url('https://assets.syracuse.edu/fonts/shermansans-bold.eot?#iefix') format('embedded-opentype'),
         url('https://assets.syracuse.edu/fonts/shermansans-bold.woff2') format('woff2'),
         url('https://assets.syracuse.edu/fonts/shermansans-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Design Tokens (SU Brand Palette)
   -------------------------------------------------------------------------- */
:root {
    /* Primary */
    --su-orange: #F76900;
    --su-blue: #000E54;
    --su-white: #FFFFFF;

    /* Secondary */
    --su-orange-medium: #FF431B;
    --su-orange-light: #FF8E00;
    --su-blue-medium: #203299;
    --su-blue-light: #2B72D7;

    /* Grays */
    --su-black: #000000;
    --su-dark-gray: #404040;
    --su-medium-gray: #707780;
    --su-light-gray: #ADB3B8;

    /* Web-specific */
    --su-orange-dark: #D74100; /* WCAG AA hyperlink color per SU guidelines */

    /* Warm neutrals for surfaces (derived, not brand-primary) */
    --su-cream: #FBF7F2;
    --su-warm-white: #FEFCF9;
    --su-border: #E8E2D9;

    /* Typography — Sherman Sans is SU's primary typeface, loaded from the
       official SU CDN (assets.syracuse.edu). Sherman Serif is referenced per
       SU brand tokens but falls through to Georgia on the web. Verdana and
       Georgia are the approved web-safe fallbacks per SU branding guidelines. */
    --font-sans: 'Sherman Sans', Verdana, Geneva, 'Trebuchet MS', sans-serif;
    --font-serif: 'Sherman Serif', Georgia, 'Times New Roman', serif;

    /* Layout */
    --max-width: 1200px;
    --content-width: 720px;
    --radius-sm: 3px;
    --radius-md: 6px;

    /* Elevation */
    --shadow-sm: 0 1px 3px rgba(0, 14, 84, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 14, 84, 0.08);
    --shadow-orange: 0 4px 14px rgba(247, 105, 0, 0.22);

    /* Focus ring — visible, high-contrast, 3:1 against all backgrounds */
    --focus-ring: 0 0 0 3px rgba(247, 105, 0, 0.35);
    --focus-outline: 3px solid var(--su-orange);
}

/* --------------------------------------------------------------------------
   2. Resets & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--su-dark-gray);
    background: var(--su-warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--su-orange-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.15s;
}

a:hover { color: var(--su-orange); }
a:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Accessibility Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    background: var(--su-blue);
    color: var(--su-white);
    padding: 14px 22px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    z-index: 1000;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.15s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--su-orange);
    outline-offset: 2px;
    color: var(--su-white);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--su-white);
    border-bottom: 1px solid var(--su-border);
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.header-logo {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.header-logo img {
    height: 42px;
    width: auto;
}

.header-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--su-blue);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 6px 0;
    position: relative;
}

.header-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--su-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}

.header-link:hover,
.header-link:focus-visible { color: var(--su-orange-dark); }

.header-link:hover::after,
.header-link:focus-visible::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(180deg, var(--su-cream) 0%, var(--su-warm-white) 100%);
    padding: 72px 32px 88px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -260px;
    right: -180px;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(247, 105, 0, 0.10) 0%, rgba(247, 105, 0, 0) 62%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 14, 84, 0.05) 0%, rgba(0, 14, 84, 0) 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-inner-single { grid-template-columns: 1fr; }

.hero-content { max-width: 580px; }
.hero-content-center { max-width: 720px; margin: 0 auto; text-align: center; }

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--su-orange-dark);
    margin: 0 0 24px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.12;
    color: var(--su-blue);
    margin: 0 0 28px;
    letter-spacing: -0.015em;
}

.hero h1 em {
    font-style: italic;
    color: var(--su-orange);
    font-weight: 400;
}

.hero-lede {
    font-family: var(--font-sans);
    font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
    line-height: 1.55;
    color: var(--su-dark-gray);
    margin: 0 0 36px;
    max-width: 540px;
}

.hero-content-center .hero-lede { margin-left: auto; margin-right: auto; }

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-compact { padding: 72px 32px 56px; }

/* Hero Photo — 1278:1043 (≈6:5); soft edge fade blends into the cream background.
   Image rendering hints keep the 1278px source crisp on 1x and passable on 2x. */
.hero-photo-wrap {
    position: relative;
    max-width: 100%;
}

.hero-photo {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1278 / 1043;
    background: var(--su-cream);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Gentle fade overlay — a whisper of vignette at the bottom edge so the photo
   dissolves softly into the cream background. Horizontal fades kept very light
   so neither subject gets obscured. */
.hero-photo-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(251, 247, 242, 0) 0%,
            rgba(251, 247, 242, 0) 72%,
            rgba(251, 247, 242, 0.22) 100%
        ),
        linear-gradient(
            270deg,
            rgba(251, 247, 242, 0.18) 0%,
            rgba(251, 247, 242, 0) 18%
        );
}

.hero-photo-caption {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--su-medium-gray);
    margin: 16px 0 0;
    text-align: right;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
    border: 2px solid transparent;
    line-height: 1.2;
    min-height: 46px; /* 44px+ touch target */
}

.btn-primary {
    background: var(--su-orange);
    color: var(--su-white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--su-orange-dark);
    color: var(--su-white);
    outline: none;
    box-shadow: var(--shadow-orange), 0 0 0 3px rgba(247, 105, 0, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--su-blue);
    border-color: var(--su-blue);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--su-blue);
    color: var(--su-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 14, 84, 0.2);
}

.btn-submit {
    background: var(--su-orange);
    color: var(--su-white);
    padding: 16px 48px;
    font-size: 1rem;
    box-shadow: var(--shadow-orange);
    border: none;
}

.btn-submit:hover,
.btn-submit:focus-visible {
    background: var(--su-orange-dark);
    outline: none;
    box-shadow: var(--shadow-orange), 0 0 0 3px rgba(247, 105, 0, 0.35);
}

.btn-submit:active { transform: translateY(1px); }

.btn-submit:disabled {
    background: var(--su-light-gray);
    cursor: not-allowed;
    box-shadow: none;
}

/* Ghost button — used by both the tribute wall pager (public) and moderator
   action forms (admin), so it lives in the shared stylesheet. */
.btn-ghost {
    background: transparent;
    color: var(--su-blue);
    border: 1px solid var(--su-light-gray);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.btn-ghost:hover, .btn-ghost:focus-visible {
    border-color: var(--su-blue);
    background: var(--su-warm-white);
    outline: none;
    color: var(--su-blue);
}

/* --------------------------------------------------------------------------
   7. Quote Reel
   -------------------------------------------------------------------------- */
.quote-reel {
    background: var(--su-blue);
    color: var(--su-white);
    padding: 56px 32px;
    position: relative;
    overflow: hidden;
}

.quote-reel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--su-orange) 0%,
        var(--su-orange-light) 50%,
        var(--su-orange) 100%);
}

.quote-reel-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.quote {
    margin: 0;
    padding: 0 40px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.8s ease-in-out;
}

.quote.is-fading { opacity: 0; }

.quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1875rem, 2.2vw, 1.5rem);
    line-height: 1.5;
    color: var(--su-white);
    margin: 0 0 20px;
    font-weight: 400;
}

.quote-cite {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.quote-cite cite {
    font-style: normal;
}

.quote-control {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--su-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
    min-height: 36px;
}

.quote-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.quote-control:focus-visible {
    outline: 3px solid var(--su-orange);
    outline-offset: 2px;
}

.quote-control-icon {
    display: inline-flex;
    align-items: center;
}

/* --------------------------------------------------------------------------
   8. Main Content & Sections
   -------------------------------------------------------------------------- */
main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 72px 32px;
}

.section + .section { margin-top: 64px; }

.section-center { text-align: center; }

.section h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--su-blue);
    margin: 0 0 28px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-center h2 { text-align: center; }

.prose p {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--su-dark-gray);
    margin: 0 0 1.25em;
}

.prose p:last-child { margin-bottom: 0; }

.prose-centered { max-width: 620px; margin: 0 auto; }
.prose-centered p { text-align: center; }

.letter-callout {
    background: var(--su-white);
    border-left: 4px solid var(--su-orange);
    padding: 32px 36px;
    margin: 40px 0 0;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.letter-callout-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--su-orange-dark);
    margin: 0 0 14px;
}

.letter-callout .prose p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--su-blue);
    line-height: 1.6;
    margin: 0;
}

.letter-callout-citation {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--su-medium-gray);
    margin: 18px 0 0;
    font-style: normal;
}

.ty-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   9. Form Section
   -------------------------------------------------------------------------- */
.form-section {
    background: var(--su-cream);
    padding: 80px 32px;
    border-top: 1px solid var(--su-border);
    border-bottom: 1px solid var(--su-border);
}

.form-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.form-section h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--su-blue);
    margin: 0 0 16px;
    text-align: center;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-intro {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    color: var(--su-dark-gray);
    margin: 0 auto 40px;
    max-width: 560px;
    line-height: 1.6;
}

.required-marker {
    color: var(--su-orange-dark);
    font-weight: 600;
    margin-left: 2px;
}

form#wellwishes-form {
    background: var(--su-white);
    padding: 44px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--su-border);
}

.error-summary {
    background: #FFF4ED;
    border-left: 4px solid var(--su-orange-dark);
    padding: 20px 24px;
    margin: 0 auto 24px;
    max-width: var(--content-width);
    border-radius: var(--radius-sm);
}

.error-summary h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--su-orange-dark);
    margin: 0 0 10px;
}

.error-summary ul {
    margin: 0;
    padding-left: 20px;
    color: var(--su-dark-gray);
    font-size: 0.9375rem;
}

.error-summary li { margin-bottom: 4px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field { margin-bottom: 22px; }

.form-field label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--su-blue);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.label-hint {
    font-weight: 400;
    color: var(--su-medium-gray);
    font-size: 0.8125rem;
    margin-left: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--su-dark-gray);
    background: var(--su-white);
    border: 1px solid var(--su-light-gray);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field textarea {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.6;
    min-height: 200px;
    resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: none;
    border-color: var(--su-orange);
    box-shadow: var(--focus-ring);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field .input-validation-error {
    border-color: var(--su-orange-dark);
    border-width: 2px;
}

.field-help {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--su-medium-gray);
    margin: 8px 0 0;
    line-height: 1.45;
}

.field-error,
.field-validation-error {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--su-orange-dark);
    margin-top: 6px;
}

.char-count {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--su-medium-gray);
    text-align: right;
    margin-top: 6px;
}

.char-count.is-warn { color: var(--su-orange-dark); font-weight: 500; }

/* Consent checkboxes */
.consent-group {
    border: 1px solid var(--su-border);
    padding: 20px 24px 12px;
    margin: 28px 0 0;
    border-radius: var(--radius-sm);
    background: var(--su-warm-white);
}

.consent-group legend {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--su-blue);
    padding: 0 8px;
    letter-spacing: 0.01em;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 4px 0;
}

.checkbox-field input[type="checkbox"] {
    margin: 4px 0 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--su-orange);
    cursor: pointer;
}

.checkbox-field input[type="checkbox"]:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
    border-radius: 2px;
}

.checkbox-field label {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--su-dark-gray);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.form-actions {
    margin-top: 36px;
    text-align: center;
}

.privacy-note {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--su-medium-gray);
    text-align: center;
    margin: 18px 0 0;
    line-height: 1.5;
}

.privacy-note a {
    color: var(--su-orange-dark);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
footer[role="contentinfo"] {
    background: var(--su-blue);
    color: var(--su-white);
    padding: 56px 32px 44px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-inner img {
    height: 46px;
    width: auto;
    margin: 0 auto 24px;
}

.footer-inner p {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 8px;
    line-height: 1.6;
}

.footer-inner strong {
    font-weight: 600;
    color: var(--su-white);
}

.footer-inner a {
    color: var(--su-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
    color: var(--su-orange-light);
    outline: none;
}

.footer-inner a:focus-visible {
    outline: 2px solid var(--su-orange);
    outline-offset: 3px;
}

.footer-divider {
    width: 56px;
    height: 3px;
    background: var(--su-orange);
    margin: 20px auto 24px;
    border: none;
}

.footer-meta {
    font-size: 0.8125rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 14px !important;
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    /* Visual reorder only — DOM stays text-first for screen readers.
       Photo leads visually so the Chancellor is the first thing seen. */
    .hero-photo-wrap {
        order: 1;
        max-width: 540px;
        margin: 0 auto;
    }
    .hero-content {
        order: 2;
        max-width: 640px;
        margin: 0 auto;
    }

    .hero-lede { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-photo-caption { text-align: center; }
}

@media (max-width: 640px) {
    .header-inner { justify-content: center; padding: 0 20px; }
    .hero { padding: 48px 20px 64px; }
    .hero h1 { font-size: 2rem; }
    .quote-reel { padding: 64px 20px 48px; }
    .quote { padding: 0; min-height: 180px; }
    .quote-control {
        position: static;
        margin: 24px auto 0;
        display: inline-flex;
    }
    main { padding: 48px 20px; }
    .form-section { padding: 56px 20px; }
    form#wellwishes-form { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .letter-callout { padding: 24px 22px; }
    footer[role="contentinfo"] { padding: 44px 20px 36px; }
}

/* --------------------------------------------------------------------------
   12. Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .quote { transition: none !important; }
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
    .site-header, .quote-reel, .form-section, footer, .skip-link,
    .hero-cta, .quote-control { display: none !important; }
    .hero { padding: 20px 0; background: none; }
    .hero-photo, .letter-callout { break-inside: avoid; }
    body { color: #000; background: #fff; }
}

/* --------------------------------------------------------------------------
   14. Forced Colors (Windows High Contrast)
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
    .btn-primary, .btn-secondary, .btn-submit {
        border: 2px solid ButtonText;
    }
    .quote-control {
        border: 2px solid ButtonText;
    }
    .form-field input, .form-field select, .form-field textarea {
        border: 1px solid CanvasText;
    }
    .letter-callout { border-left-color: Highlight; }
}
