@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  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;
  src: url("assets/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --violet: #392344;
  --teal: #089584;
  --blue: #758bfd;
  --orange: #fc7a1e;
  --paper: #fff;
  --alabaster: #e0e0e0;
  --wash: #f6f4f7;
  --ink: #211a2b;
  --muted: #5e5465;
  --line: #dfd9e2;
  --dark: #161327;
  --link: #006b60;
  --radius: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 500 1rem/1.65 Manrope, Arial, sans-serif;
}
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 {
  color: var(--violet);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.055em;
  text-wrap: balance;
}
h3 { font-size: 1.42rem; font-weight: 750; letter-spacing: -.035em; }
p + p { margin-top: .8rem; }

.shell { width: min(76rem, calc(100% - 5rem)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.25rem); }
.skip {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .8rem 1rem;
  background: white;
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; background: white; }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 9.7rem; height: auto; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 2.2vw, 2rem); }
nav a { color: var(--violet); text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 750; }
nav a:hover { color: var(--link); }
.menu { display: none; }
.button {
  min-height: 2.9rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: .5rem;
  padding: .7rem 1.15rem;
  color: white;
  background: var(--violet);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
}
.button:hover { background: #50365e; color: white; }
.button-accent { background: #b7c1ff; color: #1e1934; }
.button-accent:hover { background: #d0d7ff; color: #1e1934; }
.button-outline { border-color: #beb3d2; background: transparent; }
.button-outline:hover { background: #ffffff20; }

.hero {
  color: white;
  background-color: var(--dark);
  background-image: linear-gradient(90deg, #161327 0%, #161327f5 23%, #16132794 50%, #16132708 100%), url("assets/trama-red.webp");
  background-repeat: no-repeat;
  background-position: center, center 48%;
  background-size: cover;
}
.hero-inner { padding-block: clamp(3.7rem, 7vw, 6.6rem); }
.hero-name { margin-bottom: 1.2rem; font-size: .94rem; font-weight: 800; letter-spacing: .025em; color: #d9dfff; }
.hero h1 {
  font-size: clamp(3rem, 7.1vw, 6.35rem);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.072em;
}
.hero h1 span { color: var(--orange); }
.hero-lead { margin-top: 1.45rem; color: #eeeaf5; font-size: clamp(1.07rem, 2.15vw, 1.5rem); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

.activity-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 7vw, 6rem); align-items: stretch; }
.activity-layout h2 { margin-bottom: 2rem; }
.activity-row { padding-block: 1.35rem; border-top: 1px solid var(--line); }
.activity-row:last-child { padding-bottom: 0; }
.activity-row p:not(.meta), .project-list p { color: var(--muted); margin-top: .45rem; }
.activity-photo { width: 100%; height: 100%; min-height: 19rem; max-height: 32rem; object-fit: cover; border-radius: var(--radius); background: var(--alabaster); }
.meta { color: var(--link); font-size: .88rem; font-weight: 800; margin-bottom: .4rem; }
.text-link {
  border: 0;
  background: transparent;
  padding: .25rem 0;
  display: inline-block;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: .24em;
  font-size: .92rem;
  font-weight: 800;
}
.text-link:hover { color: var(--violet); }
.activity-row .text-link, .projects .text-link { margin-top: .55rem; }

.intro { background: var(--wash); }
.paired { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.paired p { color: var(--muted); }
.intro .paired { align-items: center; }
.intro p { font-size: 1.15rem; max-width: 32rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading > p { color: var(--muted); max-width: 27rem; }
.area-row {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1.8rem;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.35rem .35rem;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--violet);
  text-align: left;
  background: transparent;
}
.area-row:last-child { border-bottom: 1px solid var(--line); }
.area-row:hover { background: var(--wash); }
.area-name { font-size: 1.17rem; font-weight: 800; }
.area-description { color: var(--muted); }
.area-more { font-size: 1.4rem; font-weight: 750; text-align: center; }

.community { background: var(--wash); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.filters button { background: white; border: 1px solid var(--line); border-radius: 2rem; color: var(--violet); padding: .48rem .9rem; font-size: .9rem; font-weight: 750; }
.filters button:hover { border-color: var(--violet); }
.filters .selected { color: white; border-color: var(--violet); background: var(--violet); }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.person { padding: 1.4rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.person h3 { font-size: 1.16rem; }
.person .role { margin-top: .35rem; color: var(--muted); font-size: .94rem; }
.person dl { margin: .7rem 0 0; font-size: .9rem; }
.person dt { color: var(--muted); margin-top: .4rem; }
.person dd { margin: 0; font-weight: 750; }
.projects h2, .participate h2 { margin-bottom: 1rem; }
.project-list article { border-top: 1px solid var(--line); padding-block: 1.2rem; }
.project-list article:last-child { border-bottom: 1px solid var(--line); }

.participate { background: var(--violet); color: white; }
.participate h2 { color: white; }
.participate .paired { align-items: center; }
.participate p, .join-box small { color: #f0e8f4; }
.join-box { display: flex; flex-direction: column; align-items: start; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #927da1; border-radius: var(--radius); background: #ffffff0b; }
.join-box label { margin-bottom: .55rem; font-size: 1.05rem; font-weight: 800; }
.select-wrap { width: 100%; position: relative; }
.select-wrap::after {
  position: absolute; right: 1rem; top: 1.1rem; width: .5rem; height: .5rem;
  border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet);
  content: ""; transform: rotate(45deg); pointer-events: none;
}
.join-box select { width: 100%; appearance: none; border: 1px solid transparent; border-radius: .4rem; background: white; color: var(--ink); padding: .65rem 2rem .65rem .75rem; }
.join-box p { margin: .7rem 0 1rem; }
.join-box small { margin-top: .7rem; font-size: .83rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 7rem; }

dialog { position: fixed; max-width: 37rem; width: calc(100% - 2rem); max-height: calc(100% - 2rem); overflow: auto; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 3rem); }
dialog::backdrop { background: #161327bb; }
dialog h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); margin-bottom: 1rem; }
dialog .close { position: absolute; top: .4rem; right: .6rem; width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: var(--violet); font-size: 1.6rem; }
dialog .button { margin-top: 1rem; }

@media (max-width: 53rem) {
  .shell { width: calc(100% - 3rem); }
  .header-inner { min-height: 4.6rem; }
  .menu { display: block; padding: .4rem .75rem; min-height: 2.65rem; border: 1px solid var(--line); border-radius: .4rem; background: white; color: var(--violet); font-weight: 800; }
  nav { display: none; position: absolute; inset: 100% 0 auto; padding: 1rem 1.5rem 1.35rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
  nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  nav a { padding: .65rem 0; }
  nav .nav-cta { align-self: start; margin-top: .3rem; }
  .hero { background-position: center, 59% center; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 40rem) {
  .shell { width: calc(100% - 2.5rem); }
  .brand img { width: 8.25rem; }
  .hero {
    background-image: linear-gradient(90deg, #161327ed 0%, #161327a8 68%, #16132755 100%), url("assets/trama-red.webp");
    background-position: center, 64% center;
  }
  .hero h1 { font-size: clamp(2.7rem, 11.5vw, 4.2rem); }
  .hero-inner { padding-block: 3.4rem 3.65rem; }
  .activity-layout, .paired, .people-grid { grid-template-columns: 1fr; }
  .activity-photo { aspect-ratio: 4 / 3; min-height: 0; max-height: 26rem; object-position: center 55%; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .65rem; }
  .area-row { grid-template-columns: minmax(0, 1fr) 1.75rem; gap: .3rem .6rem; }
  .area-description { grid-row: 2; }
  .area-more { grid-column: 2; grid-row: 1; }
}

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