/* ===========================================================================
   The Eleanor Markham Academy (emm) -- storefront "dress"
   ---------------------------------------------------------------------------
   The one site stylesheet, loaded on every emm page by common_base.html and,
   through LOGIN_STYLESHEETS['emm'], on the SSO login page reached from emm.
   It dresses the site's own chrome and the peep-provided service pages (age
   gate, coming soon, login, join, cart, account, info and error pages)
   without forking their templates.

   Ported from the design handoff's emm.css (ADR 0575, design D5) in hay's
   shape (hay.css, ADR 0456), with these changes:
   - The Google Fonts @import is a <link> in base.html's site_head.
   - The chrome is written against base.html's own classes (.emm-masthead,
     .emm-nav, .emm-footer) rather than the handoff's bare header/footer/#logo,
     whose absolute-positioned logo assumed a different header.
   - The service-page section was rewritten against the markup the shared
     templates really emit (hay's, re-inked), not the handoff's guesses; the
     handoff's global button/input[type=submit] rule is gone, because it
     restyled every unclassed button in the shared templates.
   - --bone-faint was #6f6a60, 3.45:1 on --ink-2 and so under WCAG AA for
     text; it is raised in the same hue to 4.66:1 (emm/tests/test_contrast.py).
     The handoff also drew error text and a sale deadline in --claret-lit,
     2.4:1 on the ink; error text has its own --error tone and the deadline is
     brass.
   - Every translucent fill is gone: the ::selection wash and the inner field
     grounds are opaque tokens, so every text/ground pairing is measurable.
   - The content-page sections (hero, plates, galleries, films, stories,
     member home) are NOT here yet: they land with the content templates they
     dress (tasks group 3), so no rule in this file names markup that does not
     exist (emm/tests/test_dress.py).

   SPECIFICITY. common_base.html links orders/css/orders.css AFTER this file,
   so where orders.css also styles an element, a rule here at equal
   specificity silently loses. Those rules are raised with a tag or an id and
   say which orders.css rule they beat. Never !important: it would also
   out-rank the inline style="" attributes the shared templates still carry.

   Palette (all opaque)
     ink         #100e12   page ground
     ink-2       #15121a   raised panel (cards, messages)
     ink-3       #0b0a0d   inset / field ground
     claret      #7c1622   primary accent: filled buttons, badges, checked marks
     claret-lit  #9c2230   their hover and keyboard-focus fill
     brass       #a9884e   engraved labels, button and crest rims
     brass-lit   #c6a969   links, bright detail, the crest letters
     bone        #efe8da   headings, text on claret
     bone-2      #d3cbba   body text
     bone-dim    #9a9384   muted / meta
     bone-faint  #857f72   legalese (raised from the handoff's #6f6a60)
     line/line-2           brass hairlines, BORDERS ONLY -- never text or fill
     rim         #7d653c   a form control's resting boundary: 3.35:1 on
                           --ink-2, the lightest ground (WCAG 1.4.11's 3:1);
                           --line-2 was 1.8:1 and a field all but vanished
   Type
     display  Cormorant Garamond (headings, labels, nav, buttons)
     body     EB Garamond
     script   Pinyon Script, for the headmistress's signature only
   =========================================================================== */

:root {
    --ink:        #100e12;
    --ink-2:      #15121a;
    --ink-3:      #0b0a0d;
    --claret:     #7c1622;
    --claret-lit: #9c2230;
    --brass:      #a9884e;
    --brass-lit:  #c6a969;
    --bone:       #efe8da;
    --bone-2:     #d3cbba;
    --bone-dim:   #9a9384;
    --bone-faint: #857f72;
    --line:       rgba(169, 136, 78, .24);
    --line-2:     rgba(169, 136, 78, .40);
    /* Opaque, unlike the hairlines: a control's edge is the one border a
       reader must find (emm/tests/test_contrast.py, ControlBoundaryTests). */
    --rim:        #7d653c;
    /* Error text: the handoff's --claret-lit is 2.4:1 on the ink. A light
       rose in the claret's hue reads at 6.4:1 on --ink-2 and still says
       "wrong" beside the bone text. */
    --error:      #e07b7b;
    --error-ring: rgba(224, 123, 123, .25);
    --focus-ring: rgba(124, 22, 34, .55);

    --serif-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --serif-body:    'EB Garamond', Georgia, 'Times New Roman', serif;
    --script:        'Pinyon Script', cursive;

    --shell-max: 1240px;
}

/* ===== Base ============================================================== */
*, *::before, *::after { box-sizing: border-box; }

/* <html> gets the ground too: with none of its own it hands the canvas to
   <body>'s background, and the age gate's and coming-soon page's gradients
   would tile again below a short page. */
html { -webkit-text-size-adjust: 100%; background: var(--ink); }

body {
    margin: 0;
    background: var(--ink);
    color: var(--bone-2);
    font-family: var(--serif-body);
    font-size: 19px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
    font-family: var(--serif-display);
    font-weight: 500;
    color: var(--bone);
    line-height: 1.05;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

/* a:link (0,1,1) out-ranks a bare class (0,1,0): a class templates put on an
   <a> and give a colour or a transition is also written a.<class> below. */
a:link, a:visited { color: var(--brass-lit); text-decoration: none; transition: color .18s ease; }
a:hover, a:focus-visible { color: var(--bone); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--claret); color: var(--bone); }

/* ===== Ornaments (crest, rule, signature) ================================ */
/* The "EM" crest: a brass ring with an inner hairline ring, lettered in
   brass-lit. Markup: <span class="emm-crest" aria-hidden="true">EM</span>. */
.emm-crest {
    width: 52px; height: 52px;
    border: 1px solid var(--brass);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    flex-shrink: 0;
    font-family: var(--serif-display); font-weight: 600; font-size: 1.2rem;
    letter-spacing: .02em; line-height: 1;
    color: var(--brass-lit);
    transition: border-color .18s ease;
}
.emm-crest::before {
    content: "";
    position: absolute; inset: 4px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
}
.emm-crest--lg { width: 78px; height: 78px; font-size: 1.7rem; }

/* A short brass rule under a title. Drawn as a border: it is a line, not a
   surface anything is written on. */
.emm-rule { display: block; width: 56px; height: 0; border-top: 1px solid var(--brass); margin: 30px auto; }

/* The headmistress's signature. */
.emm-signature { margin: 52px 0 0; font-family: var(--script); font-size: 2.4rem; line-height: 1; color: var(--brass-lit); }
.emm-sig-role { margin: .5em 0 0; font-family: var(--serif-display); font-size: .78rem; letter-spacing: .4em; text-transform: uppercase; color: var(--bone-faint); }

/* ===== Masthead (header chrome) ========================================== */
.emm-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 46px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
}
.emm-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: var(--serif-display);
    font-size: 1.5rem;
    letter-spacing: .01em;
    line-height: 1.1;
}
.emm-logo:link, .emm-logo:visited { color: var(--bone); }
.emm-logo:hover, .emm-logo:focus-visible { color: var(--bone); }
.emm-logo:hover .emm-crest, .emm-logo:focus-visible .emm-crest { border-color: var(--brass-lit); }

.emm-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; align-items: center; gap: 30px;
    font-family: var(--serif-display);
    font-size: 1rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.emm-nav li { display: inline-flex; align-items: center; }
.emm-nav a:link, .emm-nav a:visited { color: var(--bone-2); }
.emm-nav a:hover, .emm-nav a:focus-visible { color: var(--bone); }
.emm-nav .is-current a:link, .emm-nav .is-current a:visited { color: var(--brass-lit); }
/* The is-current pair (0,3,1) out-ranks .emm-nav a:hover (0,2,1); without
   these the page you stand on is the one link that answers no hover. */
