/* ==========================================================================
   ROYAL
   The elevated register: the ornament, the deep grounds, and the components
   that only the house's own pages and the guest area use.

   Loaded after components.css and sections.css. It adds; it does not override
   the base system, so a page that does not link it still renders correctly.

   Colour comes exclusively from the ROYAL LAYER block in tokens.css. Nothing
   in this file hard-codes a colour, a duration or an easing.
   ========================================================================== */

/* ── THE BOSS ─────────────────────────────────────────────────────────────
   Brass is a material, not a colour: it has a light source. The dome is lit
   from the upper left and the ring picks that up, which is the whole trick —
   a flat gold circle reads as a sticker.
   ───────────────────────────────────────────────────────────────────────── */

.boss { display: block; }
.boss__flutes  { fill: var(--c-brass-deep); opacity: 0.55; }
.boss__ring    { stroke: var(--c-brass); fill: none; }
.boss__ring--inner { stroke: var(--c-brass-deep); opacity: 0.7; }
.boss__dome    { fill: var(--c-brass); }
.boss__glint   { fill: var(--c-brass-bright); opacity: 0.9; }

/* On a dark ground the whole mark steps one value brighter, or it disappears. */
.section--royal .boss__ring,
.footer .boss__ring,
.auth .boss__ring     { stroke: var(--c-brass-bright); }
.section--royal .boss__dome,
.footer .boss__dome,
.auth .boss__dome     { fill: var(--c-brass-bright); }
.section--royal .boss__flutes,
.footer .boss__flutes,
.auth .boss__flutes   { fill: var(--c-brass); opacity: 0.75; }

/* ── THE LINTEL ───────────────────────────────────────────────────────────
   A tiling carve used between major movements of a page. It fades at both
   ends so it reads as a length of carving rather than a ruled line that has
   been cut off by the viewport.
   ───────────────────────────────────────────────────────────────────────── */

.lintel {
  height: 12px;
  background-image: var(--lintel-tile);
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.lintel--dark { opacity: 0.62; }

/* ── ROYAL GROUND ─────────────────────────────────────────────────────────
   A deep indigo section. Text colours are the measured pair from tokens.css;
   nothing here invents one.
   ───────────────────────────────────────────────────────────────────────── */

.section--royal {
  background: var(--c-indigo);
  color: var(--c-on-royal);
}
.section--royal .lede,
.section--royal .prose,
.section--royal .text-muted { color: var(--c-on-royal-muted); }
.section--royal .label      { color: var(--c-brass-bright); }
.section--royal .rule       { background: var(--c-royal-line); }
.section--royal a:not(.btn) { color: var(--c-on-royal); text-decoration-color: var(--c-royal-line); }
.section--royal a:not(.btn):hover { text-decoration-color: var(--c-brass-bright); }

/* A single vertical gradient so the ground is not a flat fill — it deepens
   toward the foot, the way a wall does away from a window. */
.section--royal-deep {
  background: linear-gradient(180deg, var(--c-indigo) 0%, var(--c-indigo-deep) 100%);
  color: var(--c-on-royal);
}

/* ── PAGE CROWN ───────────────────────────────────────────────────────────
   Every royal page opens the same way, which is what makes them feel like one
   house rather than twelve templates. Centred, because the boss is a
   symmetrical mark and hanging it off a left rag looks like a mistake.
   ───────────────────────────────────────────────────────────────────────── */

.crown {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-4);
  padding-block: var(--s-9) var(--s-7);
  max-width: 58ch;
  margin-inline: auto;
}
.crown__mark  { margin-bottom: var(--s-2); }
.crown__label { color: var(--c-accent); margin: 0; }
.crown__title { margin: 0; }
.crown__lede  { margin: 0; color: var(--c-text-muted); }

.section--royal .crown__label { color: var(--c-brass-bright); }
.section--royal .crown__lede  { color: var(--c-on-royal-muted); }

/* ── LEDGER LIST ──────────────────────────────────────────────────────────
   Used for experiences and concierge. Deliberately NOT a card grid: a house
   lists what it can arrange the way it would write it down — one per line,
   ruled, with the price hung on the right where the eye goes for a number.
   ───────────────────────────────────────────────────────────────────────── */

