/* ─────────────────────────────────────────────────────────────
   The House of Postiche — shared editorial chrome
   (announcement bar, header + shop menu, mobile drawer, footer)
   Used by index.html, custom-order.html, quiz.html.
   ───────────────────────────────────────────────────────────── */

:root {
    --ink:        #0E0E0E;
    --ink-soft:   #2A2A2A;
    --paper:      #FFFFFF;
    --paper-2:    #F6F6F4;
    --paper-3:    #ECECE9;
    --line:       #E2E2DE;
    --muted:      #6F6F69;
    --serif:      'Cormorant Garamond', Georgia, serif;
    --sans:       'Inter', system-ui, sans-serif;
    --max:        1320px;
    --gutter:     clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ── Type helpers ── */
.label { font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; }
.display em { font-style: italic; }
.rule-title { display: flex; align-items: center; gap: 18px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.rule-title::before, .rule-title::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .25; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: transparent; color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.text-link { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ── Announcement bar ── */
.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 10px var(--gutter); }
.announce a { border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 1px; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-nav { display: flex; gap: 24px; align-items: center; white-space: nowrap; }
.header-nav > a, .header-nav > .has-menu > button { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 28px 0; display: inline-flex; align-items: center; gap: 6px; }
.header-nav > a:hover, .header-nav > .has-menu > button:hover { opacity: .6; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.brand img { height: 30px; width: auto; }
.brand span { font-size: 8.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.header-actions .book-link { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; position: relative; }
.menu-toggle { display: none; }

/* Mega menu */
.has-menu { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; box-shadow: 0 24px 40px rgba(0,0,0,.06); }
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 40px; }
.mega h4 { font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.mega ul { display: flex; flex-direction: column; gap: 10px; }
.mega ul a { font-family: var(--serif); font-size: 20px; }
.mega ul a:hover { font-style: italic; }
.mega-feature { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4/3; }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; }
.mega-feature div { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; }
.mega-feature strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.mega-feature span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* Mobile drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 300; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); background: var(--paper); z-index: 301; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; padding: 22px 24px 40px; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.drawer-head img { height: 24px; }
.drawer h4 { font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.drawer a { display: block; font-family: var(--serif); font-size: 22px; padding: 6px 0; }
.drawer .drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer .drawer-chips a { font-family: var(--sans); font-size: 12px; padding: 7px 14px; border: 1px solid var(--line); }
.drawer .btn { width: 100%; margin-top: 28px; font-family: var(--sans); font-size: 11px; }

/* ── Footer ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 80px 0 36px; }
.footer-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.4fr; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 26px; filter: invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.75; max-width: 280px; }
.site-footer h5 { font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.site-footer ul a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { font-size: 13px; line-height: 1.9; }
.footer-news p { font-size: 13px; margin-bottom: 14px; }
.footer-news form { display: flex; border-bottom: 1px solid rgba(255,255,255,.4); }
.footer-news input { flex: 1; min-width: 0; background: transparent; border: none; color: #fff; padding: 12px 0; font: inherit; font-size: 13px; outline: none; }
.footer-news input::placeholder { color: rgba(255,255,255,.45); }
.footer-news button { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; padding: 0 4px; }
.footer-news .msg { font-size: 12px; margin-top: 10px; color: #fff; display: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 11.5px; color: rgba(255,255,255,.42); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1240px) {
    .header-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-inner { grid-template-columns: auto 1fr auto; height: 64px; }
    .brand { align-items: center; }
    .brand img { height: 24px; }
    .header-actions .book-link { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-news { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .announce { font-size: 10px; letter-spacing: .1em; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
