:root {
  color: #211a35;
  background: #fbf9ff;
  font: 100%/1.58 system-ui, sans-serif;
  --accent: #5530bc;
  --dark: #271647;
  --text-soft: #5c526e;
  --line: #e1d9ed;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: .99; letter-spacing: -.065em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
a { color: inherit; text-underline-offset: .18em; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #8461e6; outline-offset: 4px; }
section[id] { scroll-margin-top: 7rem; }
.wrap { width: min(72rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .5rem 1rem; background: white; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: #fbf9ff; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .35rem 1rem; min-height: 4.75rem; }
.brand, nav { display: flex; align-items: center; }
.brand { gap: .55rem; font-weight: 850; font-size: 1.16rem; text-decoration: none; }
.brand-icon { width: 2rem; padding: .35rem; border-radius: .5rem; background: var(--accent); color: white; }
.brand-divider { width: 1px; height: 1rem; background: var(--line); }
.brand-university { color: var(--text-soft); font-size: .85rem; }
nav { gap: clamp(.55rem, 3.2vw, 2rem); }
nav a { text-decoration: none; font-weight: 650; padding-block: .45rem; }
nav a:hover, .resource:hover strong { color: var(--accent); text-decoration: underline; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5.5vw, 5rem); }
.label { margin-bottom: .7rem; color: var(--text-soft); font-weight: 700; }
h1 { font-size: clamp(3rem, 7.2vw, 6.25rem); }
h1 span { display: block; color: var(--accent); font-size: 1.3em; font-variant-numeric: tabular-nums; letter-spacing: -.085em; }
.hero-lead { margin: 1.2rem 0 1.4rem; max-width: 27rem; color: var(--text-soft); font-size: 1.12rem; }
.hero-actions, .draft-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: fit-content; min-height: 2.9rem; padding: .62rem .9rem; border: 1px solid transparent; border-radius: .55rem; font: inherit; font-weight: 720; text-align: center; text-decoration: none; cursor: pointer; }
.button svg { width: 1.2rem; flex-shrink: 0; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover:not(:disabled) { background: #442095; }
.button-secondary { border-color: #cbbce7; background: transparent; color: var(--dark); }
.button-secondary:hover { background: #efe7fd; }
.button:disabled { opacity: .6; cursor: default; }
.hero-figure { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #e9e4f2; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 1581 / 1050; object-fit: cover; background: #e4d9f4; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; padding: .65rem .85rem; color: var(--text-soft); font-size: .84rem; }
.section { padding-block: clamp(2.5rem, 6.2vw, 4.6rem); }
.study-band { background: #f0eafb; border-block: 1px solid #e9dff5; }
.study-intro, .contact { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: clamp(1rem, 5vw, 4rem); }
.study-intro p, .section-note { color: var(--text-soft); max-width: 45rem; }
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: 1.65rem; }
.resource { display: flex; align-items: center; gap: .62rem; min-width: 0; padding: .8rem; border: 1px solid #e4d9f1; border-radius: .75rem; background: #fbf9ff; text-decoration: none; }
.resource-icon { width: 2rem; flex: 0 0 2rem; padding: .3rem; border-radius: .4rem; background: #ece1fa; color: var(--accent); }
.resource small, .work-card span { display: block; color: var(--text-soft); font-size: .92rem; }
.section-note { margin-top: .7rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.4rem; }
.work-card { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.work-card img { width: 100%; height: auto; }
.work-card figcaption { padding: .8rem .9rem; }
.work-card strong { font-size: 1.08rem; }
.contact { border-top: 1px solid var(--line); }
address { display: grid; gap: .15rem; margin-top: 1.2rem; font-style: normal; }
address a { width: fit-content; color: var(--accent); }
form { display: grid; gap: .8rem; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .9rem; background: #f0eafb; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
label { display: grid; gap: .28rem; min-width: 0; font-weight: 700; }
input, textarea { width: 100%; min-height: 2.7rem; padding: .55rem .65rem; border: 1px solid #b6a9ca; border-radius: .4rem; font: inherit; font-weight: 450; color: inherit; background: #fff; }
textarea { resize: vertical; }
.feedback-status { color: var(--text-soft); }
.feedback-status:empty { display: none; }
.draft-actions { margin-top: .55rem; }
footer { background: var(--dark); color: #f9f5ff; }
.footer-inner { flex-wrap: wrap; padding-block: .8rem; }
.socials { display: flex; align-items: center; gap: .55rem; }
.socials a { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border: 1px solid #9486b0; border-radius: 50%; }
.socials a:hover { background: #4f3581; }
.socials svg { width: 1.3rem; }
@media (max-width: 64rem) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .study-intro, .contact { grid-template-columns: 1fr; }
  .hero { gap: 1.4rem; }
  h1 span { display: inline; font-size: 1.05em; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .header-inner { flex-wrap: wrap; padding-block: .55rem; }
  .header-inner nav { width: 100%; justify-content: space-between; font-size: .94rem; }
  .gallery, .form-row { grid-template-columns: 1fr; }
  .resource { align-items: flex-start; padding: .6rem; }
  .resource-icon { display: none; }
}
@media (max-width: 23rem) {
  .hero-actions .button { width: 100%; }
  .resource-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
