/* ==========================================================================
   La Sanbasque — landing page
   ========================================================================== */

/* Fonts are self-hosted (no requests to Google = GDPR friendly) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/jost.woff2") format("woff2");
}

:root {
  --cream: #faf4ec;
  --cream-2: #f3e8da;
  --ink: #2a1d15;
  --ink-soft: #57463a;
  --caramel: #9e4f1e;
  --orange: #c26921;
  --sunset: #ee9a4d;
  --peach: #f6d3b4;
  --dark: #21160f;
  --dark-ink: #f3e7d9;
  --dark-muted: #b9a38d;
  --line: rgba(42, 29, 21, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --wrap: 1160px;
  --measure: 640px;
  --section: clamp(80px, 11vw, 160px);

  /* colours sampled from the hero photo, used to extend it seamlessly */
  --sky: linear-gradient(90deg, #abbcce 0%, #c4c1c7 28%, #d0bebb 50%, #e6c4b6 78%, #f1ccba 100%);
  --sea: linear-gradient(90deg, #ad622b 0%, #c26820 50%, #e27316 100%);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p {
  margin: 0 0 1.25em;
}
p:last-child {
  margin-bottom: 0;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: inherit;
}
::selection {
  background: var(--peach);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Language switching: only the active language is shown */
html[lang="de"] body [lang="en"],
html[lang="en"] body [lang="de"] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nowrap {
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: calc(820px + var(--gutter) * 2);
}
.section {
  padding-block: var(--section);
}

/* --------------------------------------------------------------------------
   Shared typographic pieces
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--caramel);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--center {
  justify-content: center;
}
.eyebrow--center::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.15rem, 1.3rem + 3.6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em,
.title em {
  font-style: italic;
  font-weight: 400;
  color: var(--caramel);
}
.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
}
.prose {
  max-width: var(--measure);
  color: var(--ink-soft);
}
.emph {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem);
  line-height: 1.3;
  color: var(--ink);
  margin-block: 1.4em !important;
  padding-left: 22px;
  border-left: 1px solid var(--sunset);
}

/* —•— divider, echoing the one in the logo */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--caramel);
}
.ornament::before,
.ornament::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.ornament span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Instagram pill button */
.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 20px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(66, 30, 6, 0.45), 0 0 0 1px rgba(42, 29, 21, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ig-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(66, 30, 6, 0.55), 0 0 0 1px rgba(42, 29, 21, 0.08);
}
.ig-pill svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--orange);
}
.ig-pill .handle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1;
}
.ig-pill .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sunset);
}
.ig-pill--dark {
  background: var(--ink);
  color: var(--cream);
}
.ig-pill--dark svg {
  color: var(--sunset);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}
