/* Lana Rituals. Direction 1 "Clay & Linen" from design/concept.md. Mobile-first. */

/* @font-face: generated by node scripts/fetch-fonts.mjs, do not edit by hand. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/manrope-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/manrope-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/manrope-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* end @font-face */

:root {
  /* Palette */
  --color-bg: #f6f1ea;
  --color-surface: #ede3d6;
  --color-text: #2e2722;
  --color-muted: #6b6259;
  --color-accent: #8c5139;
  --color-accent-deep: #6e3d29;
  --color-decor: #c9a58a; /* Decorative only on light bg, never text. */
  --color-error: #a3271b; /* Form errors: 6.5:1 on the background. */

  /* Fonts (Cyrillic + Latin Extended) */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Type scale (fluid 360px → 1280px) */
  --fs-display: clamp(2.5rem, 1.717rem + 3.478vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.609rem + 1.739vw, 3rem);
  --fs-h3: clamp(1.5rem, 1.402rem + 0.435vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.076rem + 0.217vw, 1.25rem);
  --fs-body: clamp(1rem, 0.976rem + 0.109vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: clamp(0.75rem, 0.726rem + 0.109vw, 0.8125rem);

  /* Spacing & layout */
  --space-section: clamp(4rem, 2.826rem + 5.217vw, 7rem);
  --container: 72rem;
  --gutter: clamp(1.25rem, 0.761rem + 2.174vw, 2.5rem);
  --measure: 62ch;
  --radius: 999px;
  --radius-card: 4px;
  --ease: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* Sticky header of the inner pages. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  overflow-wrap: break-word; /* Long UK/PL words on narrow screens. */
}

p,
ul {
  margin: 0;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* Base elements */
a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  transition: color var(--ease), text-underline-offset var(--ease);
}

a:hover {
  color: var(--color-accent-deep);
  text-underline-offset: 0.18em;
}

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

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
  color: var(--color-bg);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: var(--measure);
}

.link-strong {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--color-text);
}

.wordmark__mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--color-accent);
}

.wordmark__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  line-height: 1;
}

.wordmark__lana {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
}

.wordmark__rituals {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Header of the inner pages: wordmark (back to the first page) + switcher. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-decor) 45%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  flex: none;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid color-mix(in srgb, var(--color-decor) 70%, transparent);
  border-radius: var(--radius);
}

.lang-switch a {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-muted);
  font: 600 var(--fs-eyebrow) / 1 var(--font-body);
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.lang-switch a:hover {
  color: var(--color-accent);
}

.lang-switch a[aria-current="page"] {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
}

.btn:hover {
  background: var(--color-accent-deep);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn--large {
  padding: 1.15rem 2.25rem;
  font-size: 1.0625rem;
}

/* Uppercase label (the first page's entries). */
.btn--caps {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

/* Photos: fixed aspect ratios; the gradient shows while an image loads */
.ph {
  margin: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-decor) 55%, var(--color-surface)), var(--color-surface));
  border-radius: var(--radius-card);
}

.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--3x2 { aspect-ratio: 3 / 2; }

img.ph {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections */
.section {
  padding-block: var(--space-section);
}

.section--surface {
  background: var(--color-surface);
}

.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
}

/* First page: switcher, logo, the five entries. Nothing else. */
.home-top__inner {
  display: flex;
  justify-content: flex-end;
  padding-block: 0.75rem;
}

.home {
  padding-block: clamp(1.5rem, 0.5rem + 4vw, 4rem) var(--space-section);
}

.home__inner {
  display: grid;
  justify-items: center;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.logo {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  font: inherit;
}

.logo .wordmark__mark {
  width: clamp(3rem, 2.5rem + 2vw, 4rem);
  height: clamp(3rem, 2.5rem + 2vw, 4rem);
}

.logo .wordmark__text {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo .wordmark__lana {
  font-size: clamp(4rem, 3rem + 4.5vw, 6.5rem);
}

.logo .wordmark__rituals {
  margin-right: -0.5em; /* Optical centring: the tracking adds space after the last letter. */
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem);
  letter-spacing: 0.5em;
}

.menu {
  width: 100%;
  max-width: 40rem;
}

.menu ul {
  padding: 0;
  list-style: none;
}

.menu__item {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid color-mix(in srgb, var(--color-decor) 70%, transparent);
  text-align: center;
}

.menu__item h2 {
  font-size: clamp(1.75rem, 1.55rem + 0.87vw, 2.25rem);
  line-height: 1.15;
}

.menu__item p {
  max-width: 34rem;
  color: var(--color-muted);
}

.menu__item .btn {
  margin-top: 0.5rem;
}

/* Inner pages: back link, kicker, title, intro. */
.page-head {
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--space-section);
}

.page-head__inner {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.page-head:has(.page-head__inner) {
  padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

main h1 {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.back {
  display: inline-block;
  margin-bottom: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}

.page-head__inner .back {
  margin-bottom: clamp(0rem, -0.5rem + 2vw, 1.25rem);
}

/* Photo next to text (About, Events). */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.split .ph {
  max-width: 26rem;
}

.prose {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.prose > * {
  max-width: var(--measure);
}

.prose h2 {
  margin-bottom: 0.5rem;
}

.list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-lead);
}

.list li {
  position: relative;
  padding-left: 1.75rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
}

/* AROMA CLUB: the four topics. */
.topics {
  display: grid;
  gap: clamp(3rem, 2.5rem + 2vw, 4.5rem);
}

.topics .btn {
  margin-top: 0.75rem;
}

/* Partner page: the application form. */
.form {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  width: 100%;
  max-width: 30rem;
  margin-top: 0.75rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.field label {
  font-size: var(--fs-small);
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-card);
  background: #fffdfa;
  color: var(--color-text);
  font: inherit;
}

.field input[aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: 0 0 0 1px var(--color-error);
}

.field__error {
  color: var(--color-error);
  font-size: var(--fs-small);
  font-weight: 600;
}

.form__hint {
  color: var(--color-muted);
  font-size: var(--fs-small);
}

button.btn {
  border: 0;
  cursor: pointer;
}

button.btn:disabled {
  cursor: default;
}

.form__notice {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.form__notice a {
  font-weight: 600;
  white-space: nowrap;
}

/* Contact */
.contact {
  text-align: center;
}

.contact__inner {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.contact__inner .wordmark__mark {
  width: 2.5rem;
  height: 2.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding-block: 3rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.site-footer .wordmark,
.site-footer .wordmark:hover {
  color: var(--color-bg);
}

.site-footer .wordmark__mark {
  color: var(--color-decor);
}

.site-footer a:not(.wordmark) {
  color: var(--color-bg);
  font-size: var(--fs-small);
  font-weight: 500;
}

.site-footer :focus-visible {
  outline-color: var(--color-bg);
}

.site-footer small {
  font-size: var(--fs-small);
  color: var(--color-decor);
}

/* ≥ 420px: full-size wordmark */
@media (min-width: 26.25em) {
  .wordmark__mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .wordmark__lana {
    font-size: 1.75rem;
  }

  .lang-switch a {
    min-width: 2.5rem;
    padding-inline: 0.625rem;
  }

  .btn {
    width: auto;
  }
}

/* ≥ 900px: photo beside the text, one-row footer */
@media (min-width: 56.25em) {
  .site-header__inner {
    padding-block: 1rem;
  }

  .split {
    grid-template-columns: 5fr 7fr;
  }

  .split .ph {
    max-width: none;
  }

  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
