:root {
  color-scheme: light;
  --paper: #e9efe9;
  --ink: #1d302b;
  --muted: #61716a;
  --line: #cbd6ce;
  --accent: #c34e32;
  --accent-dark: #9c3924;
  --white: #fffefa;
  --font-body: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-display: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
.topbar { width: min(100% - 56px, 1240px); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font: 800 12px var(--font-display); letter-spacing: 0; text-decoration: none; }
.wordmark span { padding-left: 7px; color: var(--accent); font-size: 9px; }
.admin-link,.text-link { color: var(--muted); font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.admin-link:hover,.text-link:hover { color: var(--accent-dark); }
.page-shell { width: min(100% - 56px, 1180px); min-height: calc(100vh - 142px); margin: auto; padding: 72px 0 92px; }
.profile-layout { display: grid; grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr); gap: clamp(40px, 8vw, 112px); align-items: start; }
.portrait { position: sticky; top: 36px; margin: 0; background: #d4dfd6; aspect-ratio: 4 / 5; max-height: 690px; overflow: hidden; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-copy { padding-top: 11px; }
.eyebrow { margin: 0 0 14px; color: var(--accent-dark); font: 700 11px var(--font-display); letter-spacing: 0; text-transform: uppercase; }
h1,h2,p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 12px; font: 700 clamp(38px, 5vw, 68px)/1.08 var(--font-display); letter-spacing: 0; overflow-wrap: anywhere; }
.headline { margin: 0; color: var(--muted); font-size: 19px; }
.content-section { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
h2 { margin-bottom: 13px; font: 700 13px var(--font-display); letter-spacing: 0; text-transform: uppercase; }
.prose { max-width: 660px; margin: 0; color: #34463f; white-space: normal; }
.facts,.links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 19px; }
.facts li::before { position: absolute; top: 0.7em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ''; }
.links a { text-decoration-color: #a7b5aa; text-underline-offset: 4px; }
.links a:hover { color: var(--accent-dark); }
.empty-state { max-width: 700px; padding: 70px 0; }
.empty-state h1 { font-size: clamp(38px, 5vw, 64px); }
.empty-state p:last-child { color: var(--muted); }
.site-footer { width: min(100% - 56px, 1240px); margin: auto; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.admin-page { background: #f1f3ef; }
.admin-shell { width: min(100% - 40px, 760px); margin: 48px auto 90px; }
.admin-panel { padding: clamp(24px, 5vw, 50px); background: var(--white); border: 1px solid #dfe5df; }
.login-panel { max-width: 500px; margin: 10vh auto; }
.admin-panel h1 { margin-bottom: 28px; font-size: 34px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h1 { margin-bottom: 12px; }
.privacy-note { margin: 0 0 30px; padding: 12px 15px; border-left: 3px solid var(--accent); background: #f8f1eb; color: #55453e; font-size: 13px; }
form { display: grid; gap: 9px; }
label { margin-top: 13px; font-size: 13px; font-weight: 700; }
label span { padding-left: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
input,textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #c9d2ca; border-radius: 2px; background: #fff; color: var(--ink); font: 14px/1.5 var(--font-body); }
input:focus,textarea:focus { outline: 2px solid #91a79a; outline-offset: 1px; }
textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row > div { min-width: 0; }
.photo-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px; margin-top: 15px; padding: 18px 0; border-top: 1px solid #e0e5df; border-bottom: 1px solid #e0e5df; }
.photo-field label { margin: 0; }
.photo-field p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.photo-field input { max-width: 290px; padding: 7px; font-size: 12px; }
.photo-field img { grid-column: 1 / -1; width: 110px; height: 130px; object-fit: cover; }
.form-actions { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.button { min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 2px; font: 700 13px var(--font-body); cursor: pointer; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: #324b41; }
.button-danger { border-color: #d8aaa0; background: #fff; color: var(--accent-dark); }
.button-danger:hover { background: #fbefec; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--paper); }
.form-message { min-height: 24px; margin: 14px 0 0; color: var(--accent-dark); font-size: 13px; }
.form-message[data-kind="success"] { color: #2f6a4b; }
[hidden] { display: none !important; }

@media (max-width: 700px) {
  .topbar,.page-shell,.site-footer { width: min(100% - 36px, 1180px); }
  .topbar { min-height: 66px; }
  .page-shell { min-height: calc(100vh - 132px); padding: 36px 0 60px; }
  .profile-layout { grid-template-columns: 1fr; gap: 30px; }
  .portrait { position: static; width: min(100%, 420px); max-height: 500px; }
  .profile-copy { padding-top: 0; }
  .content-section { margin-top: 32px; }
  .admin-shell { width: min(100% - 24px, 760px); margin-top: 22px; }
  .admin-panel { padding: 23px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 4px; }
  .photo-field { grid-template-columns: 1fr; }
  .photo-field input { max-width: 100%; }
  .form-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .profile-copy,.empty-state { animation: reveal 420ms ease-out both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}