@font-face {
  font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/eb-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Marcellus"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/marcellus.woff2") format("woff2");
}

:root {
  --paper: #f6f5f1;
  --text: #1b1c1f;
  --quiet: #6b6c70;
  --blue: #22418f;
  --rule: #1b1c1f;
  --pad: clamp(1.5rem, 5vw, 4.5rem);
}

* { 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;
  padding: clamp(1.75rem, 4vw, 3.25rem) var(--pad);
  background: var(--paper);
  color: var(--text);
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, p { margin: 0; font-weight: 400; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; }

::selection { background: var(--blue); color: #fff; }

.wordmark {
  display: flex; align-items: baseline; gap: .85em;
  font-family: "Marcellus", "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: .36em;
  text-transform: uppercase;
}
.wordmark svg { height: .54em; width: auto; flex: none; }

main {
  align-self: center;
  width: 100%;
  max-width: 33rem;
  margin-left: 38%;
  padding-block: 4.5rem;
}

h1 {
  font-size: clamp(1.5rem, 2.3vw, 1.8125rem);
  line-height: 1.38;
  letter-spacing: -.003em;
  margin-bottom: 1.75rem;
}

main span { white-space: nowrap; }

main p + p { margin-top: .9rem; }
main p { color: #3b3c40; }
main .contact { margin-top: 2.5rem; color: var(--text); }

/* thick-and-thin double rule */
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  position: relative;
  font-size: .9375rem;
  color: var(--quiet);
}
footer::before {
  content: ""; position: absolute; inset: -5px 0 auto 0;
  border-top: 2px solid var(--rule);
}
footer span { margin-inline: .35em; }

/* stepped crenellations, after Najdi mud-brick parapets, aligned to the text column */
.motif {
  position: absolute; left: 38%; bottom: calc(100% + 5px);
  width: 3.25rem; height: .375rem;
  color: var(--rule);
}

@media (max-width: 900px) {
  main { margin-left: 0; padding-block: 3.5rem; }
  .motif { left: 0; }
}