.hero picture {
  display: block;
}
.hero img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  max-height: 100svh;
  object-fit: cover;
  object-position: 50% 80%;
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
}
.glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  color: var(--ink);
}
.topbar__ig {
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.topbar__ig:hover {
  background: rgba(255, 255, 255, 0.55);
}
.topbar__ig svg {
  width: 18px;
  height: 18px;
}
.lang {
  padding: 0 6px;
  gap: 2px;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  padding: 7px 8px 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.6;
  transition: background 0.2s, opacity 0.2s;
}
.lang button:hover {
  opacity: 1;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  opacity: 1;
}

/* Sunset fades into the page; the Instagram pill sits on the seam */
.hero-foot {
  position: relative;
  z-index: 2;
  height: clamp(96px, 11vw, 150px);
  background: linear-gradient(to bottom, rgba(250, 244, 236, 0) 0%, var(--cream) 100%), var(--sea);
  text-align: center;
}
.hero-foot .ig-pill {
  position: relative;
  transform: translateY(-50%);
}
.hero-foot .ig-pill:hover {
  transform: translateY(calc(-50% - 2px));
}

/* Portrait screens: extend the sky above the photo instead of cropping the logo */
@media (max-aspect-ratio: 1/1) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 62vh;
    min-height: 62svh;
    background-size: 128% 100%;
    background-position: 50% 0;
  }
  .hero picture {
    width: 128%;
    margin-left: -14%;
  }
  .hero img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
  }
  .hero-foot {
    background-size: 100% 100%, 128% 100%;
    background-position: 0 0, 50% 0;
  }
  /* the logo tagline sits close to the photo's bottom edge here */
  .hero-foot .ig-pill {
    transform: translateY(-22%);
  }
  .hero-foot .ig-pill:hover {
    transform: translateY(calc(-22% - 2px));
  }
}
@media (max-width: 480px) {
  .eyebrow {
    letter-spacing: 0.2em;
  }
}
@media (max-width: 420px) {
  .topbar__ig span {
    display: none;
  }
  .topbar__ig {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
  .hero-foot .ig-pill {
    font-size: 0.875rem;
    padding: 12px 20px 12px 16px;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.story {
  padding-top: clamp(32px, 6vw, 96px);
}
.story .display {
  margin-bottom: clamp(32px, 4vw, 48px);
}
.story .lead {
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* Pull quote */
.quote-band {
  background: var(--cream-2);
  text-align: center;
  padding-block: clamp(72px, 10vw, 136px);
}
.quote-band blockquote {
  margin: 28px auto 0;
  max-width: 900px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4.5rem);
  line-height: 1.1;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Idea
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 96px);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
  .split__aside {
    position: sticky;
    top: 12vh;
  }
}
.signature {
  margin-top: 2em !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.2;
  color: var(--caramel);
}

/* --------------------------------------------------------------------------
   Name (dark)
   -------------------------------------------------------------------------- */
.name {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(194, 105, 33, 0.28), transparent 70%),
    var(--dark);
  color: var(--dark-ink);
  text-align: center;
}
.name .eyebrow {
  color: var(--sunset);
}
.name__word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.name__word i {
  font-style: normal;
  color: var(--sunset);
  padding-inline: 0.12em;
}
.name__intro {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--dark-muted);
  font-size: 1.125rem;
}
.parts {
  display: grid;
  gap: clamp(36px, 4vw, 56px);
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
@media (min-width: 860px) {
  .parts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.part {
  padding-top: 28px;
  border-top: 1px solid rgba(243, 231, 217, 0.18);
}
.part__word {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 1;
  color: var(--sunset);
}
.part__label {
  display: block;
  margin: 14px 0 18px;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.part p {
  color: rgba(243, 231, 217, 0.82);
  font-size: 1rem;
}
.name__meaning {
  max-width: 860px;
  margin: clamp(64px, 8vw, 112px) auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem);
  line-height: 1.3;
  text-wrap: balance;
}
.name__meaning .ornament {
  color: var(--sunset);
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Format
   -------------------------------------------------------------------------- */
.format__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 860px) {
  .format__grid {
    grid-template-columns: 5fr 6fr;
  }
}
.format__illo {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--peach) 0%, rgba(246, 211, 180, 0.35) 55%, rgba(246, 211, 180, 0) 72%);
  display: grid;
  place-items: center;
}
.format__illo svg {
  width: 84%;
  height: auto;
}
.format .title {
  margin-bottom: 28px;
}
.format .prose {
  font-size: 1.125rem;
}
.without {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(20px, 3vw, 40px);
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) {
  .without {
    grid-template-columns: repeat(4, 1fr);
  }
}
.without li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1.2;
}
.without li svg {
  width: 22px;
  height: 22px;
  color: var(--orange);
}
.just {
  max-width: 820px;
  margin: clamp(48px, 6vw, 88px) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem);
  line-height: 1.2;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------------- */
.mission {
  background: var(--cream-2);
}
.mission .prose {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.mission .title {
  max-width: 820px;
  margin-bottom: 28px;
}
.beliefs {
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: belief;
}
.beliefs li {
  counter-increment: belief;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.25rem);
  line-height: 1.25;
}
.beliefs li:last-child {
  border-bottom: 1px solid var(--line);
}
.beliefs li::before {
  content: counter(belief, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--caramel);
}

/* --------------------------------------------------------------------------
   Closing (sunset)
   -------------------------------------------------------------------------- */
.closing {
  background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 28%, #efa25c 72%, #d9782a 100%);
  text-align: center;
  padding-bottom: clamp(88px, 11vw, 150px);
}
.closing__story {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.closing__story span {
  display: block;
}
.journey {
  margin: clamp(56px, 7vw, 96px) auto clamp(48px, 6vw, 72px);
  max-width: 1160px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.journey span {
  display: block;
}
.journey span + span {
  margin-top: 0.18em;
}
.journey em {
  display: inline-block; /* wrap the italic half as a unit */
  font-style: italic;
  font-weight: 400;
}
.closing .ornament {
  color: var(--ink);
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding-block: clamp(56px, 7vw, 88px) 40px;
  font-size: 0.875rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(243, 231, 217, 0.14);
}
.footer__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--dark-ink);
}
.footer__brand sup {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  vertical-align: super;
  margin-left: 2px;
}
.footer__tag {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-ink);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(243, 231, 217, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.footer__link:hover {
  color: var(--sunset);
  border-color: var(--sunset);
}
.footer__link svg {
  width: 18px;
  height: 18px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running and motion is OK)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
