:root {
  color-scheme: light;
  --ink: #101b32;
  --text: #2c3c56;
  --muted: #4b5d76;
  --canvas: #f5f7fc;
  --white: #ffffff;
  --line: #d7e0ef;
  --control-line: #7386a3;
  --accent: #234cce;
  --accent-hover: #193cae;
  --accent-tint: #eaf0ff;
  --night: #1b3570;
  --night-text: #dce7fa;
  --sky: #a7caff;
  --sky-hover: #c7deff;
  --shell: 75rem;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 5rem), var(--shell)); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; padding: .75rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; z-index: 2; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-layout, .footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-layout { min-height: 5.35rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: 1.1rem; font-weight: 750; line-height: 1.15; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; background: var(--accent); color: var(--white); border-radius: .25rem; font-size: .92rem; letter-spacing: -.045em; }
.brand-detail { display: block; margin-top: .2rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); }
nav a { text-decoration: none; font-size: .95rem; font-weight: 650; }
nav a:hover, nav [aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { padding: .6rem 1rem; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--control-line); border-radius: .25rem; }

.hero { background: linear-gradient(115deg, var(--ink) 15%, var(--night) 100%); color: var(--white); }
.hero-layout { display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5.75rem); }
.label { display: flex; align-items: center; gap: .65rem; font-size: .875rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.label span { width: .9rem; height: .15rem; background: currentColor; }
.hero .label { color: var(--sky); }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 500; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
h1 { margin-block: 1rem 1.3rem; font-size: clamp(3rem, 5.35vw, 5.4rem); }
h2 { margin-top: .75rem; font-size: clamp(2.55rem, 4vw, 4.15rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
.hero-intro { max-width: 32rem; color: var(--night-text); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.85rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: .25rem; font-weight: 750; font-size: .95rem; text-decoration: none; }
.primary { background: var(--accent); color: var(--white); }
.primary:hover { background: var(--accent-hover); }
.hero .primary { background: var(--sky); color: var(--ink); }
.hero .primary:hover { background: var(--sky-hover); }
.secondary { border-color: var(--sky); }
.secondary:hover { background: var(--night); }
.hero-image { position: relative; margin: 0; }
.hero-image img { width: 100%; aspect-ratio: 6 / 5; height: auto; object-fit: cover; object-position: 57% 50%; border-radius: .25rem; }
.hero-image figcaption { position: absolute; right: .75rem; bottom: .75rem; background: var(--ink); color: var(--white); border-radius: .15rem; font-size: .8rem; padding: .35rem .55rem; }

.section { padding-block: clamp(3.5rem, 6.5vw, 6rem); }
.about, .contact { background: var(--white); }
.about-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(1.5rem, 5vw, 5rem); }
.about h2 { max-width: 12ch; }
.body-copy { padding-top: .25rem; }
.body-copy p, .contract-copy > p:not(.contract-status), address { color: var(--text); font-size: 1.08rem; line-height: 1.65; }
.body-copy p + p { margin-top: .75rem; }
.text-link { display: inline-block; margin-top: .95rem; color: var(--accent); font-size: 1rem; font-weight: 750; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.work { background: var(--accent-tint); }
.contract { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); margin-top: 1.75rem; padding: clamp(1.25rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--line); border-radius: .25rem; }
.contract-status { margin-bottom: .7rem; color: var(--accent); font-size: .875rem; font-weight: 750; }
.contract h3 { margin-bottom: .65rem; font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.contract-facts { margin: 0; align-self: center; }
.contract-facts div { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.contract-facts div:first-child { border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: .875rem; font-weight: 650; }
dd { margin: .15rem 0 0; font-weight: 700; }
address { margin-top: .5rem; font-style: normal; }

.site-footer { background: var(--ink); color: var(--white); padding-block: 1.4rem; }
.site-footer .brand-mark { background: var(--sky); color: var(--ink); }
.site-footer p { color: var(--night-text); font-size: .95rem; }

@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero-layout, .about-layout, .contact-layout, .contract { grid-template-columns: 1fr; }
  .hero-image img { aspect-ratio: 16 / 10; }
}

@media (max-width: 34rem) {
  .header-layout { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: .85rem; gap: .7rem; }
  nav { width: 100%; flex-wrap: wrap; gap: .5rem 1.5rem; }
  nav a { padding-block: .4rem; }
  .nav-contact { margin-left: auto; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
}

.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.page-intro h1 { margin-bottom: 1.7rem; }
.page-intro .label { margin-top: 1rem; }
.empty, .project-description { margin-top: 1rem; }
.contact-method .text-link { margin-top: .45rem; }
.narrow { max-width: 48rem; }
.panel { padding: clamp(1.1rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: .25rem; }
.form-stack { display: grid; gap: 1rem; }
.form-title { margin: 0; font-family: inherit; font-size: 1.25rem; font-weight: 750; line-height: 1.25; letter-spacing: 0; }
.field { display: grid; gap: .35rem; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: .65rem .75rem; background: var(--white); color: var(--ink); border: 1px solid var(--control-line); border-radius: .25rem; font: inherit; font-weight: 500; }
.field textarea { resize: vertical; }
.form-note { color: var(--muted); line-height: 1.5; }
button.button { cursor: pointer; font-family: inherit; }
.outline { border-color: var(--control-line); background: transparent; color: var(--accent); }
.outline:hover { background: var(--accent-tint); }
.notice { padding: .7rem .9rem; background: var(--accent-tint); border-left: .25rem solid var(--accent); }
.notice.error { background: #fff1f3; color: #9f243d; border-color: currentColor; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.admin-bar, .admin-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-bar { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.admin-bar nav { width: auto; }
.admin-list { display: grid; gap: .75rem; list-style: none; padding: 0; }