.entries { border-top: 1px solid var(--c-border); }
.section--royal .entries { border-top-color: var(--c-royal-line); }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--s-6) var(--s-8);
  align-items: start;
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--c-border);
}
.section--royal .entry { border-bottom-color: var(--c-royal-line); }

.entry__head   { display: grid; gap: var(--s-3); align-content: start; }
.entry__name   { font-family: var(--font-display); font-size: var(--t-display-s);
                 line-height: var(--lh-heading); margin: 0; }
.entry__meta   { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
                 font-size: var(--t-caption); color: var(--c-text-faint); margin: 0; }
.section--royal .entry__meta { color: var(--c-on-royal-muted); }
.entry__price  { font-variant-numeric: lining-nums tabular-nums;
                 color: var(--c-accent); font-size: var(--t-body-s); }
.section--royal .entry__price { color: var(--c-brass-bright); }
.entry__body   { display: grid; gap: var(--s-4); }
.entry__body p { margin: 0; max-width: 56ch; line-height: var(--lh-body); }
.entry__list   { list-style: none; margin: 0; padding: 0;
                 display: grid; gap: var(--s-2); font-size: var(--t-body-s);
                 color: var(--c-text-muted); }
.section--royal .entry__list { color: var(--c-on-royal-muted); }
.entry__list li { padding-left: var(--s-5); position: relative; }
.entry__list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 1px; background: var(--c-accent-mark);
}
.section--royal .entry__list li::before { background: var(--c-brass); }

@media (max-width: 860px) {
  .entry { grid-template-columns: 1fr; gap: var(--s-5); padding-block: var(--s-6); }
}

/* ── TIMELINE ─────────────────────────────────────────────────────────────
   The about page's history. Numbered because it genuinely is a sequence —
   the years carry the ordering, so no decorative 01/02/03 is added on top.
   ───────────────────────────────────────────────────────────────────────── */

.timeline { display: grid; gap: 0; margin: 0; padding: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: var(--s-6);
  padding-block: var(--s-6);
  border-top: 1px solid var(--c-border);
  position: relative;
}
.section--royal .timeline__item { border-top-color: var(--c-royal-line); }
.timeline__year {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: var(--t-display-s);
  color: var(--c-accent);
  margin: 0;
  line-height: var(--lh-heading);
}
.section--royal .timeline__year { color: var(--c-brass-bright); }
.timeline__title { font-size: var(--t-body-l); margin: 0 0 var(--s-2); }
.timeline__body  { margin: 0; color: var(--c-text-muted); max-width: 54ch; }
.section--royal .timeline__body { color: var(--c-on-royal-muted); }

@media (max-width: 700px) {
  .timeline__item { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ── BILL (dining menus) ──────────────────────────────────────────────────
   A menu is a bill of fare. Set as one, with the note in italic under the
   name and the dishes ruled beneath — not as a pricing card.
   ───────────────────────────────────────────────────────────────────────── */

.bills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
         gap: var(--s-8); align-items: start; }
.bill { display: grid; align-content: start; }
.bill__name { font-family: var(--font-display); font-size: var(--t-display-s);
              margin: 0 0 var(--s-2); line-height: var(--lh-heading); }
.bill__note { font-style: italic; color: var(--c-text-faint); margin: 0 0 var(--s-5);
              font-size: var(--t-body-s); }
.section--royal .bill__note { color: var(--c-on-royal-muted); }
.bill__list { list-style: none; margin: 0; padding: 0; display: grid; }
.bill__list li {
  padding-block: var(--s-3);
  border-top: 1px solid var(--c-border-soft);
  font-size: var(--t-body-s);
  line-height: 1.55;
}
.section--royal .bill__list li { border-top-color: var(--c-royal-line-soft); }

/* ── FAQ ──────────────────────────────────────────────────────────────────
   Native <details>. An accordion built from buttons and divs re-implements
   what the element already does correctly, including find-in-page.
   ───────────────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: var(--s-8); }
.faq__group { display: grid; }
.faq__group-name {
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-accent-mark);
}
.qa { border-bottom: 1px solid var(--c-border); }
.qa__q {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-5);
  cursor: pointer;
  font-size: var(--t-body-l);
  list-style: none;
  min-height: 44px;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
/* A vertical stroke that becomes a horizontal one. The sign of the operation
   is the state, so nothing needs to say "expanded" in words. */
.qa__sign { position: relative; flex: none; width: 12px; height: 12px;
            margin-top: 0.4em; }
.qa__sign::before,
.qa__sign::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 1px;
  background: var(--c-accent); transition: transform var(--d-fast) var(--e-out);
}
.qa__sign::after { transform: rotate(90deg); }
.qa[open] .qa__sign::after { transform: rotate(0deg); }
.qa__a { margin: 0; padding: 0 0 var(--s-6); max-width: 62ch;
         color: var(--c-text-muted); line-height: var(--lh-body); }

