:root{
  --tea-rose: #e9ccd4;
  --crimson: #cb818f;
  --dusty-purple: #77567b;
  --pastel-gold: #e7bb88;
  --beige-pink: #e5dde1;
  --vintage-lavender: #82709c;

  --text: #323232;
  --text-on-dark: #e5dde1;
  --text-soft: rgba(50,50,50,.82);
  --paper: rgba(229,221,225,.75);
  --paper-strong: rgba(229,221,225,.92);
  --surface-white: rgba(255,255,255,.72);
  --surface-white-strong: rgba(255,255,255,.86);
  --hairline: rgba(50,50,50,.18);

  --font-title: "Historia Berlin", "The Seasons", "Times New Roman", serif;
  --font-body: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-accent: "The Seasons", "Historia Berlin", "Times New Roman", serif;

  --gradient-1: linear-gradient(135deg, #77567b, #e9ccd4);
  --gradient-2: linear-gradient(135deg, #cb818f, #e9ccd4);
  --gradient-3: linear-gradient(135deg, #e7bb88, #cb818f);
  --gradient-4: linear-gradient(135deg, #82709c, #e9ccd4);

  --radius: 24px;
  --maxw: 980px;
  --header-height: 72px;
  --card-pad: 22px;
  --section-marker: 24px;
  --section-gap: 12px;
  --body-size: clamp(17px, 1.6vw, 22px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: .1px;
  background:
    radial-gradient(1000px 620px at 12% 8%, rgba(233,204,212,.24) 0%, rgba(233,204,212,.08) 42%, rgba(233,204,212,0) 64%),
    radial-gradient(860px 540px at 88% 16%, rgba(130,112,156,.14) 0%, rgba(130,112,156,.05) 45%, rgba(130,112,156,0) 68%),
    radial-gradient(900px 700px at 58% 96%, rgba(203,129,143,.12) 0%, rgba(203,129,143,.04) 50%, rgba(203,129,143,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,244,246,.98));
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 2px solid rgba(119,86,123,.65);
  outline-offset: 4px;
  border-radius: 10px;
}

.wrap{
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.graphic-field{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.graphic-field .motif,
.motif{
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  opacity: .08;
  filter: saturate(.82);
}
.orb{
  position: absolute;
  border-radius: 999px;
  filter: blur(.4px);
  opacity: .2;
}
.contour{
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(50,50,50,.11);
  opacity: .5;
}

header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(255,255,255,.8);
  background-image: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  border-bottom: 1px solid var(--hairline);
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
header.is-scrolled{
  box-shadow: 0 10px 26px rgba(50,50,50,.12);
  border-bottom-color: rgba(50,50,50,.24);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  transition: padding .2s ease;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo,
.brand .brand-logo{
  height: 48px;
  width: auto;
  display: block;
  transition: height .2s ease;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(5px);
  transition: transform .2s ease;
}
.nav a.small,
.nav-link{
  font-size: 15px;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: font-size .2s ease;
}
.nav a.small:hover,
.nav a.small.active,
.nav-link:hover{
  border-bottom-color: rgba(50,50,50,.35);
}
header.is-scrolled .nav{ padding: 8px 0; }
header.is-scrolled .brand-logo,
header.is-scrolled .brand .brand-logo{ height: 28px; }
header.is-scrolled .nav a.small,
header.is-scrolled .nav-link{ font-size: 12px; }
header.is-scrolled .nav-links{ transform: translateY(4px); }

main{
  position: relative;
  z-index: 1;
}
section{ padding: 30px 0; }
section[id]{ scroll-margin-top: calc(var(--header-height) - 20px); }

h1,
h2{
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 14px;
}
h1{ font-size: clamp(36px, 6.8vw, 46px); letter-spacing: .2px; }
h2{ font-size: clamp(26px, 3.6vw, 34px); letter-spacing: .2px; }
p{
  margin: 0 0 14px;
  font-size: var(--body-size);
  color: var(--text-soft);
}
li{
  font-size: var(--body-size);
  color: var(--text-soft);
  margin-bottom: 6px;
}
.lead{
  font-size: clamp(19px, 1.9vw, 24px);
  color: rgba(50,50,50,.86);
}
.quiet{
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: rgba(50,50,50,.72);
}
cite{
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-soft);
}
.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  margin: 18px 0 0;
}

.card,
.panel{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(50,50,50,.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-white-strong), rgba(255,255,255,.72));
  box-shadow: 0 14px 34px rgba(50,50,50,.07);
}
.card > *,
.panel > *{
  position: relative;
  z-index: 1;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(50,50,50,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(244,238,240,.94));
  color: rgba(50,50,50,.92);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, border-color .18s ease, background-color .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(50,50,50,.14);
  filter: saturate(1.03);
}
.btn:active{
  transform: translateY(0);
  box-shadow: none;
}

.section-title,
.section-heading{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.section-title{
  padding-left: var(--card-pad);
  margin-bottom: 18px;
}
.section-title-text,
.section-heading-title{
  min-width: 0;
}
.section-title::before{
  content: "";
  position: absolute;
  left: calc(var(--card-pad) - var(--section-marker) - var(--section-gap));
  top: 50%;
  transform: translateY(-50%);
  width: var(--section-marker);
  height: var(--section-marker);
  border-radius: 999px;
  border: 1px solid rgba(119,86,123,.44);
  box-shadow: inset 0 0 0 5px rgba(231,187,136,.24);
}
.section-nav{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.section-nav-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(119,86,123,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(244,238,240,.94));
  color: rgba(119,86,123,.84);
  box-shadow: 0 8px 18px rgba(50,50,50,.06);
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease;
}
.section-nav-btn::before{
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.section-nav-btn.is-up::before{ border-bottom: 7px solid currentColor; }
.section-nav-btn.is-down::before{ border-top: 7px solid currentColor; }
.section-nav-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(50,50,50,.1);
  color: rgba(203,129,143,.92);
}

footer{
  padding: 28px 0 40px;
  color: rgba(50,50,50,.65);
  font-size: 14px;
}
.footer-social{
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: rgba(119,86,123,.82);
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(119,86,123,.16);
  box-shadow: 0 8px 18px rgba(50,50,50,.06);
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease;
}
.footer-social-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(50,50,50,.1);
  color: rgba(203,129,143,.9);
}
.foot{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.foot-meta{
  display: grid;
  gap: 4px;
}
.foot-credit{
  font-size: 12px;
  color: rgba(50,50,50,.52);
}
.foot-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.alma-cursor{
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-radius: 999px;
  border: 1px solid rgba(119,86,123,.34);
  background: rgba(229,221,225,.16);
  box-shadow: 0 0 0 1px rgba(231,187,136,.14) inset;
  pointer-events: none;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .2s ease, transform .18s ease, background-color .18s ease, border-color .18s ease;
  z-index: 120;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.alma-cursor::before{
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: rgba(119,86,123,.52);
  transition: transform .18s ease, background-color .18s ease;
}
.alma-cursor.is-visible{
  opacity: 1;
  transform: scale(1);
}
.alma-cursor.is-active{
  transform: scale(1.28);
  border-color: rgba(203,129,143,.48);
  background: rgba(233,204,212,.22);
}
.alma-cursor.is-active::before{
  transform: scale(.74);
  background: rgba(203,129,143,.62);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference){
  html.has-alma-cursor,
  html.has-alma-cursor a,
  html.has-alma-cursor button{
    cursor: none;
  }
}

@media (max-width: 720px){
  .wrap{ width: min(var(--maxw), calc(100% - 28px)); }
  .section-title{
    gap: 12px;
  }
  .section-title::before{
    width: 20px;
    height: 20px;
    left: calc(var(--card-pad) - 20px - var(--section-gap));
  }
  .section-nav{ gap: 6px; }
  .section-nav-btn{
    width: 34px;
    height: 34px;
  }
  .foot{
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-links{ order: -1; }
}
