/* Art Time — shared tokens, page frame, header, footer and the group offer.
   Page styles (home.css, content.css) load before this file and only use the tokens. */
:root {
  --at-ground: #fdfcf9;
  --at-surface: #f6f1e9;
  --at-surface-2: #ece3d5;
  --at-ink: #1a1715;
  --at-ink-2: #4a423b;
  --at-night: #1a1715;
  --at-night-2: #2a2420;
  --at-brown: #271f19; /* the printed flyer's footer band */
  --at-on-night: #f6f1e9;
  --at-on-night-2: #d8cdbf;
  --at-gold: #c89d66;
  --at-gold-hover: #d8b07c;
  --at-gold-deep: #7b5827;
  --at-crimson: #8b2635;
  --at-white: #fff;
  --at-field: #ddd2c3;

  --at-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --at-sans: Manrope, "Helvetica Neue", Arial, sans-serif;
  --at-fs-display: clamp(44px, 5.6vw, 84px);
  --at-fs-heading: clamp(28px, 3.2vw, 46px);
  --at-fs-lead: clamp(20px, 1.6vw, 23px);
  --at-fs-body: 17px;
  --at-fs-small: 15px;

  --at-radius: 4px;
  --at-page: 1280px;
  --at-gutter: 32px;
  --at-wrap: min(100% - 2 * var(--at-gutter), var(--at-page));
  --at-section: clamp(64px, 9vw, 136px);
  --at-header-h: 76px;
  --at-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 850px) { :root { --at-header-h: 68px; } }
@media (max-width: 600px) { :root { --at-gutter: 20px; } }

html { scroll-padding-top: calc(var(--at-header-h) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--at-ground); color: var(--at-ink);
  font: 400 var(--at-fs-body)/1.6 var(--at-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--at-gold); color: var(--at-ink); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--at-gold-deep); outline-offset: 3px; }
:where([data-tone="dark"]) :where(a, button, input, select, textarea):focus-visible { outline-color: var(--at-gold); }

.at-icon {
  width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons: one shape on every page — flat fill, 4px corners. */
.at-button, .at-header__cta, body main .at-group-offer__primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 0; border-radius: var(--at-radius);
  background: var(--at-gold); color: var(--at-ink);
  font: 700 var(--at-fs-small)/1.3 var(--at-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--at-ease), color .2s var(--at-ease), transform .2s var(--at-ease);
}
.at-button:hover, .at-header__cta:hover { background: var(--at-gold-hover); }
.at-button:active, .at-header__cta:active, body main .at-group-offer__primary:active { transform: translateY(1px) scale(.98); }
.at-button .at-icon, body main .at-group-offer__primary .at-icon { transition: transform .2s var(--at-ease); }
.at-button:hover .at-icon, body main .at-group-offer__primary:hover .at-icon { transform: translateX(3px); }

/* Header: a plain bar that takes the colour of the chapter beneath it. */
.at-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--at-ground); color: var(--at-ink);
  transition: background-color .3s var(--at-ease), color .3s var(--at-ease);
}
.at-header *, .at-footer * { box-sizing: border-box; }
.at-header__inner {
  width: var(--at-wrap); min-height: var(--at-header-h); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.at-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.at-brand img, .at-footer__brand {
  display: block; width: 168px; height: auto; mix-blend-mode: multiply;
  transition: filter .3s var(--at-ease);
}
.at-header.is-dark { background: var(--at-header-bg, var(--at-night)); color: var(--at-on-night); }
.at-header.is-dark .at-brand img { filter: invert(1); mix-blend-mode: screen; }
.at-menu-toggle { display: none; }
.at-nav-wrap { display: flex; align-items: center; gap: 28px; }
.at-nav { display: flex; align-items: center; gap: 26px; }
.at-nav a, .at-legal-top {
  position: relative; padding: 10px 0; color: inherit; text-decoration: none;
  font: 600 var(--at-fs-small)/1.3 var(--at-sans); white-space: nowrap;
}
.at-nav a::after, .at-legal-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--at-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--at-ease);
}
.at-nav a:hover::after, .at-nav a[aria-current="page"]::after, .at-legal-top:hover::after, .at-legal-top[aria-current="page"]::after { transform: scaleX(1); }
.at-legal-top { font-weight: 500; opacity: .82; }
.at-header__cta { min-height: 44px; padding: 10px 18px; }