.emm-nav .is-current a:hover, .emm-nav .is-current a:focus-visible { color: var(--bone); }
/* "Enrol": the engraved call in the nav, filled claret when pointed at. */
.emm-nav .nav-enrol a:link, .emm-nav .nav-enrol a:visited {
    color: var(--bone);
    border: 1px solid var(--brass);
    padding: 9px 22px;
    transition: color .18s ease, background .18s ease;
}
.emm-nav .nav-enrol a:hover, .emm-nav .nav-enrol a:focus-visible { background: var(--claret); color: #fff; }
/* logout_form.html's button carries an inline color:inherit, which beats any
   rule on the button itself, so the colour is set on the form it inherits
   from. */
.emm-nav .logout-form { color: var(--bone-2); }
.emm-nav .logout-form:hover, .emm-nav .logout-form:focus-within { color: var(--bone); }
/* orders.css pins .cart-badge absolutely to the top right of .cart-link, for
   the MC sites' cart icon; .emm-nav .cart-badge (0,2,0) sets it back in line. */
.emm-nav .cart-badge {
    position: static;
    display: inline-block;
    height: auto;
    margin-left: 6px;
    padding: 0 7px;
    background: var(--claret);
    color: var(--bone);
    font-size: .75rem;
    letter-spacing: 0;
    line-height: 1.5;
}
/* Pre-launch: the mockup's crest bar, centred, with the one Sign in link
   held to the right edge. */
/* Transparent, so the page's fixed brass frame shows through behind it. */
.emm-masthead--reduced { justify-content: center; position: relative; border-bottom: 0; padding: 40px 46px 10px; background: transparent; }
.emm-masthead--reduced .emm-nav { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); }
.emm-masthead--reduced .emm-logo { font-size: 1.15rem; }

/* ===== Footer =========================================================== */
.emm-footer {
    margin-top: 64px;
    padding: 44px 46px 40px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .9rem;
    color: var(--bone-faint);
}
.emm-footer nav ul {
    list-style: none;
    margin: 0 0 16px; padding: 0;
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center;
    font-family: var(--serif-display);
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.emm-footer nav a:link, .emm-footer nav a:visited { color: var(--bone-dim); }
.emm-footer nav a:hover, .emm-footer nav a:focus-visible { color: var(--bone); }
.emm-footer p { max-width: 760px; margin: 0 auto .5em; line-height: 1.6; }

/* ===== FORM CONTROLS (standard HTML components) ======================== */
label { font-family: var(--serif-body); color: var(--bone-2); }

input[type=text],
input[type=email],
input[type=password],
input[type=search],
input[type=tel],
input[type=url],
input[type=number],
input[type=date],
select,
textarea {
    width: 100%;
    background: var(--ink-3);
    border: 1px solid var(--rim);
    border-radius: 0;
    color: var(--bone);
    font-family: var(--serif-body);
    font-size: 1.1rem;
    padding: 12px 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brass-lit);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
input::placeholder, textarea::placeholder { color: var(--bone-faint); }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

/* A native select gets a brass chevron. */
select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9884e' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
select option { background: var(--ink-3); color: var(--bone); }

/* Radio and checkbox, drawn from the accent: a brass rim, a claret mark. */
input[type=radio],
input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    margin: 0 6px 0 0;
    vertical-align: -3px;
    border: 1px solid var(--rim);
    background: var(--ink-3);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    flex: none;
    transition: border-color .15s ease;
}
input[type=radio] { border-radius: 50%; }
input[type=radio]:hover, input[type=radio]:focus-visible,
input[type=checkbox]:hover, input[type=checkbox]:focus-visible { border-color: var(--brass); }
input[type=radio]::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--claret);
    visibility: hidden;
}
input[type=radio]:checked { border-color: var(--brass); }
input[type=radio]:checked::before { visibility: visible; }
input[type=checkbox]:checked { border-color: var(--brass); background: var(--claret); }
input[type=checkbox]::before {
    content: "";
    width: 10px; height: 6px;
    margin-top: -2px;
    border-left: 2px solid var(--bone);
    border-bottom: 2px solid var(--bone);
    transform: rotate(-45deg);
    visibility: hidden;
}
input[type=checkbox]:checked::before { visibility: visible; }

fieldset { border: 1px solid var(--line); padding: 20px 22px; margin: 0 0 20px; }
legend { font-family: var(--serif-display); font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); padding: 0 8px; }

/* Any disabled control: the inset ground with faint lettering. */
input:disabled, select:disabled, textarea:disabled, button:disabled {
    background: var(--ink-3);
    color: var(--bone-faint);
    border-color: var(--line);
    cursor: not-allowed;
}

/* ===== SERVICE PAGES (peep-provided markup; dressed here) ==============
   Written against the markup the shared templates really emit -- hay's
   service section (ADR 0456) re-inked for the Academy: orders/join.html,
   cart.html + base_cart.html, account.html, the checkout / shipping / confirm
   forms (with customers/address.html and payments/payment_info.html), the
   customers/, newsletters/ and orders/ forms that extend base.html, the login
   partials in common/templates and common/_password_field.html.
   emm/tests/test_dress.py fails the build on any selector in this section that
   no template, script or Python string emits. */

/* -- Content wrappers: #page_content (account, confirm, order, subscription,
      email preferences, privacy, verify-email) and #info_content (info pages,
      the age-verification start page). -- */
#page_content, #info_content {
    max-width: 900px;
    margin: 56px auto;
    padding: 0 46px;
}
#page_content h2, #info_content h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.5em 0 .45em; }
#page_content > h2:first-child, #info_content > h2:first-child { margin-top: 0; }
#page_content ul.messages { list-style: none; margin: 0 0 26px; padding: 0; }
#page_content ul.messages li {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--brass);
    padding: 12px 18px;
    margin-bottom: 8px;
    color: var(--bone);
}

/* -- The peep .button family: claret, brass-rimmed, engraved capitals. Anchors
      wear it too, and a:link (0,1,1) out-ranks a bare .button (0,1,0) on
      colour and transition, so the family is also written a.button. -- */
