/*
  Theme 1 (the proposal's, revised by the designer's development guide: F-16), written from docs/design/identity.tokens.json.
  The only file of the site that names a color value (F-1, BR1): ThemeTokensTests compares it with the tokens.
  Light: :root and [data-theme="light"] (a light gallery panel inside a dark page).
  Dark: [data-theme="dark"], and [data-theme="auto"] when the device prefers dark.
*/

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/great-vibes-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-400-600-latin.woff2") format("woff2");
}

:root,
[data-theme="light"] {
  --primary: #3F6F60;
  --primary-hover: #2C5045;
  --on-primary: #FFFFFF;
  --secondary: #6E4F74;
  --on-secondary: #FFFFFF;
  --background: #FAF6F1;
  --surface: #FFFFFF;
  --surface-lavender: #EFE5F0;
  --surface-mint: #E2F1EA;
  --text: #3B2F3D;
  --text-muted: #5B4E5D;
  --border: #E3D6E5;
  --border-soft: #F0E9F1;
  --inverse: #3B2F3D;
  --on-inverse: #EFE5F0;
  --error: #A33A3D;
  --success: #2E6B48;
  --warning: #8A5300;
  --decorative-1: #B592B9;
  --decorative-2: #77B39E;
  --shadow-card: 0 8px 24px rgba(110, 79, 116, 0.08);
  --shadow-cover: 6px 10px 20px rgba(60, 40, 70, 0.18);
  --shadow-bar: 0 -6px 18px rgba(60, 40, 70, 0.08);
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #8FCBB4;
  --primary-hover: #B0DCCA;
  --on-primary: #16261F;
  --secondary: #D7BCDB;
  --on-secondary: #2B1F2E;
  --background: #221A25;
  --surface: #2F2433;
  --surface-lavender: #3A2C3F;
  --surface-mint: #1E3029;
  --text: #F3ECF4;
  --text-muted: #CDBFD0;
  --border: #4F3F54;
  --border-soft: #3A2E3E;
  --inverse: #160F18;
  --on-inverse: #EFE5F0;
  --error: #F0A0A2;
  --success: #8FD3A8;
  --warning: #E6B25C;
  --decorative-1: #B592B9;
  --decorative-2: #77B39E;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-cover: 6px 10px 20px rgba(0, 0, 0, 0.45);
  --shadow-bar: 0 -6px 18px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --primary: #8FCBB4;
    --primary-hover: #B0DCCA;
    --on-primary: #16261F;
    --secondary: #D7BCDB;
    --on-secondary: #2B1F2E;
    --background: #221A25;
    --surface: #2F2433;
    --surface-lavender: #3A2C3F;
    --surface-mint: #1E3029;
    --text: #F3ECF4;
    --text-muted: #CDBFD0;
    --border: #4F3F54;
    --border-soft: #3A2E3E;
    --inverse: #160F18;
    --on-inverse: #EFE5F0;
    --error: #F0A0A2;
    --success: #8FD3A8;
    --warning: #E6B25C;
    --decorative-1: #B592B9;
    --decorative-2: #77B39E;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-cover: 6px 10px 20px rgba(0, 0, 0, 0.45);
    --shadow-bar: 0 -6px 18px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* Theme "blush" (F-12): the same roles as the proposal's theme, chosen by Andrea in the content area. */
[data-site-theme="blush"] {
  --primary: #8E3252;
  --primary-hover: #6F2340;
  --on-primary: #FFFFFF;
  --secondary: #45456E;
  --on-secondary: #FFFFFF;
  --background: #FCF5F2;
  --surface: #FFFFFF;
  --surface-lavender: #F9E4E8;
  --surface-mint: #F7EBDD;
  --text: #3A2A33;
  --text-muted: #5E4C56;
  --border: #EBD3D9;
  --border-soft: #F5E7EA;
  --inverse: #3A2A33;
  --on-inverse: #F9E4E8;
  --error: #A33A3D;
  --success: #2E6B48;
  --warning: #8A5300;
  --decorative-1: #B592B9;
  --decorative-2: #77B39E;
  --shadow-card: 0 8px 24px rgba(110, 79, 116, 0.08);
  --shadow-cover: 6px 10px 20px rgba(60, 40, 70, 0.18);
  --shadow-bar: 0 -6px 18px rgba(60, 40, 70, 0.08);
  color-scheme: light;
}

[data-site-theme="blush"][data-theme="dark"] {
  --primary: #F0A3BC;
  --primary-hover: #F6BFD0;
  --on-primary: #2E0F1B;
  --secondary: #C9C4EC;
  --on-secondary: #22203A;
  --background: #251A20;
  --surface: #322430;
  --surface-lavender: #3E2A35;
  --surface-mint: #352A26;
  --text: #F7ECEF;
  --text-muted: #D3C3C9;
  --border: #55404A;
  --border-soft: #3E2F37;
  --inverse: #181014;
  --on-inverse: #F9E4E8;
  --error: #F0A0A2;
  --success: #8FD3A8;
  --warning: #E6B25C;
  --decorative-1: #B592B9;
  --decorative-2: #77B39E;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-cover: 6px 10px 20px rgba(0, 0, 0, 0.45);
  --shadow-bar: 0 -6px 18px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  [data-site-theme="blush"][data-theme="auto"] {
    --primary: #F0A3BC;
    --primary-hover: #F6BFD0;
    --on-primary: #2E0F1B;
    --secondary: #C9C4EC;
    --on-secondary: #22203A;
    --background: #251A20;
    --surface: #322430;
    --surface-lavender: #3E2A35;
    --surface-mint: #352A26;
    --text: #F7ECEF;
    --text-muted: #D3C3C9;
    --border: #55404A;
    --border-soft: #3E2F37;
    --inverse: #181014;
    --on-inverse: #F9E4E8;
    --error: #F0A0A2;
    --success: #8FD3A8;
    --warning: #E6B25C;
    --decorative-1: #B592B9;
    --decorative-2: #77B39E;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-cover: 6px 10px 20px rgba(0, 0, 0, 0.45);
    --shadow-bar: 0 -6px 18px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* Theme "terracotta" (F-12): the same roles as the proposal's theme, chosen by Andrea in the content area. */
[data-site-theme="terracotta"] {
  --primary: #944329;
  --primary-hover: #7A3620;
  --on-primary: #FFFFFF;
  --secondary: #2F5D66;
  --on-secondary: #FFFFFF;
  --background: #F8F2E9;
  --surface: #FFFFFF;
  --surface-lavender: #F8E3D6;
  --surface-mint: #E8EDE0;
  --text: #33302B;
  --text-muted: #5A544C;
  --border: #E7D8CC;
  --border-soft: #F1E8DF;
  --inverse: #33302B;
  --on-inverse: #F8E3D6;
  --error: #A33A3D;
  --success: #2E6B48;
  --warning: #8A5300;
  --decorative-1: #B592B9;
  --decorative-2: #77B39E;
  --shadow-card: 0 8px 24px rgba(110, 79, 116, 0.08);
  --shadow-cover: 6px 10px 20px rgba(60, 40, 70, 0.18);
  --shadow-bar: 0 -6px 18px rgba(60, 40, 70, 0.08);
  color-scheme: light;
}

[data-site-theme="terracotta"][data-theme="dark"] {
  --primary: #F0A98A;
  --primary-hover: #F5C2AB;
  --on-primary: #2E1911;
  --secondary: #9FD3DA;
  --on-secondary: #0F2A2F;
  --background: #211D1A;
  --surface: #2E2824;
  --surface-lavender: #3B2C25;
  --surface-mint: #27302A;
  --text: #F5EFE8;
  --text-muted: #D1C8BE;
  --border: #534840;
  --border-soft: #3C342E;
  --inverse: #15110F;
  --on-inverse: #F8E3D6;
  --error: #F0A0A2;
  --success: #8FD3A8;
  --warning: #E6B25C;
  --decorative-1: #B592B9;
  --decorative-2: #77B39E;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-cover: 6px 10px 20px rgba(0, 0, 0, 0.45);
  --shadow-bar: 0 -6px 18px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  [data-site-theme="terracotta"][data-theme="auto"] {
    --primary: #F0A98A;
    --primary-hover: #F5C2AB;
    --on-primary: #2E1911;
    --secondary: #9FD3DA;
    --on-secondary: #0F2A2F;
    --background: #211D1A;
    --surface: #2E2824;
    --surface-lavender: #3B2C25;
    --surface-mint: #27302A;
    --text: #F5EFE8;
    --text-muted: #D1C8BE;
    --border: #534840;
    --border-soft: #3C342E;
    --inverse: #15110F;
    --on-inverse: #F8E3D6;
    --error: #F0A0A2;
    --success: #8FD3A8;
    --warning: #E6B25C;
    --decorative-1: #B592B9;
    --decorative-2: #77B39E;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-cover: 6px 10px 20px rgba(0, 0, 0, 0.45);
    --shadow-bar: 0 -6px 18px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root {
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-accent: "Great Vibes", cursive;
  --font-body: "Montserrat", system-ui, sans-serif;
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-offer: 24px;
  --radius-sm: 14px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --gutter: 20px;
  --band-pad: 40px;

  --text-sm: 15px;
  --text-label: 16px;
  --text-base: 16px;
  --text-button: 15px;
  --h1: 40px;
  --h2: 34px;
  --h3: 23px;
  --accent-size: 46px;
  --accent-above: 34px;

  --disabled-opacity: 0.45;
}

@media (min-width: 768px) {
  :root {
    --radius-card: 24px;
    --radius-offer: 32px;
    --radius-sm: 16px;
    --gutter: 32px;
    --band-pad: 88px;
    --text-base: 18px;
    --text-button: 16px;
    --h1: 64px;
    --h2: 46px;
    --h3: 28px;
    --accent-size: 72px;
    --accent-above: 44px;
  }
}

/* Base: set once here, never per page (rule ui). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body,
[data-theme] {
  background: var(--background);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a,
button,
summary,
label[for] {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1,
h2,
h3,
.t-h1,
.t-h2,
.t-h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--secondary);
  margin: 0 0 var(--space-3);
}

h1,
.t-h1 {
  font-size: var(--h1);
  line-height: 1.04;
}

h2,
.t-h2 {
  font-size: var(--h2);
}

h3,
.t-h3 {
  font-size: var(--h3);
}

.small {
  font-size: var(--text-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
