* { box-sizing: border-box; }
:root {
    color-scheme: light;
    --paper: #f5f2e8;
    --ink: #1f2920;
    --muted: #526053;
    --line: #d4d9ca;
    --accent: #2d543a;
    --lime: #dcea94;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.6 "Atkinson Hyperlegible Next", system-ui, sans-serif;
}
.site-header {
    padding: 1.2rem clamp(1.2rem, 6vw, 5rem);
    border-bottom: 1px solid var(--line);
}
.site-header a { color: inherit; text-decoration: none; font-weight: 750; }
.site-header span, .home span { color: #688145; }
main { width: min(100% - 2.4rem, 58rem); margin: clamp(1.8rem, 7vw, 5rem) auto 5rem; }
h1, h2 { line-height: 1.12; margin: 0 0 .8rem; overflow-wrap: anywhere; }
h1 { font: 500 clamp(2.25rem, 7vw, 4.5rem)/1.03 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #617a3a; outline-offset: 3px; }
.home {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: clamp(1.6rem, 7vw, 5rem);
    border-radius: 1.5rem;
    background: #e9edd9;
    border: 1px solid #d9dfc9;
}
.home > div { flex: 1 1 24rem; min-width: 0; }
.home h1 { font-size: clamp(4rem, 13vw, 9rem); margin-bottom: 1.5rem; }
.home p { max-width: 30rem; font-size: clamp(1.05rem, 3vw, 1.35rem); }
.home-portrait {
    display: block;
    width: clamp(7rem, 25vw, 17rem);
    max-width: 100%;
    height: auto;
    margin-inline-start: auto;
    border-radius: .7rem;
}
.panel { margin-top: 1.35rem; padding: clamp(1.15rem, 4vw, 2rem); background: #fffdf7; border: 1px solid var(--line); border-radius: 1rem; }
.narrow { max-width: 32rem; margin-inline: auto; }
.project { padding: .6rem 0 1rem; }
.project h1 { font-size: clamp(1.65rem, 5vw, 2.85rem); }
.project-date { color: var(--muted); font-size: .9rem; }
.project-intro.with-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: 1.25rem; align-items: start; }
.project-photo { width: fit-content; max-width: 100%; }
.feedback-shortcut { display: none; }
@media (max-width: 40rem) {
    .project-intro.with-photo { grid-template-columns: minmax(0, 1fr); }
    .feedback-shortcut {
        display: flex;
        justify-content: center;
        position: sticky;
        bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
        z-index: 1;
    }
}
.multiline { white-space: pre-wrap; }
.files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
figure { margin: 0; background: #fffdf7; border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
figure img { display: block; width: 100%; max-height: 34rem; object-fit: contain; }
figcaption, .file { padding: .8rem 1rem; overflow-wrap: anywhere; }
.file { background: #fffdf7; border: 1px solid var(--line); border-radius: .8rem; align-self: start; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
small { font-weight: 400; color: var(--muted); }
input, textarea {
    width: 100%;
    padding: .7rem .8rem;
    border: 1px solid #a9b5a4;
    border-radius: .5rem;
    background: white;
    color: var(--ink);
    font: inherit;
}
textarea { resize: vertical; }
button, .button {
    display: inline-block;
    width: fit-content;
    padding: .55rem 1rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { background: #213f2a; }
.secondary { background: transparent; color: var(--accent); border-color: #a9b5a4; }
.secondary:hover { background: #e9edd9; }
.notice, .error { padding: .65rem .85rem; border-radius: .5rem; }
.notice { background: var(--lime); }
.error { color: #712c24; background: #fae5df; }
.toolbar, .qr { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.toolbar { justify-content: space-between; }
.qr img { background: white; }
.qr .button { margin: 0 .3rem .4rem 0; }
.url { color: var(--muted); }
.rows { margin: .5rem 0 0; padding: 0; list-style: none; }
.rows li, .message { border-top: 1px solid var(--line); padding: .6rem 0; }
form + h2 { margin-top: 1.5rem; }
.message small { margin-left: .45rem; }