/* Footer: a champagne field, columns separated by space only. */
.at-footer { background: var(--at-surface); color: var(--at-ink); font-family: var(--at-sans); }
.at-footer__inner { width: var(--at-wrap); margin-inline: auto; padding: 88px 0 32px; }
.at-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1fr; gap: 48px; }
.at-footer__brand { width: 200px; }
.at-footer h2 { margin: 0 0 18px; font: 700 var(--at-fs-lead)/1.2 var(--at-serif); color: var(--at-ink); }
.at-footer p { margin: 18px 0 0; font-size: var(--at-fs-small); line-height: 1.6; color: var(--at-ink); }
.at-footer__company { color: var(--at-ink-2) !important; }
.at-footer__links, .at-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.at-footer__links a, .at-footer__contact a, .at-footer__contact span, .at-footer__bottom a {
  display: inline-flex; align-items: flex-start; gap: 10px; color: var(--at-ink); text-decoration: none;
  font-size: var(--at-fs-small); line-height: 1.5;
}
.at-footer__contact .at-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--at-gold-deep); }
.at-footer a:hover { color: var(--at-gold-deep); text-decoration: underline; text-underline-offset: 4px; }
.at-footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--at-ink); font: 700 var(--at-fs-small)/1.3 var(--at-sans); text-decoration: none; }
.at-footer__social img { width: 22px; height: 22px; object-fit: contain; }
.at-partners { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.at-partners img { display: block; height: 56px; width: auto; max-width: 150px; object-fit: contain; padding: 8px 12px; background: var(--at-white); border-radius: var(--at-radius); }
.at-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-top: 72px;
  color: var(--at-ink-2); font-size: var(--at-fs-small);
}
.at-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.at-footer__cookie-settings {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}

