:root {
  --ink: #20342d;
  --muted: #465750;
  --cream: #f6f4ee;
  --paper: #fff;
  --line: #bcc6bf;
  --gold: #8e6b30;
  --pale: #e9efeb;
  color: var(--ink);
  background: var(--cream);
  font: 1.0625rem/1.6 Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: #784135; }
:focus-visible { outline: 3px solid #a15c19; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; padding: .6rem; background: var(--paper); transform: translateY(-140%); }
.skip:focus { transform: translateY(0); }
.site-header {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 1rem 4%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .45rem 1.25rem;
}
.brand { font: 1.12rem/1.35 Georgia, serif; text-decoration: none; }
.brand small { display: block; color: var(--muted); font: .66rem/1.7 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .15rem 1rem; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; font-size: .88rem; }
.wrap { width: min(70rem, 100% - 2rem); margin-inline: auto; }
h1, h2 { font: 400 clamp(2.1rem, 5.8vw, 4.6rem)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
p { margin: 0 0 1rem; }
em { color: #565c47; font-weight: inherit; }
.eyebrow { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .65rem; }
.hero { padding: clamp(2.1rem, 7vw, 5rem) 0 1.5rem; }
.hero > p { max-width: 56ch; }
.hero-photo { display: block; width: 100%; max-height: 28rem; object-fit: cover; }
.visitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.visitor-grid h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
.visitor-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: start;
  gap: 1.5rem;
}
.visitor-photo { display: block; width: 100%; height: auto; }
.visitor-figure { margin: 0; }
.visitor-figure figcaption { color: var(--muted); margin-top: .4rem; }
.photo-grid .visitor-photo { aspect-ratio: 3 / 2; object-fit: cover; }
.contact-list { list-style: none; padding: 0; overflow-wrap: anywhere; }
.contact-list li { margin-bottom: .8rem; }
.profile-search { max-width: 45rem; margin-block: 1.25rem; }
.search-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.search-controls input { flex: 1 1 13rem; margin: 0; }
.section { margin-block: 2rem; }
.panel { padding: clamp(1rem, 3.5vw, 2rem); background: var(--paper); border: 1px solid var(--line); }
.auth-panel { max-width: 38rem; }
.reading { max-width: 48rem; }
.reading h2 { margin-top: 1.6rem; }
.reading section { border-top: 1px solid var(--line); margin-block: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin: 1rem 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .85rem;
  border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.button:hover { color: var(--paper); background: #335343; }
.button.secondary { color: var(--ink); background: var(--paper); }
.button[hidden] { display: none; }
.button:disabled, fieldset:disabled .button { opacity: .6; cursor: default; }
label { display: block; font-weight: 700; margin: .65rem 0 .18rem; }
input:not([type=checkbox]), textarea, select {
  display: block; width: 100%; max-width: 48rem; min-height: 44px; margin: 0 0 .55rem;
  padding: .5rem .6rem; border: 1px solid #62746a; border-radius: 4px; background: var(--paper); color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 44px; margin-block: .3rem; font-weight: 500; }
.check input { width: 1.22rem; height: 1.22rem; flex: 0 0 auto; accent-color: var(--ink); }
.small { color: var(--muted); font-size: .91rem; }
.status { color: var(--ink); font-weight: 700; min-height: 1.3rem; margin-top: .55rem; }
.preview-note { background: var(--pale); border-left: 3px solid var(--gold); padding: .75rem 1rem; }
fieldset { border: 1px solid var(--line); padding: 1rem; margin: 0 0 1rem; min-width: 0; }
legend { padding-inline: .35rem; font-weight: 700; }
.edit-item { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.photo-editor { padding: .75rem; }
.photo-editor img { max-width: min(100%, 16rem); max-height: 19rem; object-fit: contain; }
.portraits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.portraits figure { margin: 0; }
.portraits img { display: block; max-width: 100%; max-height: 26rem; object-fit: contain; }
.portraits figcaption { margin-top: .35rem; color: var(--muted); }
.story-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-list { list-style: none; padding: 0; }
.profile-list li { border-top: 1px solid var(--line); padding: .9rem 0; }
.profile-list h2 { font-size: 1.6rem; margin-bottom: .4rem; }
footer { background: var(--ink); color: var(--paper); padding-block: 1.5rem; margin-top: 2.5rem; }
footer a:hover { color: #ffe1a6; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; font-size: .92rem; }
.credit { display: flex; align-items: center; gap: .5rem; }
.credit img { object-fit: contain; }
@media (max-width: 38rem) {
  .site-header nav { gap: .15rem .75rem; }
  .wrap { width: calc(100% - 1.25rem); }
  .footer-inner { flex-direction: column; }
}
