:root {
    color-scheme: light;
    --ink: #132735;
    --muted: #465c67;
    --paper: #fbfaf7;
    --accent: #13655c;
    --line: #cdd8d5;
    font-family: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid #b45e19; outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2.9rem, 5.4vw, 5.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.23rem; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .6rem; left: .6rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.6rem; }
.header-inner, .footer-inner { justify-content: space-between; padding-block: 1.25rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; font-weight: 700; }
.brand-mark { display: inline-block; width: .75rem; height: .75rem; background: var(--accent); transform: rotate(45deg); }
.site-nav a, .site-footer a { font-size: .91rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.hero { background: #102b39; color: #f6f8f4; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.8rem, 9vw, 7.5rem); }
.eyebrow { margin-bottom: .9rem; color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #9ed8c9; }
.hero-copy { color: #d1e0e2; max-width: 43ch; margin: 1.35rem 0 1.8rem; font-size: 1.06rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; padding: .73rem 1.15rem; border: 0; border-radius: .2rem; background: var(--accent); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #104b45; color: white; }
.hero .button { background: #a7e0ce; color: #102b39; }
.hero .button:hover { background: #d0f2e7; }
.hero-figure { padding: 1.5rem; border: 1px solid #42606a; background: #153541; }
.plot { position: relative; aspect-ratio: 1.6; border-left: 1px solid #68848a; border-bottom: 1px solid #68848a; background-image: linear-gradient(to right, #36535f 1px, transparent 1px), linear-gradient(to bottom, #36535f 1px, transparent 1px); background-size: 20% 20%; }
.plot::before { content: ""; position: absolute; inset: 0; background: #a7e0ce; clip-path: polygon(4% 78%, 95% 15%, 95% 16%, 4% 79%); opacity: .8; }
.plot-dot { position: absolute; top: var(--y); left: var(--x); width: .4rem; height: .4rem; border-radius: 50%; background: #9ed8c9; transform: translate(-50%, -50%); }
figcaption { color: #c6d9dc; margin-top: .9rem; font-size: .78rem; }
.section, .contact-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.services article { border-top: 2px solid #73a698; padding-top: 1.2rem; }
.services p, .work-list p { margin-top: .65rem; color: var(--muted); }
.editorial { display: grid; grid-template-columns: 1fr 1.55fr; gap: 2rem 4rem; }
.work-section { background: #ecf1ee; }
.work-list article { padding-block: 1.15rem; border-top: 1px solid #bbcfc8; }
.bio { max-width: 60ch; font-size: 1.13rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; }
.profile-links a, .contact-section a { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.contact-section { background: #dcece6; }
.contact-section p + a { display: inline-block; margin-top: .65rem; }
.site-footer { border-top: 1px solid var(--line); }
.login-panel { max-width: 29rem; margin-inline: auto; }
.login-panel h1, .admin-dashboard h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.login-form { display: grid; gap: .55rem; margin-top: 1.5rem; }
.login-form input { width: 100%; padding: .65rem; border: 1px solid #81948f; border-radius: .2rem; font: inherit; }
.login-form .button { justify-self: start; margin-top: .5rem; }
.form-error { color: #8c3024; margin-top: .8rem; }
.text-button { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.admin-dashboard h1 + p { margin-top: .75rem; }
.app-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; padding: 0; margin-top: 1.8rem; list-style: none; }
.app-links a { display: flex; justify-content: space-between; padding: .9rem 1.15rem; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.app-links a:hover { border-color: var(--accent); }
@media (max-width: 760px) {
    .hero-inner, .services, .editorial { grid-template-columns: 1fr; }
    .hero-figure { max-width: 31rem; }
}
@media (max-width: 420px) {
    .wrap { width: calc(100% - 2rem); }
    .site-nav { column-gap: .9rem; }
    .hero-figure { padding: 1rem; }
}
