:root {
  --bg: #120e0c;
  --slag: #211a14;
  --accent: #e85c0d;
  --ivy: #4d7042;
  --text: #f5ebd6;
  --muted: #b8a38a;
  --spine: 11rem;
  --max: 68rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ff8a3d;
}

.layout {
  display: grid;
  grid-template-columns: var(--spine) 1fr;
  min-height: 100vh;
}

.spine {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 2rem 1.25rem 2rem 1.5rem;
  border-right: 1px solid rgba(184, 163, 138, 0.2);
  background: linear-gradient(180deg, #1a1410 0%, var(--bg) 100%);
}

.spine-brand {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.spine nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spine nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.main {
  padding: 0 1.5rem 4rem;
  max-width: calc(var(--max) + var(--spine));
}

.hero {
  position: relative;
  margin: 2rem 0 3.5rem;
  padding: 3rem 2rem 3.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-band {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(232, 92, 13, 0.35) 0%,
    rgba(232, 92, 13, 0.08) 42%,
    transparent 55%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--slag) center / cover no-repeat;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.hero .line2 {
  color: var(--accent);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 32rem;
}

.section {
  margin-bottom: 3.5rem;
}

.section-intro {
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.section-intro.right {
  margin-left: auto;
  text-align: right;
}

.section-intro h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-intro p {
  color: var(--muted);
  margin: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-card {
  background: var(--slag);
  border: 1px solid rgba(184, 163, 138, 0.15);
  border-radius: 1rem;
  padding: 1.35rem 1.5rem;
}

.bento-card:nth-child(1) {
  grid-column: span 7;
}

.bento-card:nth-child(2) {
  grid-column: span 5;
}

.bento-card:nth-child(3) {
  grid-column: span 12;
}

.bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(184, 163, 138, 0.12);
}

.screens-prose {
  max-width: 40rem;
}

.screens-prose p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.screen-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0 2rem;
}

.screen-inline figure {
  margin: 0;
  flex: 1 1 10rem;
  max-width: 14rem;
}

.screen-inline img {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(184, 163, 138, 0.2);
  display: block;
}

.screen-inline figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.legal-accordion {
  border: 1px solid rgba(184, 163, 138, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--slag);
}

.legal-accordion details {
  border-bottom: 1px solid rgba(184, 163, 138, 0.12);
}

.legal-accordion details:last-child {
  border-bottom: none;
}

.legal-accordion summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  list-style: none;
}

.legal-accordion summary::-webkit-details-marker {
  display: none;
}

.legal-accordion .body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-accordion .body ul {
  padding-left: 1.2rem;
}

.site-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 163, 138, 0.15);
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .spine {
    position: relative;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(184, 163, 138, 0.2);
    padding: 1.25rem 1.5rem;
  }

  .spine nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .bento-card:nth-child(n) {
    grid-column: span 12;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }
}
