/* Order of Avalon — public site
   Sunlit parchment, iron ink, a thread of gold.
   Seal red is an accent, used sparingly. */

:root {
  --parchment: #f6f0e4;
  --parchment-top: #fbf6ec;
  --parchment-deep: #efe4d2;
  --ink: #2c261f;
  --ink-soft: #5c5346;
  --seal: #9e1a15;
  --seal-deep: #7c1410;
  --gold: #a6843d;
  --gold-deep: #6e5424;
  --line: #e0d4c0;
  --field: #fbf8f2;
  --field-line: #cfc3ad;
  --measure: 38rem;
  --page: 56rem;
}

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

html {
  color-scheme: light;
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--parchment);
  background-image: linear-gradient(180deg, var(--parchment-top) 0%, var(--parchment) 42%, var(--parchment-deep) 100%);
  font-family: "Source Serif 4", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
}

::selection {
  background: #e7d3a1;
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--parchment-top);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: relative;
  background: var(--parchment-top);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
}

.header-inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: 0.95rem 1.25rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.seal {
  height: 3.75rem;
  width: auto;
  flex: none;
  display: block;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.name,
.footer-mark,
h1,
h2,
.site-nav a,
.button,
.field label,
.virtues li,
.room {
  font-family: Cinzel, Palatino, "Palatino Linotype", Georgia, serif;
}

.name {
  font-weight: 600;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  letter-spacing: 0.045em;
  line-height: 1.05;
}

.brand:hover .name {
  color: var(--seal);
}

.latin,
.footer-latin {
  font-family: "Source Serif 4", Palatino, "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

.latin {
  font-size: 0.98rem;
  line-height: 1;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.15rem 0.4rem;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--seal);
}

.site-nav a[aria-current="page"] {
  color: var(--seal);
  border-bottom-color: var(--gold);
}

/* Page */

main {
  flex: 1;
  scroll-margin-top: 1rem;
}

main:focus {
  outline: none;
}

.page {
  max-width: var(--page);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4.5rem;
}

.room {
  margin: 0 0 0.85rem;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.sheet > :first-child {
  margin-top: 0;
}

h1 {
  margin: 0 0 1.25rem;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

h1.pitch {
  font-family: "Source Serif 4", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: pretty;
}

h2 {
  margin: 2.75rem 0 0.85rem;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-wrap: balance;
}

h2::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin-bottom: 0.7rem;
  background: var(--gold);
}

p {
  margin: 0 0 1rem;
}

.rule {
  width: 2rem;
  height: 1px;
  margin: 1.75rem 0;
  border: 0;
  background: var(--gold);
}

.sheet a:not(.button) {
  color: var(--seal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.sheet a:not(.button):hover {
  color: var(--seal-deep);
}

.sheet a:not(.button):visited {
  color: var(--seal);
}

.marks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.marks li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 1.15rem;
}

.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 1px;
  background: var(--gold);
}

.virtues {
  list-style: none;
  margin: 0.35rem 0 1.1rem;
  padding: 0;
}

.virtues li {
  display: inline;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}

.virtues li:not(:last-child)::after {
  content: " · ";
  color: var(--gold);
  letter-spacing: 0;
}

.door {
  margin: 2.25rem 0 0;
}

.button {
  display: inline-block;
  margin: 0;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--gold-deep);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--parchment-top);
}

.button:active {
  background: var(--seal-deep);
  border-color: var(--seal-deep);
}

/* Inquire */

.quiet-note {
  color: var(--ink-soft);
}

.inquire-form {
  margin-top: 1.75rem;
}

.field {
  margin: 0 0 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.5;
}

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

input:focus,
textarea:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
  border-color: var(--gold-deep);
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--seal);
}

.form-actions {
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  position: relative;
  background: var(--parchment-deep);
  border-top: 1px solid var(--line);
  padding: 1.85rem 1.25rem 2.25rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--gold);
}

.footer-inner {
  max-width: var(--page);
  margin-inline: auto;
  text-align: center;
}

.footer-mark {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.footer-latin {
  margin: 0.28rem 0 0.75rem;
  font-size: 0.98rem;
}

.footer-inquire {
  margin: 0;
  font-size: 0.98rem;
}

.footer-inquire a {
  color: var(--ink-soft);
  text-underline-offset: 0.18em;
}

.footer-inquire a:hover {
  color: var(--seal);
}

@media (min-width: 720px) {
  .seal {
    height: 4.75rem;
  }

  .page {
    padding-top: 3.5rem;
  }

  .site-nav a {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }
}

@media (min-width: 960px) {
  main {
    scroll-margin-top: 11rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .site-nav ul {
    justify-content: space-between;
  }

  .page {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, var(--measure));
    column-gap: 2.75rem;
    justify-content: center;
    align-items: start;
    padding-top: 4rem;
  }

  .room {
    position: sticky;
    top: 10.75rem;
    margin: 0.4rem 0 0;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer {
    position: static;
    background: #fff;
  }

  .site-header::after,
  .site-footer::before,
  h2::before {
    background: #000;
  }

  a {
    text-decoration: underline;
  }
}