.button,
a.button {
    display: inline-block;
    min-width: 120px;
    padding: 14px 36px;
    background: var(--claret);
    color: var(--bone);
    border: 1px solid var(--brass);
    border-radius: 0;
    font-family: var(--serif-display);
    font-size: 1.1rem;
    letter-spacing: .2em;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
a.button:link, a.button:visited { color: var(--bone); }
.button:hover, .button:focus-visible,
a.button:hover, a.button:focus-visible { background: var(--claret-lit); color: #fff; }
.hot-button, a.hot-button { background: var(--claret); color: var(--bone); }
.cool-button, a.cool-button { background: transparent; color: var(--brass-lit); }
a.cool-button:link, a.cool-button:visited { color: var(--brass-lit); }
.cool-button:hover, .cool-button:focus-visible,
a.cool-button:hover, a.cool-button:focus-visible { background: var(--claret); color: #fff; }

/* -- Login / register / password / TOTP / email-change cards. -- */
.login-register-form-container {
    max-width: 440px;
    margin: 56px auto;
    padding: 40px;
    background: var(--ink-2);
    border: 1px solid var(--line);
}
.login-register-form-container h2 { text-align: center; font-size: 2.1rem; margin-bottom: 24px; }
.login-register-form-container p { font-size: 1rem; }
.login-register-form > div { margin-bottom: 16px; }
.login-register-button-container,
.join-button-container { margin-top: 22px; }
.login-register-button-container .button,
.join-button-container .button { width: 100%; }
/* The "forgot password?" link the login card sets straight after its form. */
.login-register-form-container > a { display: inline-block; margin-top: 18px; font-size: .95rem; }
.small-note { font-size: .9rem; color: var(--bone-dim); }
.membership-thanks-nav { margin-top: 22px; font-family: var(--serif-display); letter-spacing: .06em; }
.membership-thanks-nav p { margin: 0 0 8px; }
/* checkout_login.html: the two cards side by side, stacking when narrow. */
.checkout-login-page {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
    gap: 28px; padding: 56px 24px 0;
}
.checkout-login-page .login-register-form-container { margin: 0; flex: 1 1 360px; }

/* -- common/_password_field.html. Its assets partial prints an inline <style>
      AFTER this sheet; div.password-field (0,1,1) out-ranks its
      .password-field (0,1,0), and the toggle rules add a tag for the same
      reason. -- */
div.password-field { display: flex; }
div.password-field > input { flex: 1 1 auto; }
div.password-field .password-toggle { color: var(--bone-dim); cursor: pointer; }
div.password-field .password-toggle:hover,
div.password-field .password-toggle:focus-visible { color: var(--bone); }

/* -- Error states. .nope is on the offending input and on the message <p>.
      orders.css colours .point-out (0,1,0) and .error label/input (0,1,1);
      these add a tag or an attribute to win.
      The address forms put .error on the field's <p> or on the input, of any
      type, and orders.css's `.error input, input.error` (0,1,1) paints the
      field #fee -- bone text on it is 1.09:1. `body .error input` and
      `body input.error` (0,1,2) out-rank it, so the ground is set back to the
      field's own and the border to --error here, not left to the base input
      rule (0,1,1), which orders.css wins on order.
      (StorefrontCascadeTests resolves both sheets in load order.) -- */
input.nope,
body .error input,
body input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px var(--error-ring);
}
/* Only the .error pair: .nope also marks fields on the SSO card, which keeps
   auth.css's own field ground, and orders.css paints no .nope ground. */
body .error input,
body input.error { background: var(--ink-3); }
p.nope, span.nope, p.point-out, span.point-out { color: var(--error); }
p.nope { margin: 0 0 12px; }
p.error label, p label.error { color: var(--error); }

/* -- Checkout, shipping and address forms (#billing / #shipping /
      #payment-info). orders.css sizes these by id for a 2010-era layout:
      #billing input (1,0,1) at a fixed 300px, radios floated 30px wide, the
      card-expiry table squeezed to 75px. -- */
div#billing label, div#shipping label, div#payment-info label { font-size: 1rem; }
div#billing input[type=text],
div#shipping input[type=text],
div#payment-info input[type=text] {
    font-size: 1.1rem;
    font-weight: 400;
    width: 100%;
    margin-bottom: 6px;
}
div#billing input[type=radio],
div#shipping input[type=radio] { width: 18px; margin: 4px 10px 0 0; }
div#payment-info #card_number { width: 260px; }
div#payment-info #card_cvv { width: 96px; }
div#payment-info table#card_expiration { width: auto; font-size: .85rem; color: var(--bone-dim); }
#card_expiration select { width: auto; }
.anticipated_descriptor { font-size: .9rem; color: var(--bone-dim); margin-top: 16px; }

/* -- Cart: cart.html renders div#order > h1 + div#page_content > the
      base_cart.html table, straight under <body>; shipping.html and
      confirm.html put the same div#order inside a form card. orders.css's
      #order (1,0,0) fixes it at 425px with a white top rule. -- */
body > div#order {
    width: auto;
    max-width: 820px;
    margin: 56px auto;
    padding: 0 46px;
    border-top: 0;
    font-family: var(--serif-body);
    font-size: 1.05rem;
}
body > div#order h1 { text-align: center; }
.login-register-form-container div#order {
    width: auto; margin: 0; padding: 0; border-top: 0;
    font-family: var(--serif-body); font-size: 1rem;
}
div#order #page_content { max-width: none; margin: 0; padding: 0; }
div#order table { width: 100%; margin-top: 8px; border-top: 1px solid var(--line-2); border-collapse: collapse; }
div#order td { padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
div#order td.orderline_description { width: auto; padding-right: 18px; color: var(--bone); }
div#order td.orderline_amount { width: auto; text-align: right; font-family: var(--serif-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--bone); }
div#order td.orderline_remove { width: 1%; padding-left: 14px; text-align: right; }
div#order tr.orderline_payment td { color: var(--bone-dim); }
/* The cart's "Check Out >" links (checkout_links) are its call to action. */
body > div#order #page_content > p > a:link,
body > div#order #page_content > p > a:visited {
    display: inline-block;
    margin: 18px 0 6px;
    padding: 12px 32px;
    background: var(--claret);
    border: 1px solid var(--brass);
    color: var(--bone);
    font-family: var(--serif-display);
    letter-spacing: .2em;
    text-transform: uppercase;
}
body > div#order #page_content > p > a:hover,
body > div#order #page_content > p > a:focus-visible { background: var(--claret-lit); color: #fff; }
button.coupon-button {
    margin-left: 10px;
    padding: 10px 22px;
    border: 1px solid var(--brass);
    background: transparent;
    color: var(--brass-lit);
    font-family: var(--serif-display);
    font-size: .95rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
}
button.coupon-button:hover, button.coupon-button:focus-visible { background: var(--claret); color: #fff; }
div#order #coupon_code { width: auto; max-width: 240px; }

/* -- The add-to-cart confirmation (add_to_cart.html, on the film page).
      orders.css paints #add-to-cart (1,0,0) navy for the MC sites. -- */
div#add-to-cart {
    background-color: var(--ink-2);
    color: var(--bone-2);
    border: 1px solid var(--line-2);
    font-family: var(--serif-body);
    font-size: 1.15rem;
}
div#opaque { background-color: var(--ink); opacity: .7; }

/* -- Join (orders/join.html): an h2 title, radio cards in labels, a Join
      submit and a sign-in line. The prices, "regularly" and sale-end lines
      are the offers' own (no price is invented here, design D2). The enrol
      screenshot's card form is not forked (design D7): join is matched by
      this styling alone. -- */
