@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cinzel-regular-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  background: #121011;
  color: #c3aa74;
}
* { box-sizing: border-box; }
body { margin: 0; }
.almanac {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  padding: clamp(38px, 5vw, 72px);
  padding-bottom: 80px;
  background: radial-gradient(ellipse at 75% 45%, #30233a70, transparent 58%),
              radial-gradient(ellipse at 10% 10%, #35202d55, transparent 42%), #0c0b12;
  overflow: hidden;
}
.transmutation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000 94%, transparent);
}
.site-footer {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  text-align: center;
  color: #c3aa7499;
  font: 12px/1.5 "Cinzel", Georgia, serif;
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .transmutation { mask-image: linear-gradient(155deg, transparent 10%, #000 65%); }
}

.brand {
  position: relative;
  width: 200px;
  max-width: 100%;
  text-align: center;
}
h1 { margin: 0; }
.brand-title {
  display: block;
  font-family: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;

  width: 98%;
  margin: 0 auto 12px;
  white-space: nowrap;
}
.title-letters { display: flex; justify-content: space-between; align-items: baseline; }
.title-letters .word-start { margin-left: .3em; }
.seal {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .almanac { padding: 36px; }
  .brand { width: 160px; }
  .brand-title { font-size: 16px; margin-bottom: 10px; }
}

.project-menu {
  margin-top: 12px;
  padding: 3px 14px;
}
.project-menu ul { list-style: none; padding: 0; margin: 0; }
.project-menu li + li { border-top: 1px solid #c3aa741c; }
.project-menu button {
  display: block;
  padding: 14px 0;
  color: #c3aa74;
  font-family: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .035em;
  text-decoration: none;
  transition: color .2s ease;
}
.project-menu button:hover { color: #eee0b4; }
.project-menu button:focus-visible { outline: 1px solid #c3aa74; outline-offset: 4px; }

@media (max-width: 600px) and (orientation: portrait) {
  .brand { margin-inline: auto; }
}

.almanac { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.project-menu button { width: 100%; border: 0; background: none; cursor: pointer; }
.project-menu button[aria-pressed="true"] { color: #f0dbab; }
.project-details { align-self: start; max-width: 540px; padding: 108px 0 40px; }
.project-details[hidden] { display: none; }
.project-details h2 { font-family: "Cinzel", Georgia, serif; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; font-weight: 400; margin: 0 0 22px; }
.project-details h2:focus { outline: none; }
#home-title { font-family: "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif; font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.5; }
.project-details p { color: #d0c7d1; font: 18px/1.8 Georgia, serif; margin: 0 0 28px; text-wrap: pretty; }
.visit-link { display: inline-block; color: #d4ba83; font: 14px/1.5 "Cinzel", Georgia, serif; text-decoration: none; border-bottom: 1px solid #c3aa7460; padding: 10px 0; }
.visit-link span { margin-left: 10px; }
.visit-link:hover { color: #f0dbab; }
.visit-link:focus-visible { outline: 1px solid #c3aa74; outline-offset: 6px; }
@media (max-width: 700px) {
  .almanac { grid-template-columns: minmax(0, 1fr); gap: 36px; align-content: start; padding-bottom: 100px; }
  .project-details { width: 100%; margin-inline: auto; padding-top: 0; padding-bottom: 0; }
  .project-details p { font-size: 17px; }
}

.brand-home { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.seal-wrap { position: relative; display: block; }
.seal-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 49.5%, #701d32cc 2.2%, #58172b99 2.8%, transparent 3.5%),
    radial-gradient(ellipse 9% 5% at 50% 49.5%, #ef7b7955, #e8a2a04d 48%, transparent 100%),
    radial-gradient(circle at 50% 49.5%, #bf638950, #9b3d6838 14%, transparent 24%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .45s ease;
}
@media (hover: hover) {
  .brand-home:hover .seal-wrap::after { opacity: 1; }
}
.brand-home:focus-visible .seal-wrap::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .seal-wrap::after { transition: none; }
}
.brand-home:focus-visible { outline: 1px solid #c3aa74; outline-offset: 6px; }

/* A quiet introduction beside the emblem. */
.almanac { column-gap: clamp(32px, 5vw, 80px); }
#project-home { align-self: start; max-width: 620px; padding-top: 108px; border: 0; }
#home-title { color: #cec6b8; font-size: clamp(22px, 2.15vw, 28px); line-height: 1.45; margin: 0; text-wrap: balance; }
#home-title > span { display: block; }
#home-title .tagline-context { margin-top: 12px; color: #a69e95; font-size: .75em; }
@media (max-width: 700px) {
  #project-home { padding-top: 0; }
}
@media (max-width: 600px) and (orientation: portrait) {
  #project-home { text-align: center; }
}
