/* ---------------------------------------------------------------
   Theme. Almost all visual choices live in this block — change the
   values here and the whole site follows. Nothing below needs edits
   for a normal restyle.
   --------------------------------------------------------------- */
:root {
  --bg:          #fbfaf8;
  --surface:     #f1efea;
  --fg:          #16150f;
  --muted:       #6a675e;
  --line:        #ddd9d0;
  --accent:      #16150f;   /* buttons, links on hover */
  --accent-fg:   #fbfaf8;   /* text on accent */

  --font-head: "Helvetica Neue", Arial, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  --tracking:  0.14em;      /* letter-spacing on headings/nav */

  --measure:  62rem;        /* max page width */
  --gap:      1.5rem;
  --radius:   0;
  --pad-y:    4rem;         /* vertical rhythm between sections */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121211;
    --surface:   #1c1c1a;
    --fg:        #ece9e2;
    --muted:     #9a968c;
    --line:      #33322e;
    --accent:    #ece9e2;
    --accent-fg: #121211;
  }
}

/* --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, nav, .btn, label, legend {
  font-family: var(--font-head);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  font-weight: 500;
}

h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 1rem; }
h3 { font-size: 0.85rem; margin: 0 0 0.35rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--pad-y) 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.status { font-family: var(--font-head); letter-spacing: var(--tracking); text-transform: uppercase; font-size: 0.7rem; }

/* Header / nav */
.site-head {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.site-head .wrap { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: baseline; justify-content: space-between; }
.brand { font-family: var(--font-head); letter-spacing: var(--tracking); text-transform: uppercase; text-decoration: none; font-size: 1rem; }
.site-head nav { display: flex; gap: 1.25rem; font-size: 0.75rem; }
.site-head nav a { text-decoration: none; color: var(--muted); }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--fg); }

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--gap); justify-content: space-between; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 0.75rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--accent); color: var(--accent-fg); }

/* Generic grid, used by the gallery and the info columns */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.grid figure { margin: 0; }
.grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); border-radius: var(--radius); }
.grid figcaption { font-size: 0.8rem; color: var(--muted); padding-top: 0.4rem; }

/* Two-column split, used on the home and about pages */
.split { display: grid; gap: calc(var(--gap) * 2); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 1fr; } }

.portrait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface); border-radius: var(--radius); }

/* Form */
form { max-width: 38rem; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 2rem; padding: 1.5rem 0 0; }
legend { font-size: 0.75rem; color: var(--muted); padding-right: 0.75rem; }
.field { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.7rem; margin-bottom: 0.35rem; }
.hint { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 0; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: auto; margin-top: 0.35rem; }
.check label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; }

#form-status { margin-top: 1rem; font-size: 0.95rem; }
#form-status[data-state="error"] { color: #b3261e; }