.offer-page { max-width: 1000px; margin: 0 auto; padding: 56px 40px 20px; text-align: center; }
.offer-page-title { font-size: clamp(2.2rem, 4vw, 2.8rem); margin-bottom: 40px; }
.offer-cards {
    display: flex; gap: 22px; justify-content: center; align-items: stretch;
    flex-wrap: wrap; max-width: 860px; margin: 0 auto;
}
.offer-card {
    position: relative;
    display: block;
    flex: 1; min-width: 220px; max-width: 280px;
    padding: 30px 24px;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.offer-card:hover, .offer-card:has(:focus-visible) { border-color: var(--brass); }
/* Hidden visually but not from the keyboard: the card is the radio's label,
   so focus lands on this input and the ring is drawn on the card below. */
.offer-card input[type=radio] { position: absolute; opacity: 0; }
.offer-card:has(input[type=radio]:focus-visible) { outline: 2px solid var(--brass-lit); outline-offset: 4px; }
.offer-card-selected,
.offer-card:has(input[type=radio]:checked) { border-color: var(--brass); background: var(--ink-2); }
.offer-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    padding: 3px 12px;
    background: var(--claret);
    color: var(--bone);
    border: 1px solid var(--brass);
    font-family: var(--serif-display); font-size: .72rem;
    letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.offer-card-name { margin: 0 0 12px; font-size: 1.6rem; }
.offer-card-price { font-family: var(--serif-display); font-size: 2.75rem; line-height: 1; color: var(--bone); }
.offer-card-regular { margin-top: 6px; font-size: .9rem; font-style: italic; color: var(--bone-dim); }
/* "ends in two days, on …" -- a sale's deadline, set as an engraved label. */
.offer-card-sale-end {
    margin-top: 10px;
    font-family: var(--serif-display); font-size: .78rem;
    letter-spacing: .18em; text-transform: uppercase; line-height: 1.5;
    color: var(--brass-lit);
}
.offer-card-description { margin-top: 14px; font-size: 1rem; line-height: 1.55; color: var(--bone-2); }
.offer-card-description p { margin: 0 0 .6em; }
.offer-card-description p:last-child { margin-bottom: 0; }
.offer-submit { margin-top: 36px; }
.offer-submit .join-button { min-width: 260px; }
.offer-login { margin-top: 18px; text-align: center; color: var(--bone-dim); }

@media (max-width: 680px) {
    #page_content, #info_content, body > div#order { margin: 34px auto; padding: 0 20px; }
    .login-register-form-container { margin: 34px 20px; padding: 30px 24px; }
    .checkout-login-page { padding: 34px 20px 0; }
    .checkout-login-page .login-register-form-container { margin: 0; }
    div#payment-info #card_number { width: 100%; }
}

/* ===== Age gate (info/age_page.html shell + service/age_splash.html) === */
body.age-page {
    min-height: 100vh;
    padding: 60px 24px 0;
    text-align: center;
    background: radial-gradient(120% 90% at 50% 30%, var(--ink-2), var(--ink) 70%);
}
#age_page { max-width: 560px; margin: 0 auto; }
.age-splash .emm-crest { display: flex; margin: 0 auto 22px; }
.age-splash-kicker {
    margin: 0 0 10px;
    font-family: var(--serif-display); font-size: .82rem;
    letter-spacing: .42em; text-transform: uppercase;
    color: var(--brass);
}
.age-splash-wordmark { margin: 0; font-size: clamp(3.2rem, 9vw, 4.5rem); line-height: 1; }
.age-splash .emm-rule { margin: 26px auto; }
.age-splash-lede { margin: 0 0 .6em; font-style: italic; font-size: 1.3rem; color: var(--bone-2); }
.age-splash-copy { margin: 0 auto; max-width: 460px; font-size: 1.05rem; color: var(--bone-dim); }
.age-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2rem; }
/* The enter link wears the button look. a.age-cta:link raises it over
   a:link (0,1,1). */
.age-cta, a.age-cta {
    display: inline-block;
    padding: 12px 30px;
    background: var(--claret);
    color: var(--bone);
    border: 1px solid var(--brass);
    font-family: var(--serif-display); font-size: 1rem;
    letter-spacing: .2em; text-transform: uppercase;
    transition: background .18s ease, color .18s ease;
}
a.age-cta:link, a.age-cta:visited { color: var(--bone); }
.age-cta:hover, .age-cta:focus-visible,
a.age-cta:hover, a.age-cta:focus-visible { background: var(--claret-lit); color: #fff; }
.age-leave, a.age-leave {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--line-2);
    font-family: var(--serif-display); font-size: 1rem;
    letter-spacing: .2em; text-transform: uppercase;
    transition: color .18s ease, border-color .18s ease;
}
a.age-leave:link, a.age-leave:visited { color: var(--bone-dim); }
.age-leave:hover, .age-leave:focus-visible,
a.age-leave:hover, a.age-leave:focus-visible { color: var(--bone); border-color: var(--brass); }
/* #age_page-scoped: orders.css's .age-legal has the same specificity and
   loads after this file, so an unscoped rule here would lose. */
#age_page .age-legal { margin: 2rem 0 0; font-size: .85rem; letter-spacing: .05em; }
#age_page .age-legal a:link, #age_page .age-legal a:visited { color: var(--bone-faint); border-bottom: 1px solid var(--line); }
#age_page .age-legal a:hover, #age_page .age-legal a:focus-visible { color: var(--bone); }
.age-ccpa { margin: 1.5rem auto 46px; font-size: .85rem; }
/* Raised over orders.css's .age-ccpa a, which also sets size and weight. */
body.age-page .age-ccpa a:link, body.age-page .age-ccpa a:visited { color: var(--bone-faint); font-size: .85rem; font-weight: 400; }
body.age-page .age-ccpa a:hover, body.age-page .age-ccpa a:focus-visible { color: var(--bone); }

/* ===== Error pages ===================================================== */
body.error-page { background: radial-gradient(120% 90% at 50% 10%, var(--ink-2), var(--ink) 60%); }
#error_page { max-width: 640px; margin: 0 auto; padding: 96px 24px; text-align: center; }
/* A <p> keeps its 1em bottom margin, which at 6rem opened a hole between the
   "404" and the heading. */
#error_page .error-code { margin: 0 0 .15em; font-family: var(--serif-display); font-size: 6rem; line-height: 1; color: var(--brass-lit); }
#error_page p:not(.error-code) { font-size: 1.2rem; color: var(--bone-dim); }

/* ===== Coming soon (pre-launch) ======================================
   From the design mockup (design D6); its own section so
   emm/tests/test_dress.py can pin every selector here to the rendered page.
   The mockup's hero film is not behind the card (the page precedes any age
   answer); its vignette and the brass inner frame are drawn on the ink, with
   the mockup's literals replaced by the palette's tokens. */
/* The body is the frame's containing block (position: relative), so the frame
   below spans the whole PAGE -- masthead, card and footer -- and scrolls with
   it. It used to be position: fixed, inset from the WINDOW: on any viewport
   shorter than the page the frame stood still while the card and the footer's
   copyright line scrolled under and across its lines. min-height keeps it at
   least a window tall on a short page; the footer's own bottom padding (46px)
   is what keeps the copyright line inside the 22px inset. */
body.coming-soon-page {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(120% 100% at 50% 38%, var(--ink-2), var(--ink-3) 75%);
}
/* The thin brass frame inset from the page edge. */
body.coming-soon-page::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid var(--line);
    pointer-events: none;
}
#coming_soon { position: relative; max-width: 640px; margin: 0 auto; padding: 56px 40px 0; text-align: center; }
.coming-kicker {
    margin: 0 0 26px;
    font-family: var(--serif-display); font-size: 1rem;
    letter-spacing: .56em; text-transform: uppercase;
    color: var(--brass-lit);
}
.coming-title {
    margin: 0;
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .94;
    color: var(--bone);
    text-shadow: 0 2px 34px rgba(0, 0, 0, .6);
}
.coming-card .emm-rule { margin: 36px auto; }
.coming-copy {
    max-width: 560px;
    margin: 0 auto;
    font-style: italic;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    line-height: 1.7;
    color: var(--bone-2);
}
.coming-signup { max-width: 520px; margin: 48px auto 0; }
.coming-signup-label {
    display: block;
    margin-bottom: 16px;
    font-family: var(--serif-display); font-size: .82rem;
    letter-spacing: .42em; text-transform: uppercase;
    color: var(--brass);
}
.coming-field { display: flex; border: 1px solid var(--rim); background: var(--ink-3); }
.coming-field input[type=email] { flex: 1; min-width: 0; border: 0; background: var(--ink-3); padding: 15px 18px; }
.coming-field .button { flex-shrink: 0; min-width: 0; border: 0; border-left: 1px solid var(--brass); padding: 15px 30px; font-size: 1.05rem; }
.coming-consent {
    display: flex; align-items: flex-start; justify-content: center; gap: 4px;
    margin: 16px 0 0;
    font-size: .95rem;
    color: var(--bone-dim);
    cursor: pointer;
}
.coming-consent input[type=checkbox] { margin-top: 4px; }
.coming-fineprint { margin: 16px 0 0; font-size: .95rem; line-height: 1.6; color: var(--bone-dim); }
.coming-footer { position: relative; padding: 48px 40px 46px; text-align: center; }
.coming-footer p { max-width: 760px; margin: 0 auto; font-size: .82rem; line-height: 1.6; color: var(--bone-faint); }

