:root {
  --ink: #241C16;
  --copper: #C26B2D;
  --plaster: #E4DDD4;
  --button-text: #F7F1E8;
  --display: "Ibarra Real Nova", Georgia, serif;
  --body: "Figtree", sans-serif;
  --measure: 38rem;
  --wrap: 68rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--copper);
  color: var(--button-text);
  border-radius: 17px;
  padding: 0.4rem 0.7rem;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  z-index: 5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  background: var(--plaster);
}

.mast-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 3rem;
  height: auto;
}

.brand-mark {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-domain {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.15rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav-link[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.hinge {
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
  display: inline-block;
}

.hero {
  padding: 1.75rem 0 0.5rem;
}

.span-row {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.hatch {
  position: relative;
  margin-top: 1.4rem;
}

.hatch-frame {
  border: 10px solid var(--copper);
  border-image: linear-gradient(var(--copper), var(--ink)) 1;
  padding: 1.2rem 4.2rem 1.4rem 1.15rem;
  min-height: 9.5rem;
}

.hatch-frame-compact {
  min-height: 0;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border-width: 6px;
}

.hatch-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.2;
}

.flap {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 3.2rem;
  height: 3.2rem;
  transform-origin: top right;
  pointer-events: none;
}

.hatch-compact .flap {
  width: 1.7rem;
  height: 1.7rem;
}

.flap-motion {
  animation: open-flap 0.7s ease forwards;
}

.flap-still {
  transform: none;
}

@keyframes open-flap {
  from { transform: rotate(0deg); }
  to { transform: rotate(-28deg); }
}

.span-copy h1,
.page-head h1,
.reading h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
}

.span-copy h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.span-copy p {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.3rem;
  margin-top: 1.2rem;
}

.hatch-button {
  display: inline-block;
  background: var(--copper);
  color: var(--button-text);
  text-decoration: none;
  border-radius: 17px;
  padding: 0.7rem 1.15rem;
  line-height: 1.2;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.page-head {
  padding-top: 1.6rem;
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.page-head h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.hatch-compact {
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.reading {
  padding: 1.4rem 0 2.5rem;
  max-width: 46rem;
}

.reading h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.7rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.9rem;
}

.reading h2:first-child {
  margin-top: 0.4rem;
}

.home-band .reading {
  padding-top: 0.2rem;
  padding-bottom: 0.35rem;
}

.home-band:last-child .reading {
  padding-bottom: 2.5rem;
}

.reading h3 {
  margin: 1.3rem 0 0.35rem;
  font-size: 1.05rem;
}

.reading h3::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-top: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
  vertical-align: 0.05rem;
}

.reading p,
.reading li {
  max-width: var(--measure);
}

.reading ul,
.reading ol {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

.reading li + li {
  margin-top: 0.35rem;
}

.record-table {
  width: min(100%, 40rem);
  border-collapse: collapse;
  margin: 1rem 0 1.2rem;
}

.record-table th,
.record-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ink);
  padding: 0.55rem 0.8rem 0.55rem 0;
}

.record-table th {
  width: 38%;
  font-weight: 600;
}

.site-foot {
  padding: 0 0 2.2rem;
}

.flap-caption {
  margin: 0;
  padding-top: 1rem;
  border-top: 10px solid var(--copper);
  border-image: linear-gradient(90deg, var(--copper), var(--ink)) 1;
  font-family: var(--display);
  font-size: 1.15rem;
}

.foot-board,
.foot-links {
  margin: 0;
}

.site-foot .plaster-row {
  border-top: 1px solid var(--ink);
  padding: 0.75rem 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  padding: 0;
}

.foot-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  .mast-row,
  .span-row,
  .page-head-row {
    display: block;
  }

  .nav-list {
    margin-top: 0.85rem;
  }

  .hatch {
    max-width: 20rem;
  }

  .span-copy {
    margin-top: 1.4rem;
  }

  .page-head h1 {
    margin-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flap-motion {
    animation: none;
    transform: none;
  }
}
