:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --surface: #fffefb;
  --ink: #211f1c;
  --muted: #645f57;
  --line: #d1ccc2;
  --red: #ad381f;
  --red-dark: #832815;
  --dark: #24211d;
  --focus: #245ca8;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.55; }
[hidden], .hidden { display: none !important; }
body, input, select, textarea, button { font-size: 1rem; }
a { color: var(--red); text-underline-offset: .17em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topbar {
  background: var(--dark); color: var(--paper); padding: 1.1rem max(1.1rem, calc((100% - 63rem) / 2));
  display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.4rem; flex-wrap: wrap;
}
.topbar .container { width: 100%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; }
.topbar a { color: inherit; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; font-size: 1.45rem; line-height: 1.2; font-weight: 800; letter-spacing: -.065em; text-decoration: none; }
.brand small, .brand span { font-size: .8rem; letter-spacing: .055em; font-weight: 600; }
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.2rem; font-size: .94rem; }
.topbar nav a, .topbar nav button { display: inline-flex; align-items: center; min-height: 2.3rem; }
.topbar nav form { margin: 0; }
.topbar button { background: transparent; color: inherit; border: 1px solid #82796e; border-radius: .25rem; padding: .35rem .65rem; cursor: pointer; }
.shell { width: min(100% - 2.3rem, 63rem); margin: 0 auto; padding: clamp(1.6rem, 4vw, 3.5rem) 0 4rem; }
h1, h2, h3 { margin-top: 0; line-height: 1.16; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin-bottom: 1.2rem; font-size: clamp(2.35rem, 6vw, 4.1rem); letter-spacing: -.048em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin-bottom: 1rem; letter-spacing: -.028em; }
h3 { font-size: 1.4rem; margin-bottom: .65rem; }
p { margin: 0 0 1rem; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.05rem, 3vw, 1.85rem); border-radius: .45rem; margin: 0 0 1.15rem; }
.panel > :last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 19rem),1fr)); align-items: start; gap: 1.1rem; }
.grid > .panel { margin-bottom: 0; }
.grid + .panel, .grid + .grid { margin-top: 1.1rem; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem 1rem; }
.row > * { min-width: 0; flex: 1 1 9rem; }
label, legend { display: block; font-weight: 650; line-height: 1.4; margin-bottom: .55rem; }
label > input, label > select, label > textarea { margin-top: .32rem; }
input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]),
select, textarea, .input {
  width: 100%; min-height: 2.8rem; border: 1px solid #aaa395; border-radius: .25rem; padding: .55rem .7rem;
  color: var(--ink); background: #fff; font: inherit; font-weight: 400; line-height: 1.45; appearance: auto;
}
input::placeholder, textarea::placeholder { color: #746f67; opacity: 1; }
input[type=file] { overflow: hidden; font-size: .93rem !important; }
input[type=file]::file-selector-button { border: 1px solid var(--line); padding: .35rem .6rem; border-radius: .2rem; background: var(--paper); color: var(--ink); margin-right: .65rem; }
input[readonly] { background: var(--paper) !important; }
textarea { resize: vertical; min-height: 6.3rem; }
fieldset { min-width: 0; margin: 1rem 0; border: 1px solid var(--line); padding: .8rem 1rem; }
fieldset legend { padding: 0 .4rem; }
.check, label:has(> input[type=checkbox]) { display: flex; gap: .55rem; align-items: flex-start; font-weight: 450; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--red); margin: .15rem 0 0; flex: none; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.btn, main button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1rem;
  background: var(--red); color: #fff; font: inherit; font-size: .98rem; font-weight: 640;
  border: 1px solid var(--red); border-radius: .25rem; cursor: pointer; text-decoration: none; line-height: 1.4;
}
.btn:hover, main button:hover, input[type=submit]:hover { background: var(--red-dark); color: #fff; }
.secondary, .btn.secondary { border-color: #a99f91; background: transparent; color: var(--ink); }
.secondary:hover { background: #ede7de; color: var(--ink); }
.quiet, .btn.quiet { border-color: transparent; background: transparent; padding-inline: .4rem; color: var(--red); text-decoration: underline; }
.quiet:hover { background: transparent; color: var(--red-dark); }
button:disabled, input:disabled { opacity: .6; cursor: wait; }
.notice, .error { padding: .8rem 1rem; margin: 0 0 1rem; border-left: 4px solid #4e6c55; background: #edf2e9; overflow-wrap: anywhere; }
.error { background: #faebe6; border-color: var(--red); color: #6a2418; }
.subtle, .help, small { font-size: .93rem; color: var(--muted); }
.pill { display: inline-block; padding: .12rem .5rem; background: #efebe4; border-radius: 1rem; color: #514c45; font-size: .83rem; white-space: nowrap; }
.work-list, .team-list { display: grid; margin: 0; padding: 0; list-style: none; }
.work-row { display: flex; align-items: center; gap: .7rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.work-row:last-child { border-bottom: none; }
.work-row > div:not(.thumb) { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.work-row a:last-child { margin-left: auto; }
.thumb { width: 3.5rem; height: 3.5rem; flex: none; object-fit: contain; background: #eeeae3; }
.work-row h3, .work-row p { margin-bottom: .12rem; }
.team-list > * { border-top: 1px solid var(--line); padding: .7rem 0; overflow-wrap: anywhere; }
.team-list form { display: inline; }
.preview, #photo-preview { display: block; max-width: min(22rem,100%); max-height: 19rem; margin: .8rem 0; object-fit: contain; }
.preview:not([src]), #photo-preview:not([src]) { display: none; }
summary { cursor: pointer; padding: .5rem 0; font-weight: 650; color: var(--red); }
details[open] > summary { margin-bottom: .55rem; }
code { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 36rem) {
  .topbar { gap: .45rem; }
  .shell { width: calc(100% - 1.5rem); padding-top: 1.5rem; }
  .row > * { flex-basis: min(7rem,100%); }
  .work-row { gap: .55rem; }
  .thumb { width: 2.85rem; height: 2.85rem; }
}