@media (prefers-reduced-motion: reduce) {
  .qa__sign::before, .qa__sign::after { transition: none; }
}

/* ── QUOTES (reviews) ─────────────────────────────────────────────────────
   Set as pull quotes at display size. A review is the only copy on the site
   written by someone else, so it gets the typeface the house uses for its own
   voice and is allowed to be large.
   ───────────────────────────────────────────────────────────────────────── */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
          gap: var(--s-8) var(--s-9); }
.quote { display: grid; gap: var(--s-5); align-content: start; }
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.34;
  margin: 0;
  text-wrap: pretty;
}
.quote__text::before { content: '\201C'; margin-left: -0.42em; }
.quote__text::after  { content: '\201D'; }
.quote__by { display: grid; gap: var(--s-1); font-size: var(--t-caption);
             color: var(--c-text-faint); margin: 0; }
.section--royal .quote__by { color: var(--c-on-royal-muted); }
.quote__name { color: var(--c-text); font-size: var(--t-body-s); }
.section--royal .quote__name { color: var(--c-on-royal); }

.rating { display: flex; align-items: baseline; gap: var(--s-3); margin: 0; }
.rating__value { font-family: var(--font-display); font-size: var(--t-display-m);
                 font-variant-numeric: lining-nums tabular-nums;
                 color: var(--c-accent); line-height: 1; }
.section--royal .rating__value { color: var(--c-brass-bright); }
.rating__of { font-size: var(--t-caption); color: var(--c-text-faint); }
.section--royal .rating__of { color: var(--c-on-royal-muted); }

/* ── OFFERS ───────────────────────────────────────────────────────────────
   The value is the headline. Everything else is smaller than it, because the
   only question a guest has is how much.
   ───────────────────────────────────────────────────────────────────────── */

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
          gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); }
.section--royal .offers { background: var(--c-royal-line); border-color: var(--c-royal-line); }
.offer { background: var(--c-surface); padding: var(--s-7) var(--s-6);
         display: grid; gap: var(--s-4); align-content: start; }
.section--royal .offer { background: var(--c-indigo); }
.offer__value {
  font-family: var(--font-display);
  font-size: var(--t-display-s);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: var(--lh-heading);
  margin: 0;
  /* The one place brass is used as a fill rather than a rule. It is small,
     it is the page's single loudest element, and there is one per panel. */
  background: var(--grad-brass);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Print and forced-colours drop background-clip, so restore a solid fill. */
@media (forced-colors: active) {
  .offer__value { color: CanvasText; background: none; }
}
.offer__name  { font-size: var(--t-body-l); margin: 0; }
.offer__terms { font-size: var(--t-caption); color: var(--c-text-faint); margin: 0; }
.section--royal .offer__terms { color: var(--c-on-royal-muted); }
.offer__body  { margin: 0; color: var(--c-text-muted); font-size: var(--t-body-s);
                line-height: var(--lh-body); }
.section--royal .offer__body { color: var(--c-on-royal-muted); }
.offer__foot  { margin-top: var(--s-2); }

/* ── TIERS (private events) ───────────────────────────────────────────── */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
         gap: var(--s-7); }
.tier { display: grid; gap: var(--s-3); align-content: start;
        padding-top: var(--s-5); border-top: 2px solid var(--c-accent-mark); }
.section--royal .tier { border-top-color: var(--c-brass); }
.tier__name { font-family: var(--font-display); font-size: var(--t-display-s);
              margin: 0; line-height: var(--lh-heading); }
