:root {
  color-scheme: dark;
  --background: #171310;
  --text: #fff4e7;
  --muted: #d8c4b6;
  --accent: #ffad7f;
  --border: #48362d;
  --display: Georgia, "Times New Roman", serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.65 system-ui, sans-serif;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  transform: translateY(-150%);
  background: var(--background);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}

.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem clamp(0.75rem, 3vw, 2rem);
}

nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

nav a {
  text-decoration: none;
}

nav a:hover,
a[aria-current="page"]:not(.brand) {
  color: var(--accent);
  text-decoration: underline;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
}

p {
  margin: 0;
}

.hero {
  display: grid;
  align-items: center;
  min-height: clamp(31rem, 46vw, 43rem);
  background-color: #151210;
  background-image:
    linear-gradient(90deg, #140f0de8, #140f0db3 32%, #140f0d42 62%, transparent),
    url("ember-field.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding-block: 5rem;
}

.hero h1 {
  font-size: clamp(3.3rem, 10vw, 9rem);
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 27rem;
  margin-block: 1.25rem 1.75rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 1.125rem;
  border-radius: 4px;
  background: var(--accent);
  color: #24140d;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: var(--text);
  color: #24140d;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner {
    animation: hero-entrance 420ms ease-out both;
  }

  .button {
    transition: background-color 160ms ease;
  }
}

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-section h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
}

.section-detail {
  max-width: 33rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.section-detail p + p {
  margin-top: 0.85rem;
}

.interior {
  padding-block: clamp(3rem, 8vw, 7rem);
}

.prose {
  max-width: 43rem;
  overflow-wrap: break-word;
}

.prose h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.05em;
}

.prose h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.prose p {
  color: var(--muted);
}

.prose .lede {
  color: var(--text);
  font-size: 1.25rem;
}

.prose section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.prose p + p {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  min-height: 4.75rem;
  font-size: 0.9375rem;
}

@media (max-width: 42rem) {
  .hero {
    align-items: start;
    min-height: 32rem;
    background-image:
      linear-gradient(180deg, #140f0def, #140f0dc9 46%, #140f0d33 83%),
      url("ember-field.jpg");
    background-position: 60% center;
  }

  .hero-inner {
    padding-block: 4rem;
  }

  .home-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wide-only {
    display: none;
  }
}

@media (max-width: 28rem) {
  .header-inner {
    padding-block: 0.5rem;
  }

  .header-inner nav {
    width: 100%;
    gap: clamp(0.75rem, 5vw, 1.5rem);
  }
}
