:root {
  --ink: #1c1915;
  --muted: #3f3a34;
  --paper: #f3efe6;
  --paper-2: #e7e1d6;
  --rule: #cfc6b8;
  --accent: #1f4e4a;
  --mark: #e7c27a;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --focus: 2px solid var(--accent);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.5rem;
}

section[id],
div[id],
header[id] {
  scroll-margin-top: 3.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

img,
canvas {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 40;
}

.skip:focus {
  top: 0.5rem;
}

.banner {
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: #e5f0ea;
  color: var(--accent);
}

.banner--error {
  background: #f8e6dc;
  color: #7a2e12;
}

.portrait {
  background: linear-gradient(160deg, #d7e0dc, #c4b8a4 55%, #1f4e4a);
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 0.75rem;
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  background: #fffdf8;
  color: var(--ink);
}

button {
  justify-self: start;
  padding: 0.65rem 1rem;
  border: 0;
  background: var(--accent);
  color: var(--paper);
  cursor: pointer;
}

.site-foot {
  text-align: center;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-foot p {
  margin: 0;
}

.site-foot__label {
  margin-bottom: 0.6rem !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.site-foot__links a {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.site-foot__kind {
  font-size: 0.75rem;
  opacity: 0.75;
}

.site-foot__detail {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-hero-canvas] {
    display: none;
  }
}