.tier__body { margin: 0; color: var(--c-text-muted); font-size: var(--t-body-s);
              line-height: var(--lh-body); }
.section--royal .tier__body { color: var(--c-on-royal-muted); }
.tier__cap  { margin: 0; font-size: var(--t-caption); color: var(--c-accent);
              font-variant-numeric: lining-nums tabular-nums; }
.section--royal .tier__cap { color: var(--c-brass-bright); }

/* ── STEPLINE ─────────────────────────────────────────────────────────────
   Numbered, and only here, because booking a private event genuinely is an
   ordered process and the number carries the ordering.
   ───────────────────────────────────────────────────────────────────────── */

.stepline { counter-reset: stepline; display: grid; gap: 0; margin: 0; padding: 0;
            list-style: none; }
.stepline__item {
  counter-increment: stepline;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid var(--c-border);
}
.section--royal .stepline__item { border-top-color: var(--c-royal-line); }
.stepline__item::before {
  content: counter(stepline, decimal-leading-zero);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--c-accent); font-size: var(--t-body-s);
  padding-top: 0.25em;
}
.section--royal .stepline__item::before { color: var(--c-brass-bright); }
.stepline__name { margin: 0 0 var(--s-2); font-size: var(--t-body-l); }
.stepline__body { margin: 0; color: var(--c-text-muted); max-width: 54ch; }
.section--royal .stepline__body { color: var(--c-on-royal-muted); }

/* ── JOURNAL ──────────────────────────────────────────────────────────── */

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
         gap: var(--s-8) var(--s-7); }
.post { display: grid; gap: var(--s-4); align-content: start; }
.post__media { display: block; }
.post__tag   { margin: 0; }
.post__title { font-family: var(--font-display); font-size: var(--t-display-s);
               line-height: var(--lh-heading); margin: 0; text-wrap: balance; }
.post__title a { text-decoration: none; color: inherit;
                 background-image: linear-gradient(var(--c-accent-mark), var(--c-accent-mark));
                 background-size: 0% 1px; background-repeat: no-repeat;
                 background-position: 0 100%;
                 transition: background-size var(--d-base) var(--e-out); }
.post__title a:hover { background-size: 100% 1px; }
.post__excerpt { margin: 0; color: var(--c-text-muted); line-height: var(--lh-body); }
.post__meta { margin: 0; font-size: var(--t-caption); color: var(--c-text-faint);
              display: flex; gap: var(--s-5); flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .post__title a { transition: none; }
}

/* Article body for a single post. */
.article { max-width: 66ch; margin-inline: auto; }
.article > p { margin: 0 0 var(--s-5); line-height: var(--lh-body);
               font-size: var(--t-body-l); }
.article > p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left; font-size: 3.4em; line-height: 0.82;
  padding: 0.06em 0.12em 0 0; color: var(--c-accent);
}
.article > .article__h { margin: var(--s-7) 0 var(--s-4); }
.article__links { list-style: none; padding: 0; margin: var(--s-6) 0 0;
                  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.article__foot { margin-top: var(--s-8); padding-top: var(--s-5);
                 border-top: 1px solid var(--c-border); font-size: var(--t-caption);
                 color: var(--c-text-faint); }

/* ── ROSTER (press, careers) ──────────────────────────────────────────── */

.roster { display: grid; gap: 0; }
.roster__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-6);
  align-items: baseline; padding-block: var(--s-5);
  border-top: 1px solid var(--c-border);
}
.section--royal .roster__item { border-top-color: var(--c-royal-line); }
.roster__title { margin: 0; font-size: var(--t-body-l); }
.roster__sub   { margin: var(--s-2) 0 0; color: var(--c-text-muted);
                 font-size: var(--t-body-s); max-width: 60ch; grid-column: 1 / -1; }
.section--royal .roster__sub { color: var(--c-on-royal-muted); }
.roster__aside { margin: 0; font-size: var(--t-caption); color: var(--c-text-faint);
                 font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.section--royal .roster__aside { color: var(--c-on-royal-muted); }

@media (max-width: 600px) {
  .roster__item { grid-template-columns: 1fr; }
  .roster__aside { text-align: left; }
}

/* ── HOSTS ────────────────────────────────────────────────────────────── */

.hosts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
         gap: var(--s-7); }
