:root {
  --ink: #0b1b2b;
  --body: #24384b;
  --muted: #5a6a79;
  --paper: #f6f2ea;
  --card: #fffdf8;
  --line: #e2dacb;
  --field: #cfc6b4;
  --accent: #14507a;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header,
main,
footer {
  width: min(100% - 2.5rem, 66rem);
  margin-inline: auto;
}

header { padding: 1.75rem 0 1.25rem; }

.mark {
  color: var(--ink);
  font: 600 0.9rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.42em;
  text-decoration: none;
  text-transform: uppercase;
}

main { padding: 0.5rem 0 3rem; }

main.plain {
  align-self: center;
  padding-bottom: 6rem;
}

figure { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }

figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62svh;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 62% 30%;
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px -32px rgba(11, 27, 43, 0.5);
}

.columns {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

h1 {
  margin: 0 0 1.5rem;
  font: 500 clamp(2rem, 4.6vw, 3.1rem)/1.1 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 1.25rem;
  font: 500 1.45rem/1.2 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

p {
  margin: 0 0 1.1rem;
  max-width: 34rem;
  color: var(--body);
}

a { color: var(--accent); }

.note {
  margin: 1.75rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

form { display: grid; }

label {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 0.6rem;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(20, 80, 122, 0.35);
  outline-offset: 2px;
  border-color: var(--accent);
}

button {
  justify-self: start;
  padding: 0.75rem 1.6rem;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

button:hover { background: var(--accent); }

button:disabled {
  background: var(--muted);
  cursor: default;
}

.small {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Trap for automated form fillers; people never see or reach it. */
.extra {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 54rem) {
  .columns { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }

  main { padding-bottom: 4rem; }
}