/* ===== Auth-server login (LOGIN_STYLESHEETS['emm']) ======================
   On auth.daphnesfantasies.com this sheet is layered over
   authentication/auth.css, and LOGIN_BRANDING['emm'] supplies the claret
   accent variables, the font <link> and a text wordmark rendered as
   p#logo.auth-wordmark (the hay shape: no own_login_skin, so auth.css keeps
   its WHITE card, inputs and buttons in the claret accent). Two consequences
   of a dark sheet over a light card:
   - the wordmark sits above the card on this sheet's ink, so it is bone;
   - everything in the card that auth.css does not colour itself (the h2, the
     body copy, the visa partial) would inherit this sheet's bone body text,
     invisible on white. The card is put back on auth.css's own text tones,
     read from its variables so the two stay one decision. */
#logo.auth-wordmark {
    font-family: var(--serif-display);
    font-weight: 500;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: .02em;
    text-align: center;
    color: var(--bone);
}
/* This sheet's storefront card margins (56px auto) would push auth.css's
   inline-block login|register columns apart. */
main.auth-server .login-register-form-container { margin: 0 .75rem 1.5rem; }
main.auth-server:not(.own-skin) .login-register-form-container,
main.auth-server:not(.own-skin) .login-register-form-container h2 { color: var(--auth-text); }
main.auth-server:not(.own-skin) div.password-field .password-toggle,
main.auth-server:not(.own-skin) .small-note { color: var(--auth-muted); }
main.auth-server:not(.own-skin) input::placeholder { color: var(--auth-muted); }
main.auth-server:not(.own-skin) div.password-field .password-toggle:hover,
main.auth-server:not(.own-skin) div.password-field .password-toggle:focus-visible { color: var(--auth-text); }

/* ===== Members' hub ======================================================
   backstage_base.html fills base.html's logo_addition with
   span.backstage_logo, the member-hub link beside the crest, and the hub
   pages lay their items out as div.movieminimal cards (the handoff's own
   rules for them, re-inked). The hub templates keep their inline style=""
   margins and captions; these rules dress the classes around them. */
/* The masthead spreads its children with space-between; the auto margin keeps
   the hub link beside the crest instead of alone in the middle. */
.emm-masthead .backstage_logo { margin-right: auto; }
.backstage_logo a {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--line-2);
    font-family: var(--serif-display);
    font-size: .8rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    line-height: 1.4;
}
.backstage_logo a:link, .backstage_logo a:visited { color: var(--brass-lit); }
.backstage_logo a:hover, .backstage_logo a:focus-visible { color: var(--bone); border-color: var(--brass); }

.movieminimal {
    display: inline-block;
    vertical-align: top;
    width: 260px;
    margin: 0 22px 30px 0;
    font-family: var(--serif-display);
    color: var(--bone-2);
}
/* Each card opens with its title in a <p>, bare or inside the card's link. */
.movieminimal > p:first-child,
.movieminimal > a:first-child > p { margin: 0 0 .3em; font-size: 1.25rem; color: var(--bone); }
.movieminimal img { width: 100%; height: auto; border: 1px solid var(--line-2); background: var(--ink-3); }
/* The hub's wrapper is an unclassed div with inline side margins. */
div:has(> div.movieminimal) { padding: 44px 0 20px; }

/* ===== Content pages ====================================================
   The handoff's content-page dress (its emm.css group 2, which the service
   pages left for here), on the markup emm's content templates render: the
   visitor home and the members' lobby, the indexes, a gallery and its still
   viewer, the film and video pages and the journal. Two families of class
   meet here. The emm-* names are the handoff's own; the rest (thumb,
   gate-band, detail-hero, video-frame, buy-box, media-card, story-article ...)
   are the hooks hay's templates carry and emm's shadows keep, because the
   shared tests and the shadow-fidelity contract target them.
   No rule here lifts or zooms on hover or focus (emm/tests/test_dress.py);
   a plate answers with its frame's colour. Every colour is a palette token:
   the hero scrim and the lock veil are the only translucent fills, and
   emm/tests/test_contrast.py measures the text on both over a white
   underlay, since the picture under them could be anything. */

/* -- Page containers. base.html does not wrap the body block, so each page's
      <main> (or its sections, on the full-bleed home) sets its own measure. -- */
.wrap,
.emm-lobby,
.emm-index,
.emm-gallery,
.emm-section,
.emm-page-head {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}
.emm-lobby, .emm-index, .emm-gallery { padding-bottom: 64px; }
.emm-story, .emm-story-list { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; }

.emm-section-label {
    margin: 0 0 14px;
    font-family: var(--serif-display);
    font-size: .82rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--brass);
}
.emm-page-head { padding-top: 64px; padding-bottom: 12px; text-align: center; }
.emm-page-head p:not(.emm-section-label) { max-width: 620px; margin: 6px auto 0; font-style: italic; color: var(--bone-dim); }
.emm-back { margin: 0; padding: 28px 0 0; font-family: var(--serif-display); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; }
.emm-empty { grid-column: 1 / -1; padding: 30px 0; text-align: center; font-style: italic; color: var(--bone-dim); }
.emm-banner { margin: 24px 0 0; padding: 16px 20px; border: 1px solid var(--line-2); background: var(--ink-2); }
.emm-index-cta { padding: 34px 0 0; text-align: center; }

/* A fleuron between two brass hairlines. */
.emm-divider { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px auto 46px; max-width: 420px; color: var(--brass); }
.emm-divider::before, .emm-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.emm-divider--short { max-width: 220px; margin: 26px auto 0; }
.emm-rule--left { margin: 18px 0 22px; }
/* The "E. M." section break: the author's `---` inside a story body (an <hr>,
   whose initials come from ::after, so the rendered markdown is never
   rewritten) and the one mark closing a story read in full. Both are the
   initials between two hairlines; the hairlines are two background strips with
   a gap for the initials, so nothing depends on the ground colour behind them.
   `clear` keeps a break below a spot figure floated beside the paragraph
   before it. */
.emm-section-break,
.story-article hr {
    clear: both;
    height: auto;
    margin: 1.6em 0;
    border: 0;
    background:
        linear-gradient(var(--line-2), var(--line-2)) left center / calc(50% - 2.6rem) 1px no-repeat,
        linear-gradient(var(--line-2), var(--line-2)) right center / calc(50% - 2.6rem) 1px no-repeat;
    text-align: center;
    font-family: var(--script);
    font-size: 2rem;
    line-height: 1.2;
    color: var(--brass-lit);
}
.story-article hr { overflow: visible; }
.story-article hr::after { content: "E. M."; }
.emm-section-break { margin: 2.2em 0 1.4em; }

/* -- The call to action: the claret plate of .button, as a link. -- */
.emm-cta,
a.emm-cta {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--brass);
    background: var(--claret);
    color: var(--bone);
    font-family: var(--serif-display);
    font-size: 1.05rem;
    letter-spacing: .24em;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}
