:root {
  --ink: #2A3142;
  --leaf: #3E6B52;
  --board: #D5DDD4;
  --button-text: #F4F6F2;
  --display: "EB Garamond", Georgia, serif;
  --body: "Nunito Sans", sans-serif;
  --measure: 40rem;
  --wrap: 66rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--board);
  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(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--leaf);
  color: var(--button-text);
  padding: 0.4rem 0.7rem;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  z-index: 5;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.rail {
  height: 0.55rem;
  background: var(--ink);
}

.mast {
  background: var(--board);
}

.mast-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 2.5rem;
  height: auto;
}

.brand-mark {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}

.brand-domain {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}

.nail {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--ink);
  display: inline-block;
}

.nav-link[aria-current="page"] .nail {
  background: var(--leaf);
}

.hero {
  padding-bottom: 0.5rem;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.plaque {
  flex: 1 1 28rem;
  max-width: 40rem;
  padding-top: 1.25rem;
}

.plaque-name {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink);
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.35rem;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.3rem;
  margin-top: 1.2rem;
}

.porch-button {
  display: inline-block;
  background: var(--leaf);
  color: var(--button-text);
  text-decoration: none;
  border-radius: 19px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.chimney {
  position: relative;
  width: 8.5rem;
  height: 13.5rem;
  flex: 0 0 8.5rem;
  margin-top: -0.55rem;
}

.chimney-compact {
  width: 3.1rem;
  height: 4.8rem;
  flex: 0 0 3.1rem;
  margin-top: 0;
}

.chimney-shell,
.chimney-glass {
  position: absolute;
  inset: 0;
  clip-path: polygon(24% 0, 76% 0, 90% 12%, 84% 70%, 66% 100%, 34% 100%, 16% 70%, 10% 12%);
}

.chimney-shell {
  background: var(--ink);
}

.chimney-glass {
  inset: 3px;
  background: var(--board);
  clip-path: polygon(27% 4%, 73% 4%, 85% 15%, 79% 68%, 64% 94%, 36% 94%, 21% 68%, 15% 15%);
}

.chimney::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 2px;
  height: 0.55rem;
  margin-left: -1px;
  background: var(--ink);
}

.chimney-compact::before {
  top: -0.35rem;
  height: 0.4rem;
}

.wick {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0.35rem;
  height: 1.5rem;
  margin-left: -0.175rem;
  background: var(--leaf);
  opacity: 0.35;
  animation: wick-bright 1.1s ease forwards;
}

.chimney-compact .wick {
  width: 0.2rem;
  height: 0.7rem;
  margin-left: -0.1rem;
  top: 44%;
}

@keyframes wick-bright {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.page-head {
  padding-bottom: 0.4rem;
}

.page-head-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.1rem;
}

.page-head h1 {
  margin: 0;
  font-size: 2.1rem;
}

.reading {
  max-width: var(--measure);
  padding-bottom: 2.5rem;
}

.reading h2 {
  position: relative;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 2.3rem 0 0.7rem;
  padding: 0.85rem 0 0 1.25rem;
  border-top: 1px solid var(--ink);
}

.reading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--ink);
}

.reading h3 {
  position: relative;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 1.2rem 0 0.3rem;
  padding-left: 1.15rem;
}

.reading h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--leaf);
}

.reading p,
.reading li {
  overflow-wrap: break-word;
}

.reading a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.reading .porch-button {
  text-decoration: none;
  margin-top: 0.4rem;
}

.reading ol,
.reading ul {
  padding-left: 1.2rem;
}

.reading table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
}

.reading th,
.reading td {
  border-bottom: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.5rem 0.55rem 0;
}

.reading th {
  font-family: var(--display);
  font-weight: 500;
}

.site-foot {
  padding-bottom: 2rem;
}

.foot-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.2rem;
}

.foot-copy {
  min-width: 0;
}

.chimney-caption,
.foot-board {
  margin: 0 0 0.55rem;
  overflow-wrap: break-word;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--ink);
}

.foot-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 760px) {
  h1 {
    font-size: 1.9rem;
  }

  .mast-row,
  .hero-row,
  .page-head-row,
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .chimney {
    margin-top: 0.4rem;
  }

  .page-head h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wick {
    animation: none;
    opacity: 1;
  }
}
