:root {
  color-scheme: light;
  --background: #f6f8f7;
  --ink: #152a2b;
  --muted: #4b6262;
  --teal: #09675c;
  --border: #cbd9d5;
  --surface: #fff;
  font: 1rem/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--teal); text-underline-offset: .2em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #08786b; outline-offset: 4px; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.sr-only, .filters input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip { position: fixed; z-index: 1; top: .75rem; left: .75rem; background: white; padding: .5rem 1rem; }
.skip:not(:focus) { transform: translateY(-160%); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner, .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-inner { min-height: 3.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .45rem; background: var(--teal); color: white; }
.header-link { font-weight: 650; text-decoration: none; }
.intro {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-block: 1.5rem 2.25rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 1.15rem;
  background-color: #103c39;
  background-image: radial-gradient(circle, #b9eee240 1px, transparent 1.5px),
    linear-gradient(110deg, #103531 20%, #15584f);
  background-size: 18px 18px, 100% 100%;
  background-position: 9px 9px, center;
  color: #fff;
}
.profile-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(4.25rem, 12vw, 7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #ffffffbf;
  background: #c9f2e5;
  color: #103531;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -.06em;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.03; letter-spacing: -.065em; }
.intro p { margin-top: .7rem; color: #def6ef; font-size: clamp(1rem, 2.5vw, 1.15rem); }
#projects { scroll-margin-top: 1rem; }
h2 { font-size: 1.85rem; letter-spacing: -.04em; }
.search { position: relative; width: min(100%, 19rem); }
.search-icon { position: absolute; left: .95rem; top: .93rem; width: .75rem; height: .75rem; border: 2px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: .42rem; height: 2px; background: var(--muted); transform: rotate(45deg); top: .55rem; left: .45rem; }
.search input, .field input, .field select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #809896;
  border-radius: .55rem;
  background: white;
  color: var(--ink);
  padding: .55rem .8rem;
}
.search input { padding-left: 2.5rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 .75rem; padding: 0; border: 0; min-width: 0; }
.filters span, .button {
  display: inline-block;
  padding: .48rem .85rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}
.filters input:checked + span, .button.primary { background: var(--teal); border-color: var(--teal); color: white; }
.filters input:focus-visible + span { outline: 3px solid #08786b; outline-offset: 3px; }
#status { color: var(--muted); margin-bottom: .85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.card { padding: 1.35rem; background: white; border: 1px solid var(--border); border-radius: .85rem; display: flex; flex-direction: column; gap: .8rem; overflow-wrap: anywhere; }
.project-icon {
  display: grid;
  place-items: center;
  min-height: 7rem;
  margin-bottom: .25rem;
  border-radius: .6rem;
  background: #d8f3eb;
  color: #09675c;
}
.project-icon--school { background: #e6ecfc; color: #354e9a; }
.project-icon--writing { background: #f2e9fa; color: #714694; }
.project-icon svg {
  width: 3.25rem;
  height: 3.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.22; }
.meta { color: var(--teal); font-size: .82rem; font-weight: 700; }
.card p:not(.meta) { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: auto 0 0; }
.tags li { background: #eaf1ee; border-radius: .3rem; padding: .2rem .5rem; font-size: .8rem; color: #304f4c; }
.links { display: flex; flex-wrap: wrap; gap: .8rem; border-top: 1px solid var(--border); padding-top: .75rem; font-weight: 650; }
.site-footer { margin-top: 3.5rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.demo { max-width: 34rem; padding-top: 3rem; }
.demo h1 { font-size: clamp(2.3rem, 7vw, 3.7rem); letter-spacing: -.06em; margin-bottom: .75rem; }
.demo form { margin-top: 1.5rem; }
.field { display: grid; gap: .3rem; font-weight: 650; }
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.demo .button { align-self: start; }
.demo output { font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 38rem) {
  .section-heading { align-items: stretch; flex-direction: column; gap: .65rem; }
  .search { width: 100%; }
}

@media (max-width: 30rem) {
  .intro { flex-direction: column; align-items: flex-start; }
}