a.emm-cta { transition: background .18s ease, color .18s ease; }
a.emm-cta:link, a.emm-cta:visited { color: var(--bone); }
.emm-cta:hover, .emm-cta:focus-visible,
a.emm-cta:hover, a.emm-cta:focus-visible { background: var(--claret-lit); color: #fff; }
.emm-cta--ghost, a.emm-cta--ghost { background: var(--ink); color: var(--brass-lit); }
a.emm-cta--ghost:link, a.emm-cta--ghost:visited { color: var(--brass-lit); }
.emm-cta--ghost:hover, .emm-cta--ghost:focus-visible,
a.emm-cta--ghost:hover, a.emm-cta--ghost:focus-visible { background: var(--claret); color: #fff; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }

/* -- Badges. The New badge is hay's, re-inked; Enrolled marks a plate whose
      picture the server has already greyed. -- */
.new-tag,
.members-tag {
    position: absolute;
    top: 10px;
    z-index: 1;
    display: inline-block;
    padding: 3px 10px;
    font-family: var(--serif-display);
    font-size: .72rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    line-height: 1.4;
}
.new-tag { left: 10px; background: var(--claret); color: var(--bone); border: 1px solid var(--brass); }
.members-tag { right: 10px; background: var(--ink-3); color: var(--brass-lit); border: 1px solid var(--line-2); }

/* ===== Home: hero, prospectus, On View, admission ======================== */
.emm-hero {
    position: relative;
    height: clamp(520px, 58vw, 760px);
    overflow: hidden;
    background: var(--ink-3);
}
.emm-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.emm-hero-video { opacity: 0; transition: opacity .8s ease; }
/* Added by emm.js once the film has data (hay.js's listener). */
.emm-hero-video.is-playing { opacity: 1; }
/* The scrim is the whole overlay and the only thing between the hero copy
   and the picture, so it carries the copy's contrast alone: bone text over a
   WHITE underlay needs .615 of the ink for AA, and the scrim never drops
   below .66 anywhere, so no band has to be declared. The kicker and tagline
   are bone rather than the handoff's brass for the same reason: brass-lit
   would need .78 and hide the film. Measured by emm/tests/test_contrast.py. */
.emm-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(11,10,13,.66) 0%, rgba(11,10,13,.72) 55%, rgba(11,10,13,.9) 100%);
}
.emm-hero-kicker {
    margin: 0 0 14px;
    font-family: var(--serif-display);
    font-size: clamp(.9rem, 1.6vw, 1.15rem);
    letter-spacing: .5em;
    text-transform: uppercase;
    color: var(--bone);
}
.emm-hero-title {
    margin: 0;
    font-weight: 600;
    font-size: clamp(3.6rem, 10vw, 7.5rem);
    line-height: .92;
    color: var(--bone);
}
.emm-hero-tagline { margin: 0; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--bone); }
.emm-hero .emm-rule { margin: 26px auto; }

.emm-prospectus { max-width: 760px; margin: 0 auto; padding: 80px 24px 40px; text-align: center; }
.emm-prospectus p:not(.emm-section-label):not(.emm-signature):not(.emm-sig-role) { font-size: 1.25rem; line-height: 1.75; color: var(--bone-2); }

.emm-section { padding-top: 40px; padding-bottom: 40px; }
.emm-section--center { text-align: center; }
.emm-section-note { max-width: 560px; margin: -4px auto 30px; font-style: italic; color: var(--bone-dim); }
.emm-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.emm-section-head h2 { margin: 0; }
.emm-section-head a { font-family: var(--serif-display); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; }

/* The admission block: price only when an offer is live (the template omits
   the figure otherwise). */
.emm-admission {
    max-width: 680px;
    margin: 40px auto 80px;
    padding: 46px 40px 40px;
    border: 1px solid var(--line-2);
    background: var(--ink-2);
    text-align: center;
}
.emm-price { margin: 0 0 12px; font-family: var(--serif-display); font-size: 2.6rem; line-height: 1.1; color: var(--brass-lit); }
.emm-price small { font-size: 1rem; letter-spacing: .14em; color: var(--bone-dim); }
.emm-admission-copy { font-style: italic; color: var(--bone-2); }
.emm-admission-login { margin: 22px 0 0; font-size: .95rem; color: var(--bone-dim); }

/* ===== Plates: the framed picture tiles ================================ */
.emm-plate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 30px;
}
.emm-plate-grid--4 { grid-template-columns: repeat(4, 1fr); }
.emm-plate, a.emm-plate { display: block; text-align: center; }
.emm-plate-frame {
    display: block;
    padding: 10px;
    border: 1px solid var(--line-2);
    background: var(--ink-2);
}
a.emm-plate .emm-plate-frame { transition: border-color .18s ease; }
.emm-plate-frame--thin { display: block; padding: 5px; }
.emm-plate-img {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ink-3);
}
.emm-plate-img--wide { aspect-ratio: 16 / 9; }
.emm-plate-img img { width: 100%; height: 100%; object-fit: cover; }
.emm-plate-caption { display: block; padding: 14px 4px 0; }
.emm-plate-caption--left { text-align: left; }
.emm-plate .title,
.emm-video-card .title,
.emm-story-row .title {
    display: block;
    font-family: var(--serif-display);
    font-size: 1.3rem;
    line-height: 1.15;
    color: var(--bone);
}
.emm-plate-meta {
    display: block;
    margin-top: 6px;
    font-family: var(--serif-display);
    font-size: .76rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brass);
}
.emm-plate:hover .emm-plate-frame, .emm-plate:focus-visible .emm-plate-frame { border-color: var(--brass); }
.emm-plate:hover .title, .emm-plate:focus-visible .title { color: var(--brass-lit); }

/* A plate a visitor may not open: the server has already greyed the
   picture; the veil and the lock say why. */
.emm-locked .emm-plate-img img { filter: blur(6px) saturate(.6); }
.emm-lock-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--serif-display);
    font-size: .8rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--bone);
    background: rgba(11,10,13,.66);
}
/* A padlock drawn in borders: a shackle over a body. */
.emm-lock { position: relative; display: block; width: 18px; height: 14px; margin-top: 10px; border: 1px solid var(--bone); }
.emm-lock::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -10px;
    width: 10px;
    height: 10px;
    border: 1px solid var(--bone);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

/* A play mark over a film or video picture: a brass ring with a triangle. */
.emm-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin: -11px 0 0 -7px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--bone);
    pointer-events: none;
}
.emm-play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 1px solid var(--brass-lit);
    border-radius: 50%;
    background: var(--ink-3);
    pointer-events: none;
}
.emm-play::after { z-index: 1; }
.emm-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    font-family: var(--serif-display);
    font-size: .78rem;
    letter-spacing: .12em;
    color: var(--bone);
    background: var(--ink-3);
}

/* -- Film and video cards: wide pictures with the title beneath. -- */
.emm-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
.emm-video-card, a.emm-video-card { display: block; }
.emm-video-card .emm-plate-img { border: 1px solid var(--line-2); }
a.emm-video-card .emm-plate-img { transition: border-color .18s ease; }
.emm-video-card .title { margin-top: 14px; }
.emm-video-card-text { display: block; margin-top: 8px; font-size: .95rem; color: var(--bone-dim); }
.emm-video-card:hover .emm-plate-img, .emm-video-card:focus-visible .emm-plate-img { border-color: var(--brass); }
.emm-video-card:hover .title, .emm-video-card:focus-visible .title { color: var(--brass-lit); }

