/* Nouveau: its own structure on the shared section templates (pages/std/*), loaded after
   std.css. Site review 4 Dec, plan §4: each look has its own layouts, not a palette swap. */
/* --- Nouveau: an Art Deco poster on warm paper --------------------------------------- */
.look-nouveau .std__in {
  --heading-font: "Bodoni Moda", Didot, serif; --heading-weight: 900; --body-font: Inter, system-ui, sans-serif;
  --h2: 28px; --gap: 96px;
}
.look-nouveau .std-header__names { font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: var(--small); }
.look-nouveau .std-hero__heading {
  /* Fit-to-width on one line: the server measures the heading in ems (sections.heading_ems), so
     the size is the column width over that, up to 120px. Below 24px it may wrap rather than clip. */
  font-size: clamp(24px, calc((100cqi - 2 * var(--pad)) * .98 / var(--ems, 9.5)), 120px);
  line-height: .95; letter-spacing: .02em; text-transform: uppercase; color: var(--hero-ink);
}
.look-nouveau .std-hero__names { font: italic 500 var(--h2) / 1.15 var(--heading-font); margin-top: 20px; }
.look-nouveau .std-hero__when { font-size: var(--small); text-transform: uppercase; letter-spacing: .08em; }
.look-nouveau .std-photo--framed { margin-top: 40px; }
/* The photo beside the letter gets the same thin wine frame as the hero's. */
.look-nouveau .std-message__photo, .look-nouveau .std-message--B .std-message__photo { outline: 1px solid var(--accent); outline-offset: 8px; margin: 8px 8px 36px; }
.look-nouveau .std-message__text { font-size: var(--body); }
.look-nouveau .std-photos__caption { font-variant: small-caps; letter-spacing: .06em; font-size: var(--body); }
/* 1px wine rules between the parts of the page. */
.look-nouveau .std-countdown { border-top: 1px solid var(--accent); margin-inline: var(--pad); padding-inline: 0; }
.look-nouveau .std-message__greeting { font-size: var(--small); font-family: var(--body-font); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
/* Capped: in Bodoni 900 capitals a long signature at the shared size made two huge lines (review 1.3). */
.look-nouveau .std-message__signature { text-transform: uppercase; letter-spacing: .06em; font-size: min(calc(var(--h2) * .6), 24px); margin-top: 32px; }
.look-nouveau .std-invite__heading { text-transform: uppercase; letter-spacing: .02em; }
.look-nouveau .std-hero__top { display: grid; gap: 16px; }
/* An illustration sits in four Deco corners (two short strokes each) in the accent (reference
   illustrated-save-the-date.html). */
.look-nouveau .std-illustration:not(.std-illustration--empty) {
  --c: var(--accent); --l: 28px; --w: 2px; padding: 18px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}
@container std (min-width: 720px) {
  .look-nouveau .std__in { --h2: 40px; --body: 18px; --small: 14px; --gap: 160px; }
  .look-nouveau .std-photo--framed:not(.std-photo--portrait) { aspect-ratio: 3 / 2; }
  .look-nouveau .std-photo--framed.std-photo--portrait { width: min(100% - 16px, 560px); margin-inline: auto; }
  /* Letter and photo: the text starts level with the top of the frame. */
  .look-nouveau .std-message--B { align-items: start; gap: 56px; }
  .look-nouveau .std-message--B .std-message__photo { margin: 8px; }
  .look-nouveau .std-message--B .std-message__in { margin: 0; }
}

/* Who's coming? and the door in this look */
.look-nouveau .std-interest { border-block: 1px solid var(--accent); margin-inline: var(--pad); padding-inline: 0; }
/* With dividers on, they separate the parts instead of the rules (no doubled lines). */
.look-nouveau.std--dividers .std-interest, .look-nouveau.std--dividers .std-countdown { border-block: 0; }
.look-nouveau .std-chip { font-variant: small-caps; letter-spacing: .04em; }
.look-nouveau .std-interest--answered .std-interest__h { font-style: italic; }
.look-nouveau .std-door__names { text-transform: uppercase; letter-spacing: .02em; }

/* Look art (looks.json `art`): a fan above the invitation's heading, in the band's ink. */
.look-nouveau.has-art-invite .std-invite__in::before {
  --a: var(--art-invite); content: ""; display: block; width: 168px; aspect-ratio: 1.86; margin: 0 auto 28px; background: var(--band-ink); -webkit-mask: var(--a) center / contain no-repeat; mask: var(--a) center / contain no-repeat;
}
.look-nouveau.art-invite--colour .std-invite__in::before { background: var(--a) center / contain no-repeat; -webkit-mask: none; mask: none; }
