/* Shared by the three layout options: type, colour, the landing, the collective, joining, the person card */
@font-face { font-family: "Karoll"; src: url("/assets/fonts/karoll-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Karoll"; src: url("/assets/fonts/karoll-round.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --white: #fbfaf7;
  --limewash: #f3f2ee;
  --mist: #e8e9e7;
  --stone: #c9cbc8;
  --ink: #2f3236;
  --soft: #6b6f74;
  --terracotta: #b96a49;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: "Karoll", "Iowan Old Style", Georgia, serif; font-size: 1.15rem; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--terracotta); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.1rem; }
h1, h2, h3 { font-weight: 300; margin: 0; text-wrap: balance; }
:focus-visible { outline: 1px solid var(--soft); outline-offset: 4px; }

.corner { position: absolute; z-index: 10; top: max(1.1rem, env(safe-area-inset-top, 0px)); font-size: 1.05rem; text-decoration: none; text-shadow: 0 0 14px rgba(251,250,247,.85), 0 0 3px rgba(251,250,247,.7); }
.corner.left { left: clamp(1rem, 3vw, 2rem); font-weight: 300; font-size: 1.25rem; }
.corner.right { right: clamp(1rem, 3vw, 2rem); color: var(--soft); }

/* Landing: Anna's pelicans */
.threshold { position: relative; min-height: 100svh; display: grid; place-items: center start; padding: 6rem 1.25rem; overflow: hidden; isolation: isolate; }
.threshold .sky { position: absolute; inset: 0; z-index: -1; }
.threshold .sky img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(1.04); }
.threshold .sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,250,247,.35), rgba(251,250,247,0) 55%), linear-gradient(rgba(251,250,247,0) 75%, var(--white)); }
.threshold > div { margin-left: clamp(0rem, 8vw, 9rem); max-width: 30rem; }
.threshold .logo { width: min(28rem, 76vw); margin: 0 0 1.8rem; }
.threshold .line { font-weight: 300; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.45; max-width: 24rem; margin: 0; }

/* Entering: one calm column */
.refuge { padding: clamp(4.5rem, 12vw, 9rem) 1.25rem clamp(3rem, 8vw, 6rem); }
.refuge p { max-width: 36rem; margin: 0 auto; text-align: center; font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.5; }

/* The unknown collective: the bloom */
.collective { background: linear-gradient(var(--white), var(--limewash) 25%, var(--limewash) 75%, var(--white)); padding: clamp(4rem, 10vw, 8rem) 1.25rem; }
.collective-in { max-width: 64rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.collective h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.12; margin-bottom: 1.3rem; }
.collective .words p { color: var(--soft); }
.circles-list { margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.circles-list div { border-top: 1px solid var(--stone); padding-top: .7rem; }
.circles-list dt { color: var(--ink); }
.circles-list dd { margin: .1rem 0 0; color: var(--soft); font-size: 1rem; }
.bloom { position: relative; width: 100%; aspect-ratio: 1; max-width: 34rem; margin: 0 auto; }
.bloom canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bloom .face { position: absolute; transform: translate(-50%, -50%); width: clamp(3.4rem, 9vw, 4.6rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--limewash), 0 0 0 5px #d9bd83, 0 6px 26px rgba(185, 150, 90, .35); transition: transform .4s var(--ease); }
.bloom .face:hover { transform: translate(-50%, -50%) scale(1.06); }
.bloom .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rings { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .98rem; }
.rings li { display: flex; align-items: center; gap: .45rem; }
.rings .dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.dot.council { background: radial-gradient(circle at 35% 35%, #fffaf0, #f3e3bb 55%, #d9bd83); }
.dot.stewards { background: radial-gradient(circle at 35% 35%, #ffffff, #e6ece0 55%, #bccab0); }
.dot.fellowship { background: radial-gradient(circle at 35% 35%, #ffffff, #eceef0 55%, #cfd3d6); }
.bloom-note { margin: .5rem 0 0; text-align: center; color: var(--soft); font-size: .95rem; }

/* Step into the unknown */
.join { position: relative; text-align: center; padding: clamp(5rem, 12vw, 9rem) 1.25rem; overflow: hidden; isolation: isolate; }
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/light/dawn-clouds.jpg") center 45% / cover; opacity: .32; }
.join::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--white), transparent 30%, transparent 70%, var(--white)); }
.join h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 1.2rem; }
.join p { max-width: 28rem; margin-left: auto; margin-right: auto; }
.join .door { display: inline-block; margin-top: .6rem; font-weight: 300; font-size: clamp(1.4rem, 3vw, 1.8rem); text-decoration: none; border-bottom: 1px solid var(--terracotta); }
footer { padding: 2.5rem 1.25rem 5rem; color: var(--soft); font-size: .95rem; text-align: center; }

/* The person card */
dialog { border: 0; padding: 0; max-width: min(52rem, calc(100vw - 2rem)); width: 100%; max-height: calc(100svh - 2rem); background: var(--white); color: var(--ink); border-radius: 3px; box-shadow: 0 30px 80px rgba(47, 50, 54, .18); }
dialog::backdrop { background: color-mix(in srgb, var(--limewash) 70%, transparent); backdrop-filter: blur(8px); }
dialog[open] { animation: unfold .6s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(16px); } }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; }
.panel figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.panel .text { padding: clamp(1.5rem, 4vw, 2.75rem); overflow: auto; }
.panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin-bottom: .6rem; }
.panel .role { color: var(--soft); }
.label-soft { color: var(--soft); font-size: .95rem; margin: 1.2rem 0 .3rem; }
.resonance { font-weight: 300; font-size: 1.28rem; line-height: 1.5; }
details.more { margin-top: 1.2rem; border-top: 1px solid var(--mist); padding-top: .9rem; }
details.more summary { cursor: pointer; list-style: none; display: inline-block; border-bottom: 1px solid var(--terracotta); }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 1rem; }
details.more dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; font-size: 1rem; }
details.more dt { color: var(--soft); }
details.more dd { margin: 0; }
.close { position: absolute; top: .7rem; right: .9rem; font-size: 1.6rem; line-height: 1; color: var(--soft); padding: .3rem .5rem; }

/* Switching between the options while choosing */
.switcher { position: fixed; z-index: 20; left: 50%; bottom: max(.9rem, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: .2rem; padding: .3rem; border-radius: 999px; background: color-mix(in srgb, var(--white) 88%, transparent); backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(47, 50, 54, .14); font-size: .95rem; white-space: nowrap; }
.switcher a { text-decoration: none; padding: .3rem .8rem; border-radius: 999px; color: var(--soft); }
.switcher a[aria-current="page"] { background: var(--ink); color: var(--white); }

@media (max-width: 760px) {
  .threshold { place-items: end start; padding-bottom: 12svh; }
  .threshold > div { margin: 0; }
  .threshold .sky img { object-position: 64% 50%; }
  .threshold .sky::after { background: linear-gradient(rgba(251,250,247,0) 34%, rgba(251,250,247,.9) 58%, var(--white) 74%); }
  .collective-in { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel figure { max-height: 40svh; }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open] { animation: none; }
}