/* -- The journal: card on the lobby, feature on the home. -- */
.emm-journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.emm-journal-card, a.emm-journal-card {
    display: block;
    padding: 28px 30px;
    border: 1px solid var(--line);
    background: var(--ink-2);
}
a.emm-journal-card { transition: border-color .18s ease; }
.emm-journal-card:hover, .emm-journal-card:focus-visible { border-color: var(--brass); }
/* On the anchor, so it outranks a.emm-journal-card's display: block above. */
a.emm-journal-card--feature { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; text-align: left; }
.emm-journal-thumb { display: block; border: 1px solid var(--line-2); background: var(--ink-3); }
.emm-journal-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.emm-journal-text { display: block; }
.emm-journal-date { display: block; font-family: var(--serif-display); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.emm-journal-title { display: block; margin: 8px 0; font-family: var(--serif-display); font-size: 1.6rem; line-height: 1.1; color: var(--bone); }
.emm-journal-excerpt { display: block; font-style: italic; color: var(--bone-dim); }
.emm-journal-more { display: block; margin-top: 12px; font-family: var(--serif-display); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-lit); }

/* ===== Members' lobby ===================================================== */
.emm-greeting { padding: 56px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.emm-greeting h1 { max-width: 820px; }
.emm-greeting p:not(.emm-section-label) { margin: 0; font-style: italic; color: var(--bone-dim); }
.emm-lobby .emm-section { padding-left: 0; padding-right: 0; }

/* ===== Single gallery and the still viewer =============================== */
.detail-hero {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 54px;
    align-items: start;
    padding: 40px 0 44px;
}
.detail-hero-poster { padding: 12px; border: 1px solid var(--line-2); background: var(--ink-2); }
.detail-hero-poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.detail-hero-meta { padding-top: 12px; }
.detail-hero-meta h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: 12px; }
.detail-cast { margin: 0 0 10px; font-style: italic; font-size: 1.2rem; color: var(--bone-2); }
.detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    margin: 0;
    font-family: var(--serif-display);
    font-size: .82rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brass);
}
.detail-meta-line--tight { margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--bone-2); }
.dot { color: var(--brass); }

.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 10px 0 30px; }
.thumb, a.thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--ink-3);
}
a.thumb { transition: border-color .18s ease; }
.thumb:hover, .thumb:focus-visible { border-color: var(--brass); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--locked img { filter: blur(8px) saturate(.6); }
/* The lock glyph is a graphical object (WCAG 1.4.11, 3:1); the veil holds
   bone at that over a white underlay (emm/tests/test_contrast.py). */
.thumb-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bone);
    background: rgba(11,10,13,.66);
}
.thumb-lock svg { display: block; width: 22px; height: 22px; }
.thumb-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 10px;
    font-size: .85rem;
    font-style: italic;
    color: var(--bone-2);
    background: var(--ink-3);
}
.gate-band { padding: 24px 0 10px; text-align: center; }
.gate-note { font-style: italic; color: var(--bone-dim); }

.breadcrumb { padding: 28px 0 0; font-family: var(--serif-display); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); }
.breadcrumb .sep { margin: 0 10px; color: var(--brass); }

.still-stage { padding: 34px 24px 46px; }
.still-title { max-width: 860px; margin: 0 auto 18px; text-align: center; font-size: 1rem; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-dim); }
.still-frame { max-width: 860px; margin: 0 auto; padding: 14px; border: 1px solid var(--line-2); background: var(--ink-2); }
.still-plate { width: 100%; height: auto; background-size: contain; background-repeat: no-repeat; background-position: center; }
.still-caption { max-width: 860px; margin: 18px auto 0; text-align: center; font-style: italic; color: var(--bone-dim); }
/* The progress track is a hairline; its fill is the brass, sized by
   still.html's --progress. Both are borders, never fills. */
.still-progress-bar { max-width: 860px; margin: 18px auto 0; border-top: 1px solid var(--line); }
.still-progress-fill { width: var(--progress, 0%); margin-top: -1px; border-top: 1px solid var(--brass-lit); }
.still-toolbar { max-width: 860px; margin: 22px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.still-counter { font-family: var(--serif-display); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); }
.still-nav-btn, a.still-nav-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--line-2);
    font-family: var(--serif-display);
    font-size: .9rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brass-lit);
}
a.still-nav-btn { transition: border-color .18s ease, color .18s ease; }
a.still-nav-btn:link, a.still-nav-btn:visited { color: var(--brass-lit); }
.still-nav-btn:hover, .still-nav-btn:focus-visible,
a.still-nav-btn:hover, a.still-nav-btn:focus-visible { border-color: var(--brass); color: var(--bone); }
/* A disabled end is a span, not a link: nothing to follow, by key or click. */
.still-nav-btn[aria-disabled="true"] { color: var(--bone-faint); border-color: var(--line); }
.still-rating { max-width: 860px; margin: 18px auto 0; }
.still-back { padding: 10px 40px 60px; text-align: center; }

/* ===== Films and videos ================================================== */
.video-stage { padding: 34px 24px; background: var(--ink-3); border-block: 1px solid var(--line); }
.video-frame {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--ink-3);
}
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-frame .video-frame-player { object-fit: contain; }
.video-frame-agegate { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; color: var(--bone); }
.video-stage-audio { display: block; margin: 16px auto 0; }
.video-info { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; padding: 44px 0 20px; }
.video-info--single { grid-template-columns: 1fr; }
.video-info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.video-aside { padding: 26px; border: 1px solid var(--line-2); background: var(--ink-2); }
.video-aside dl { margin: 0; }
.video-aside dt { margin-top: 16px; font-family: var(--serif-display); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.video-aside dt:first-child { margin-top: 0; }
.video-aside dd { margin: 3px 0 0; color: var(--bone-2); }

.film-actions { margin-top: 26px; }
.film-actions .detail-actions { margin: 0 0 14px; }
.film-state { font-family: var(--serif-display); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-lit); }
.fineprint { margin: 6px 0 0; font-size: .95rem; color: var(--bone-dim); }
.members-note { margin-top: 14px; font-style: italic; color: var(--bone-dim); }
.buy-box { padding: 20px 24px; border: 1px solid var(--line-2); background: var(--ink-2); }
.buy-box-title { margin: 0 0 10px; font-family: var(--serif-display); font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.buy-list { list-style: none; margin: 0 0 12px; padding: 0; }
.buy-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.buy-list li:last-child { border-bottom: 0; }
.buy-was { margin-left: 6px; font-size: .9rem; color: var(--bone-dim); }
.buy-links, .buy-note { margin: 10px 0 0; font-size: .95rem; color: var(--bone-dim); }
.cc-pill { display: inline-block; padding: 0 6px; border: 1px solid currentColor; letter-spacing: .08em; }
.film-rating { display: inline-block; height: 1.2em; width: auto; vertical-align: -3px; margin-right: 6px; }
.film-stills { display: flex; flex-wrap: wrap; gap: 12px; padding: 30px 0 10px; }
.film-stills img { width: 180px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-2); }
.film-cast-line { color: var(--bone-2); }
.film-role { font-style: italic; font-size: .9em; }
.film-copy { max-width: 760px; font-size: 1.1rem; }
.film-data { font-family: var(--serif-display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.film-reviews { margin-top: 30px; }
.film-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.film-castcard, a.film-castcard { display: block; text-align: center; }
.film-castshot { display: block; border: 1px solid var(--line-2); }
.film-castshot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.film-castname { display: block; margin-top: 8px; font-family: var(--serif-display); font-size: 1.1rem; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.rail-head h2 { margin: 0; }
.rail-head--spaced { margin-top: 40px; }

/* -- The films index and the "And don't miss" rail (movies.html,
      movie_module.html and _film_tile.html: hay's card hooks). -- */
.page-head { padding: 64px 0 8px; text-align: center; }
.page-head-blurb { max-width: 620px; margin: 6px auto 0; font-style: italic; color: var(--bone-dim); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; padding: 40px 0 20px; }
.card-grid--wide { grid-template-columns: repeat(2, 1fr); }
.media-card, a.media-card { display: block; border: 1px solid var(--line-2); background: var(--ink-2); }
a.media-card { transition: border-color .18s ease; }
.media-card:hover, .media-card:focus-visible, .media-card:has(:focus-visible) { border-color: var(--brass); }
.media-card-cover, a.media-card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }
.media-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.media-card-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.media-card-play span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding-left: 4px;
    border: 1px solid var(--brass-lit);
    border-radius: 50%;
    background: var(--ink-3);
    color: var(--bone);
}
.media-card-body, span.media-card-body { display: block; padding: 18px 20px 22px; }
.media-card-heading { display: block; font-family: var(--serif-display); font-size: 1.35rem; line-height: 1.1; color: var(--bone); }
a.media-card-title:link, a.media-card-title:visited { color: var(--bone); }
a.media-card-title:hover, a.media-card-title:focus-visible { color: var(--brass-lit); }
.media-card-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-family: var(--serif-display); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.media-card-blurb { margin: 10px 0 0; font-size: .95rem; color: var(--bone-dim); }
.media-card-blurb p { margin: 0; }
.media-card-cast { margin: 10px 0 0; font-size: .95rem; color: var(--bone-dim); }

/* ===== Stories: the journal index and an entry =========================== */
.emm-story-row, a.emm-story-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 28px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.emm-story-row:hover .title, .emm-story-row:focus-visible .title { color: var(--brass-lit); }
.emm-story-thumb { display: block; align-self: start; border: 1px solid var(--line-2); background: var(--ink-3); }
.emm-story-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.emm-story-row-text { display: block; }
.emm-story-row .title { margin: 8px 0 4px; font-size: 1.8rem; }
.emm-story-dek, .story-dek { display: block; margin: 0 0 8px; font-style: italic; font-size: 1.15rem; color: var(--bone-2); }

.story-head { padding: 34px 0 10px; text-align: center; }
.story-head h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin-bottom: 12px; }
.story-head .emm-signature { margin-top: 18px; }
.story-byline { margin: 10px 0 0; font-family: var(--serif-display); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-faint); }
.story-coming { margin: 10px 0 0; color: var(--brass-lit); }
.story-lead { margin: 30px 0; padding: 10px; border: 1px solid var(--line-2); }
.story-lead img { width: 100%; }
.story-lead figcaption { padding-top: 8px; text-align: center; font-size: .9rem; font-style: italic; color: var(--bone-dim); }
/* The body renders straight into the article: the drop cap and the spot
   figures key on it, and it contains its own floats so a spot near the end
   of a short entry cannot hang over the band below. */