/* Cookie preferences: compact, high-contrast panel with equally clear accept and reject actions. */
.at-cookie-consent, .at-cookie-consent * { box-sizing: border-box; }
.at-cookie-consent {
  position: fixed; z-index: 1000; inset: auto 0 0; padding: 24px var(--at-gutter);
  border-top: 1px solid var(--at-surface-2); background: var(--at-ground); color: var(--at-ink);
  box-shadow: 0 -12px 36px rgba(26, 23, 21, .14);
}
.at-cookie-consent__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 40px;
  width: min(100%, 1280px); margin-inline: auto;
}
.at-cookie-consent__copy { max-width: 760px; }
.at-cookie-consent__eyebrow { margin: 0 0 4px; color: var(--at-gold-deep); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.at-cookie-consent h2 { margin: 0 0 6px; font: 700 22px/1.2 var(--at-serif); }
.at-cookie-consent__copy > p:not(.at-cookie-consent__eyebrow) { margin: 0; color: var(--at-ink-2); font-size: 14px; line-height: 1.5; }
.at-cookie-consent__copy > a { display: inline-block; margin-top: 6px; color: var(--at-ink); font-size: 14px; text-underline-offset: 3px; }
.at-cookie-consent__toggle { grid-column: 1; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.at-cookie-consent__toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--at-gold-deep); }
.at-cookie-consent__toggle span { display: grid; gap: 2px; }
.at-cookie-consent__toggle small { color: var(--at-ink-2); }
.at-cookie-consent__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.at-cookie-consent__button {
  min-height: 48px; padding: 10px 16px; border: 1px solid var(--at-ink); border-radius: var(--at-radius);
  background: transparent; color: var(--at-ink); font: 700 14px/1.3 var(--at-sans); cursor: pointer;
}
.at-cookie-consent__button--primary { border-color: var(--at-gold); background: var(--at-gold); }
.at-cookie-consent__button:hover { background: var(--at-surface); }
.at-cookie-consent__button--primary:hover { background: var(--at-gold-hover); }
.at-cookie-consent__text-button { padding: 8px; border: 0; background: transparent; color: var(--at-ink); font: 700 14px/1.3 var(--at-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.at-cookie-policy h2 { margin: 1.7em 0 .5em; font: 700 24px/1.2 var(--at-serif); }
.at-cookie-policy h2:first-child { margin-top: 0; }
.at-cookie-policy__table-wrap { max-width: 100%; overflow-x: auto; }
.at-cookie-policy table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.at-cookie-policy th, .at-cookie-policy td { padding: 12px; border: 1px solid var(--at-field); text-align: left; vertical-align: top; }
.at-cookie-policy th { background: var(--at-surface); font-weight: 700; }
.at-cookie-policy code { overflow-wrap: anywhere; font-size: .92em; }
@media (max-width: 850px) {
  .at-cookie-consent__inner { grid-template-columns: 1fr; gap: 14px; }
  .at-cookie-consent__toggle, .at-cookie-consent__actions { grid-column: 1; grid-row: auto; }
  .at-cookie-consent__actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .at-cookie-consent { max-height: 80dvh; overflow: auto; padding: 20px var(--at-gutter); }
  .at-cookie-consent__actions { display: grid; grid-template-columns: 1fr; }
  .at-cookie-consent__button { width: 100%; }
}

@media (max-width: 1180px) {
  .at-nav-wrap { gap: 20px; }
  .at-nav { gap: 18px; }
  .at-brand img { width: 150px; }
}
@media (max-width: 1040px) {
  .at-legal-top { display: none; }
}
@media (max-width: 850px) {
  .at-brand img { width: 150px; }
  .at-menu-toggle {
    display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
    padding: 0; border: 0; border-radius: var(--at-radius); background: transparent; color: inherit; cursor: pointer;
  }
  .at-menu-toggle .at-icon { width: 28px; height: 28px; }
  .at-nav-wrap {
    display: none; position: absolute; inset: var(--at-header-h) 0 auto;
    padding: 12px var(--at-gutter) 28px; background: var(--at-ground); color: var(--at-ink);
    box-shadow: 0 18px 30px rgba(26, 23, 21, .16); /* taste-skill-ignore: open menu floats over the page */
    flex-direction: column; align-items: stretch; gap: 16px;
  }
  .at-header.is-dark .at-nav-wrap { background: var(--at-header-bg, var(--at-night)); color: var(--at-on-night); }
  .at-nav-wrap[data-open="true"] { display: flex; }
  .at-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .at-nav a { padding: 14px 0; font-size: var(--at-fs-body); }
  .at-nav a::after { bottom: 8px; right: auto; width: 32px; }
  .at-legal-top { display: inline-block; align-self: flex-start; }
  .at-header__cta { align-self: stretch; }
  .at-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 600px) {
  .at-footer__inner { padding-top: 64px; }
  .at-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .at-footer__links { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .at-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 48px; }
}

/* Group offer: the reference card, on a champagne field. */
main section[data-group-offer-slot] { margin: 0; padding: var(--at-section) 0; background: var(--at-surface); }
.at-group-offer {
  box-sizing: border-box; width: var(--at-wrap); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: stretch;
  gap: clamp(32px, 4vw, 64px); padding: clamp(32px, 4.4vw, 64px);
  border-radius: 8px; background: var(--at-white); color: var(--at-ink);
  box-shadow: 0 24px 48px -24px rgba(26, 23, 21, .28); /* taste-skill-ignore: client-requested reference card */
}
.at-group-offer * { box-sizing: border-box; }
.at-group-offer__main { min-width: 0; display: flex; flex-direction: column; }
.at-group-offer__title { max-width: 14ch; margin: 0; font: 700 var(--at-fs-heading)/1.08 var(--at-serif); letter-spacing: -.02em; }
.at-group-offer__intro { max-width: 58ch; margin: 24px 0 32px; font: 400 var(--at-fs-body)/1.6 var(--at-sans); }
.at-group-offer__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.at-group-offer__fact { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--at-radius); background: var(--at-surface); }
.at-group-offer .at-icon { width: 22px; height: 22px; color: var(--at-gold-deep); }
.at-group-offer__fact strong, .at-group-offer__guide li strong { display: block; font: 700 var(--at-fs-small)/1.4 var(--at-sans); }
.at-group-offer__fact small, .at-group-offer__guide li small { display: block; margin-top: 4px; font: 400 var(--at-fs-small)/1.55 var(--at-sans); color: var(--at-ink-2); }
.at-group-offer__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: auto; padding-top: 32px; }
body main .at-group-offer__primary { background: var(--at-ink); color: var(--at-white); }
body main .at-group-offer__primary:hover { background: var(--at-crimson); color: var(--at-white); }
body main .at-group-offer__primary .at-icon { color: currentColor; }
.at-group-offer__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.at-group-offer__contact a, .at-group-offer__repertoire {
  display: inline-flex; align-items: center; gap: 8px; color: var(--at-ink);
  font: 700 var(--at-fs-small)/1.4 var(--at-sans); text-decoration: none;
}
.at-group-offer__contact a:hover, .at-group-offer__repertoire:hover { color: var(--at-crimson); text-decoration: underline; text-underline-offset: 4px; }
.at-group-offer__guide { display: flex; flex-direction: column; padding: clamp(24px, 2.8vw, 40px); border-radius: var(--at-radius); background: var(--at-surface); }
.at-group-offer__guide h3 { margin: 0 0 24px; font: 700 var(--at-fs-lead)/1.25 var(--at-serif); }
.at-group-offer__guide ul { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.at-group-offer__guide li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.at-group-offer__repertoire { margin-top: auto; padding-top: 28px; }
@media (max-width: 900px) {
  .at-group-offer { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .at-group-offer { padding: 28px 20px; }
  .at-group-offer__facts { grid-template-columns: 1fr; }
  .at-group-offer__actions { flex-direction: column; align-items: stretch; }
  body main .at-group-offer__primary { width: 100%; }
}

/* Entrance motion: only when scripts run and motion is welcome; content never depends on it. */
@media (prefers-reduced-motion: no-preference) {
  .at-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--at-ease), transform .7s var(--at-ease); transition-delay: var(--at-delay, 0ms); }
  .at-js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