.host { display: grid; align-content: start; }
.host__name { margin: 0; font-size: var(--t-body-l); }
.host__role { margin: var(--s-1) 0 var(--s-3); font-size: var(--t-caption);
              color: var(--c-accent); }
.section--royal .host__role { color: var(--c-brass-bright); }
.host__bio  { margin: 0; color: var(--c-text-muted); font-size: var(--t-body-s);
              line-height: var(--lh-body); }
.section--royal .host__bio { color: var(--c-on-royal-muted); }

/* ── FORMS ON A ROYAL GROUND ──────────────────────────────────────────────
   The base form styles are drawn for paper. Dropped onto indigo they keep
   their ink-coloured labels and fall to 1.92:1 — the enquiry forms on
   /events, /press and /careers all failed `tools/contrast.mjs` on exactly
   this. The colours below are the measured pair from tokens.css, and the
   inputs are re-grounded rather than re-invented.
   ───────────────────────────────────────────────────────────────────────── */

.section--royal .field__label { color: var(--c-on-royal); }
.section--royal .field__hint  { color: var(--c-on-royal-muted); }
.section--royal .field__req   { color: var(--c-brass-bright); }
.section--royal .field__error { color: #F0B4A8; }   /* 7.4:1 on indigo */

.section--royal .input,
.section--royal .select,
.section--royal .textarea {
  background: rgba(242, 238, 228, 0.05);
  border-color: var(--c-royal-line-soft);
  color: var(--c-on-royal);
}
.section--royal .input::placeholder,
.section--royal .textarea::placeholder { color: rgba(242, 238, 228, 0.45); }

.section--royal .input:focus,
.section--royal .select:focus,
.section--royal .textarea:focus {
  border-color: var(--c-brass);
  outline: 2px solid var(--c-brass-bright);
  outline-offset: 1px;
}

.section--royal .check label { color: var(--c-on-royal); }

/* The notices carry their own light-ground colours, so they are re-grounded
   here too rather than left to inherit. */
.section--royal .notice,
.section--royal .error-summary {
  background: rgba(242, 238, 228, 0.06);
  border-color: var(--c-royal-line);
  color: var(--c-on-royal);
}
.section--royal .notice--ok      { border-left-color: #8FBF86; }
.section--royal .notice--pending { border-left-color: var(--c-brass-bright); }
.section--royal .notice--error   { border-left-color: #E2907F; }

/* ── TOUCH TARGETS ────────────────────────────────────────────────────────
   A link set at caption size is about 20px tall, which `tools/visual.mjs`
   correctly flags: WCAG 2.2 asks for 24×24 as a minimum and a thumb wants
   more. Padding the line box rather than growing the type keeps the visual
   size and gives the target back.
   ───────────────────────────────────────────────────────────────────────── */

.article__foot a {
  display: inline-block;
  padding-block: var(--s-2);
  min-height: 24px;
}

/* ── SUITES: the layout note and the rates table ─────────────────────────── */
.layout-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--s-6) var(--s-8);
  align-items: start;
}
.layout-note .display-m { margin-top: var(--s-3); }
.layout-note .prose { display: grid; gap: var(--s-4); color: var(--c-text-muted); }
.layout-note .prose p { margin: 0; max-width: 56ch; }
@media (max-width: 860px) { .layout-note { grid-template-columns: 1fr; } }

.rates { width: 100%; border-collapse: collapse; margin-top: var(--s-6); font-variant-numeric: lining-nums tabular-nums; }
.rates th, .rates td { text-align: left; padding: var(--s-4) var(--s-3); border-bottom: 1px solid var(--c-royal-line); vertical-align: baseline; }
.rates thead th { font-size: var(--t-caption); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-on-royal-muted); font-weight: 500; }
.rates tbody th { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.rates small { font-family: var(--font-sans); font-size: var(--t-caption); color: var(--c-on-royal-muted); }
.rates td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.rates thead th:nth-child(n+3) { text-align: right; }
@media (max-width: 560px) {
  .rates th, .rates td { padding-inline: var(--s-2); }
  .rates td:nth-child(2), .rates thead th:nth-child(2) { display: none; }
}