.story-article {
    display: flow-root;
    padding: 30px 0 10px;
    font-size: 1.24rem;
    line-height: 1.8;
    color: var(--bone-2);
}
.story-article p { margin: 0 0 1.3em; }
.story-article > p:first-of-type::first-letter {
    float: left;
    padding: 8px 12px 0 0;
    font-family: var(--serif-display);
    font-size: 5.1rem;
    line-height: .74;
    color: var(--brass-lit);
}
.story-article .spot {
    float: right;
    width: 250px;
    margin: 8px 0 22px 34px;
    padding: 8px;
    border: 1px solid var(--brass);
}
.story-article .spot--left { float: left; margin: 8px 34px 22px 0; }
.story-article .spot img { width: 100%; height: auto; }
.story-article .spot figcaption { padding: 8px 4px 0; text-align: center; font-size: .9rem; font-style: italic; line-height: 1.4; color: var(--bone-dim); }
.story-end { margin-top: 2em; text-align: center; font-style: italic; }
.join-band { padding: 40px 32px; border: 1px solid var(--line-2); background: var(--ink-2); text-align: center; }
.join-band--inline { margin-top: 40px; }
.join-band .detail-actions { justify-content: center; }
.emm-story-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--serif-display); font-size: 1.15rem; }
.emm-story-nav-next { margin-left: auto; text-align: right; }
.story-pmnav { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0 20px; }
.story-pmnav a { display: block; font-family: var(--serif-display); font-size: 1.3rem; }
.story-pmnav .emm-section-label { display: block; margin-bottom: 4px; }
.story-pmnav-next { margin-left: auto; text-align: right; }

#rate { margin: 18px 0 0; color: var(--brass-lit); }

/* ===== Responsive ====================================================== */
@media (max-width: 900px) {
    .emm-masthead { flex-wrap: wrap; justify-content: center; padding: 18px 24px; gap: 14px 24px; }
    .emm-nav ul { flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-size: .9rem; }
    .emm-masthead--reduced { flex-direction: column; padding-top: 34px; }
    .emm-masthead--reduced .emm-nav { position: static; transform: none; }
    .emm-plate-grid, .emm-plate-grid--4, .emm-video-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .emm-journal-grid, a.emm-journal-card--feature { grid-template-columns: 1fr; }
    .emm-journal-card--feature .emm-journal-thumb { max-width: 220px; }
    .detail-hero { grid-template-columns: 1fr; gap: 30px; }
    .detail-hero-poster { max-width: 420px; }
    .video-info { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
    body { font-size: 17px; }
    .emm-logo { font-size: 1.2rem; }
    .emm-footer { padding: 36px 20px 32px; }
    .age-actions { flex-direction: column; align-items: center; }
    .coming-field { flex-direction: column; }
    .coming-field .button { border-left: 0; border-top: 1px solid var(--brass); }
    .movieminimal { width: 100%; margin-right: 0; }
    .wrap, .emm-lobby, .emm-index, .emm-gallery, .emm-section, .emm-page-head { padding-left: 20px; padding-right: 20px; }
    .emm-plate-grid, .emm-plate-grid--4, .emm-video-grid, .card-grid, .card-grid--wide { grid-template-columns: 1fr; }
    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .emm-story-row, a.emm-story-row { grid-template-columns: 90px 1fr; gap: 18px; }
    .story-article .spot, .story-article .spot--left { float: none; width: auto; margin: 8px 0 22px; }
    .still-nav-btn, a.still-nav-btn { padding: 8px 12px; font-size: .8rem; letter-spacing: .12em; }
    .emm-admission { padding: 34px 20px 30px; margin-left: 12px; margin-right: 12px; }
}

/* ===== Accessibility: keyboard focus ======================================
   Every :hover state above is written beside its :focus-visible twin, so a
   reader tabbing through gets the same affordance a pointer does
   (emm/tests/test_dress.py pins the pairing). Links and buttons also get a
   visible brass ring; form fields keep their own :focus border and glow. */
:focus-visible { outline: 2px solid var(--brass-lit); outline-offset: 3px; }

/* ===== Accessibility: reduced motion =====================================
   Nothing in this sheet lifts, zooms or slides on hover, focus or selection
   -- the Academy's restraint, and emm/tests/test_dress.py fails on a state
   that does. What remains is colour easing, which is not motion, but a
   reader who asks for less gets none of it either. */
@media (prefers-reduced-motion: reduce) {
    a:link, a:visited, .button, a.button, .age-cta, a.age-cta, .age-leave, a.age-leave,
    .offer-card, .emm-crest, input, select, textarea { transition: none; }
    .emm-nav .nav-enrol a:link, .emm-nav .nav-enrol a:visited { transition: none; }
    a.emm-cta, a.emm-plate .emm-plate-frame, a.emm-video-card .emm-plate-img, a.emm-journal-card,
    a.thumb, a.still-nav-btn, a.media-card { transition: none; }
    /* No hero film: the poster frame stays, and emm.js pauses the video so it
       stops playing and fetching. */
    .emm-hero-video { display: none; }
}
