:root {
  color-scheme: light;
  --paper: #f6f4eb;
  --ink: #21231d;
  --muted: #53564c;
  --line: #d3d2c6;
  --blue: #263ca3;
  --blue-dark: #1d2c7a;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 20px; top: 12px; padding: 10px 14px; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 730; letter-spacing: .1em; }
.mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.mark::before, .mark::after { content: ""; position: absolute; background: var(--blue); inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.mark::before { width: 22px; height: 1px; }
.mark::after { width: 1px; height: 22px; }
nav { display: flex; gap: clamp(18px, 4vw, 48px); color: var(--muted); font-size: 14px; }
nav a { padding-block: 10px; }
nav a:hover, .brand:hover, .text-link:hover { color: var(--blue); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding-block: clamp(43px, 7vw, 100px) clamp(48px, 6vw, 84px);
}
.hero-copy { padding-bottom: 23px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
}
.eyebrow span { width: 21px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); }
h1 { margin-block: 20px 24px; font-size: clamp(53px, 6vw, 94px); line-height: 1.13; font-weight: 800; letter-spacing: -.075em; }
.comma, .stop { color: var(--blue); }
.intro { color: var(--muted); line-height: 1.9; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 29px; }
.button, .text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; }
.button { min-height: 45px; padding: 10px 16px; background: var(--blue); color: #fff; }
.button:hover { background: var(--blue-dark); }
.button span, .text-link span { font-size: 17px; line-height: 1; }

.photo { position: relative; background: #40534c; }
.photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.viewfinder { position: absolute; inset: 11px 11px auto auto; width: 19px; height: 19px; border-top: 1px solid #fff9; border-right: 1px solid #fff9; }
figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: .06em; }

.section { padding-block: 35px 47px; border-top: 1px solid var(--line); scroll-margin-top: 22px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.05em; }
.section-heading p, .about-note { color: var(--muted); font-size: 14px; }
.project { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 68px); align-items: center; }
.project-art { display: grid; min-height: 234px; place-items: center; padding: 28px; background: #e8e8f0; }
.mini-window { width: min(315px, 100%); border: 1px solid #3d4a9a; background: var(--paper); box-shadow: 9px 9px 0 #283fa229; }
.mini-bar { display: flex; gap: 5px; height: 20px; padding: 7px 8px; border-bottom: 1px solid #3d4a9a; }
.mini-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.mini-content { display: grid; grid-template-columns: .8fr 1fr; gap: 13px; padding: 14px; }
.mini-lines { align-self: center; display: grid; gap: 6px; }
.mini-lines i { width: 90%; height: 6px; background: var(--ink); }
.mini-lines i:nth-child(2) { width: 73%; }
.mini-lines i:nth-child(3) { width: 35%; height: 9px; margin-top: 5px; background: var(--blue); }
.mini-photo { min-height: 80px; background: #40534c url("assets/mountain-dawn.jpg") center / cover; }
h3 { font-size: 28px; line-height: 1.3; }
.project-copy > p { max-width: 35em; margin-top: 10px; color: var(--muted); }
summary { cursor: pointer; }
.project-copy details { margin-top: 16px; }
.project-copy summary { width: fit-content; padding-block: 4px; color: var(--blue); font-size: 14px; font-weight: 650; }
.project-copy details p { max-width: 35em; margin-top: 8px; color: var(--muted); font-size: 14px; }
.entry { border-bottom: 1px solid var(--line); }
.entry:first-of-type { border-top: 1px solid var(--line); }
.entry summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-block: 18px; font-family: var(--serif); font-size: clamp(18px, 3vw, 24px); font-weight: 700; list-style: none; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: ""; width: 9px; height: 9px; margin-right: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; color: var(--blue); transform: translateY(-2px) rotate(45deg); }
.entry[open] summary::after { transform: translateY(2px) rotate(225deg); }
.entry summary:hover { color: var(--blue); }
.entry-body { max-width: 40em; padding-bottom: 21px; color: var(--muted); }
.entry-body p + p, .about-note { margin-top: 8px; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; padding-block: 20px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 64px); }
  h1 { font-size: clamp(44px, 7.3vw, 72px); }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 64px; }
  .brand { font-size: 14px; letter-spacing: .04em; }
  .mark { width: 15px; height: 15px; }
  .mark::before { width: 18px; }
  .mark::after { height: 18px; }
  nav { gap: 15px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(50px, 13vw, 75px); }
  .desktop-break { display: none; }
  .section { padding-block: 30px 36px; }
  .section-heading { margin-bottom: 20px; }
  .project, .about { grid-template-columns: 1fr; }
  .project-art { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
