/* Design tokens, reset, typography and shared utilities. */

:root {
  --color-accent: #cca72f;
  --color-accent-dark: #b28f1f;
  --color-cream: #f7f3e8;
  --color-dark: #111111;
  --color-ink: #1c1c1c;
  --color-light: #faf8f3;
  --color-white: #fff;
  --color-border: rgba(17, 17, 17, 0.1);
  --color-italy-green: #009246;
  --color-italy-red: #ce2b37;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-label: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Poppins', sans-serif;

  --radius-small: 6px;
  --radius: 8px;

  --gutter: 5%;
  --container-large: 80rem;
  --container-medium: 64rem;

  --section-small: 3rem;
  --section-medium: 5rem;
  --section-large: 7rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991px) {
  :root {
    --section-medium: 4rem;
    --section-large: 5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --section-small: 2rem;
    --section-medium: 3rem;
    --section-large: 4rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background-color: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

img,
video,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10001;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background-color: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hidden until main.js animates them in; without JS they stay visible. */
.js [data-reveal] {
  opacity: 0;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: currentColor;
}

/* Layout */

.padding-global {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-large {
  width: 100%;
  max-width: var(--container-large);
  margin-left: auto;
  margin-right: auto;
}

.container-medium {
  width: 100%;
  max-width: var(--container-medium);
  margin-left: auto;
  margin-right: auto;
}

.section-small {
  padding-top: var(--section-small);
  padding-bottom: var(--section-small);
}

.section-medium {
  padding-top: var(--section-medium);
  padding-bottom: var(--section-medium);
}

.section-large {
  padding-top: var(--section-large);
  padding-bottom: var(--section-large);
}

/* Typography */

.heading-h1,
.heading-h2,
.heading-h3,
.heading-h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.heading-h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

.heading-h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.heading-h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.heading-h4 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
}

.text-accent {
  color: var(--color-accent);
}

.text-white {
  color: var(--color-white);
}

.text-small {
  font-size: 0.9375rem;
}

.text-medium {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.text-large {
  font-size: 1.25rem;
  font-weight: 700;
}

.text-tiny {
  font-size: 0.75rem;
}

.rich-text > * + * {
  margin-top: 1rem;
}

.rich-text h2 {
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.rich-text h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.rich-text ul {
  padding-left: 1.25rem;
}

.rich-text li + li {
  margin-top: 0.5rem;
}

.rich-text a {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.max-width-small {
  max-width: 30rem;
}

.max-width-medium {
  max-width: 36rem;
}

.max-width-large {
  max-width: 48rem;
}

.max-width-xlarge {
  max-width: 64rem;
}

@media (max-width: 991px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
