:root {
  color-scheme: light;
  --ink: #172c2b;
  --muted: #526967;
  --paper: #f2f6f3;
  --line: #d5e2db;
  --deep: #112e2b;
  --accent: #caf398;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.037em; font-weight: 600; line-height: 1.06; }
h1 { font-size: clamp(2.65rem,6vw,5.65rem); }
h2 { font-size: clamp(1.85rem,3.5vw,3.15rem); }
h3 { font-size: 1.15rem; line-height: 1.35; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #699d37; outline-offset: 4px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1168px,calc(100% - 52px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 18px; background: white; padding: 8px; z-index: 10; }
.skip:focus { top: 10px; }
.bar { background: #fbfdfb; border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { text-decoration: none; font-weight: 740; display: flex; align-items: center; gap: 12px; }
.brand span:first-child { display: grid; place-items: center; background: var(--deep); color: var(--accent); border-radius: 9px; width: 44px; height: 39px; font-size: .88rem; letter-spacing: .04em; }
.top nav { display: flex; gap: 24px; align-items: center; color: var(--muted); font-size: .92rem; font-weight: 650; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.home-hero,.work-hero { background: radial-gradient(ellipse at 95% 10%,#284d3e,var(--deep) 64%); color: #f3faf2; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px,6vw,92px); align-items: center; padding-block: clamp(43px,7vw,98px); }
.hero-copy { max-width: 700px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; font-weight: 750; color: #3e6553; line-height: 1.45; }
.home-hero .eyebrow, .work-hero .eyebrow { color: var(--accent); }
.hero-copy h1, .work-grid h1 { margin-top: 16px; }
.lede,.topic { color: #d4e4db; font-size: 1.08rem; margin-top: 22px; max-width: 58ch; }
.surface-button { display: inline-block; background: var(--accent); color: #192d1e; margin-top: 29px; border-radius: 8px; padding: 11px 18px; text-decoration: none; font-weight: 740; }
.surface-button:hover { background: #e0ffc0; }
.student { background: #204135; padding: clamp(21px,3vw,34px); border: 1px solid #557366; border-radius: 18px; }
.student h2 { margin-top: 12px; font-size: clamp(1.75rem,3.4vw,3.16rem); }
.student dl { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; padding-block: 16px; margin: 24px 0 14px; border-block: 1px solid #5e7a6c; }
.student dd { margin: 2px 0 0; font-weight: 700; }
.student dt,.student > p:last-child { color: #d4e4db; }
.works { padding-block: 54px 65px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-title h2, .report h2 { margin-top: 8px; }
.section-title > span,.apps { color: var(--muted); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.cards li { display: flex; }
.work-card { min-width: 0; width: 100%; display: block; text-decoration: none; background: #fcfefb; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.work-card:hover { border-color: #7ea393; box-shadow: 0 8px 25px #142e2617; }
.card-img { height: 156px; display: grid; place-items: center; background: #deebe4; padding: 10px; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-img img { height: 136px; width: 100%; object-fit: contain; }
.card-text { padding: 16px 19px 19px; }
.card-text .eyebrow { font-size: .8rem; margin-bottom: 6px; }
.apps { margin-top: 7px; font-size: .9rem; }
.work-hero { padding-block: 23px 40px; }
.back { color: #d3e8db; font-size: .94rem; text-underline-offset: 5px; }
.work-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 42px; align-items: center; margin-top: 28px; }
.work-grid h1 { font-size: clamp(2.4rem,5vw,4.7rem); }
.topic { margin-top: 15px; }
.cover { display: grid; place-items: center; border-radius: 14px; background: #d9e7de; min-height: 120px; padding: 10px; }
.cover img { max-height: 205px; width: 100%; object-fit: contain; }
.detail { padding-block: 35px 47px; }
.report { display: grid; grid-template-columns: 1.35fr 1fr; align-items: start; gap: 30px; margin-bottom: 36px; }
.report h2 { font-size: clamp(1.65rem,3vw,2.45rem); }
.report p:not(.eyebrow) { margin-top: 13px; }
.result { background: #e3efe5; border: 1px solid #cfdfd3; border-radius: 13px; padding: 20px 23px; }
.steps { margin: 13px 0 0; padding-left: 24px; }
.steps li { padding-left: 6px; margin-bottom: 6px; }
.steps li::marker { color: #3e6553; font-weight: 740; }
.shots { margin-bottom: 32px; }
.shots h2 { margin-bottom: 16px; font-size: clamp(1.65rem,3vw,2.5rem); }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.gallery figure { border: 1px solid var(--line); background: white; overflow: hidden; border-radius: 11px; }
.zoom { display: grid; place-items: center; min-height: 150px; height: 170px; padding: 8px; background: #e1ede5; cursor: zoom-in; }
.zoom img { width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0; }
.zoom:hover { background: #d1e4d7; }
figcaption { padding: 9px 12px 10px; font-size: .9rem; line-height: 1.45; }
.pager { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.pager a { text-decoration: none; border: 1px solid #b5cabe; border-radius: 8px; padding: 7px 13px; font-weight: 680; background: white; }
.pager a:hover { background: #e3efe5; }
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px 0; color: var(--muted); font-size: .9rem; }
dialog { max-width: min(1260px,calc(100% - 30px)); width: max-content; color: #f3faf2; background: #15322c; border: 1px solid #668075; border-radius: 13px; padding: 12px; }
dialog::backdrop { background: #081b17db; }
#viewer-image { max-height: 74vh; width: auto; margin: 0 auto; object-fit: contain; }
.viewer-head,.viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.viewer-head { padding-bottom: 8px; }
.viewer-bottom { padding-top: 9px; }
.viewer-bottom p { text-align: center; font-size: .95rem; }
dialog button { border: 0; font: inherit; font-weight: 650; font-size: .88rem; background: var(--accent); color: var(--ink); border-radius: 6px; padding: 6px 9px; cursor: pointer; }
dialog button:disabled { opacity: .48; cursor: default; }
@media (max-width: 800px) {
  .cards,.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-grid,.work-grid { gap: 24px; }
  .work-grid h1 { font-size: clamp(2.05rem,6vw,3.2rem); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 30px); }
  .top { min-height: 64px; gap: 8px; }
  .brand { gap: 7px; font-size: .84rem; }
  .brand span:first-child { width: 33px; height: 32px; }
  .top nav { gap: 11px; font-size: .79rem; }
  .hero-grid,.work-grid,.report { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 37px; }
  .work-grid { margin-top: 20px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
  .zoom { min-height: 90px; height: 111px; }
  .works { padding-block: 36px; }
  figcaption { font-size: .83rem; }
  .viewer-bottom { flex-wrap: wrap; }
  .viewer-bottom p { flex: 1 1 100%; order: -1; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
