/* Bench Hook — the page is an L: iron arm + oil bench. Inner well holds the work. */

:root {
  --bench: #5A3E32;
  --iron: #1A1F24;
  --maple: #E6C79A;
  --chalk: #E7E2D4;
  --gold: #C9A227;
  --night: #121417;
  --arm: 3.5rem;
  --ledge: 4.35rem;
  --display: "Bitter", "Iowan Old Style", serif;
  --body: "Nunito Sans", "Segoe UI", sans-serif;
  --data: "JetBrains Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--chalk);
  color: var(--night);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding: 0 1.25rem var(--ledge) var(--arm);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--bench);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--iron);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 80;
  background: var(--iron);
  color: var(--maple);
  padding: 0.55rem 0.9rem;
  font-family: var(--data);
  font-size: 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

/* Left hook stem — vertical of the L */
.arm {
  position: fixed;
  top: 0;
  left: 0;
  bottom: var(--ledge);
  width: var(--arm);
  background:
    linear-gradient(90deg, #14181c 0 10px, transparent 10px),
    var(--iron);
  z-index: 50;
  pointer-events: none;
}

.arm::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 5px solid var(--maple);
  border-right: 0;
  border-bottom: 0;
}

/* Gold bite where the L turns into the bench */
.bite {
  position: fixed;
  left: 0;
  bottom: var(--ledge);
  width: var(--arm);
  height: 0.55rem;
  background: var(--gold);
  z-index: 55;
  pointer-events: none;
}

/* Bottom bench — horizontal of the L, brand lives here */
.ledge {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ledge);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.4rem 0 calc(var(--arm) + 1rem);
  background: var(--bench);
  color: var(--maple);
  box-shadow: 0 -8px 0 var(--iron);
}

.ledge__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--maple);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ledge__brand svg {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
}

.ledge__mail {
  color: var(--maple);
  font-family: var(--data);
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.ledge__mail:hover {
  color: #fff8ea;
}

.well {
  max-width: 58rem;
  margin: 0 auto;
  min-height: calc(100vh - var(--ledge));
  display: flex;
  flex-direction: column;
}

.mast {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  padding: 1.35rem 0 0.4rem;
}

.nav {
  display: flex;
  gap: 1.35rem;
  font-family: var(--data);
  font-size: 0.78rem;
}

.nav a {
  color: var(--iron);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.12rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

main {
  flex: 1;
  padding-bottom: 2.5rem;
}

/* Hero: iron L wraps the headline; week board sits in the inner corner */
.hero {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0;
  margin: 0.5rem 0 2.25rem;
}

.hero__stem {
  grid-row: 1 / span 2;
  grid-column: 1;
  background: var(--iron);
  min-height: 100%;
  position: relative;
}

.hero__stem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -2.4rem;
  height: 1.7rem;
  background: var(--iron);
}

.hero__copy {
  grid-column: 2;
  padding: 2.4rem 0 0.75rem 1.35rem;
}

.slot {
  font-family: var(--data);
  font-size: 0.75rem;
  color: var(--bench);
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
}

.hero h1,
.pagehead h1,
.sheet h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--night);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.05rem);
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.1rem;
  max-width: 42rem;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin: 0;
}

.actions a {
  font-family: var(--data);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--iron);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.15rem;
}

.hero__board {
  grid-column: 2;
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.35rem;
}

.hero__board svg {
  width: min(100%, 34rem);
  height: auto;
}

.stop {
  animation: settle 1.1s ease-out 1;
  transform-origin: left center;
}

@keyframes settle {
  from { transform: translateX(-10px); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}

.band {
  margin: 0 0 2.4rem;
}

.band h2,
.sheet h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

/* Three-line work tickets — not cards, not tables, not numbered */
.tickets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticket {
  position: relative;
  padding: 0.95rem 0.2rem 0.95rem 2.35rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--bench) 45%, var(--chalk));
}

.ticket:last-child {
  border-bottom: 0;
}

.ticket::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.35rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--iron);
  border-radius: 50%;
  background: var(--chalk);
}

.ticket a {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.18rem;
  text-decoration: none;
  color: inherit;
}

.ticket__slot {
  font-family: var(--data);
  font-size: 0.72rem;
  color: var(--bench);
}

.ticket__title {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--night);
}

.ticket__line {
  font-size: 0.98rem;
  color: #3a322c;
}

.ticket a:hover .ticket__title {
  color: var(--bench);
}

.flags {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 6px solid var(--iron);
}

.flag {
  padding: 0.7rem 0 0.7rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--iron) 12%, var(--chalk));
}

.flag strong {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
}

.flag span {
  display: block;
  font-size: 0.95rem;
  color: #3a322c;
}

.aside {
  font-size: 0.92rem;
  color: #4a4038;
  border-top: 2px solid var(--maple);
  padding-top: 0.85rem;
  margin-top: 1.5rem;
}

.pagehead {
  padding: 1.4rem 0 0.4rem;
}

.pagehead h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 20ch;
}

.sheet {
  max-width: 40rem;
}

.sheet p {
  margin: 0 0 1rem;
}

.sheet ul,
.sheet ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.sheet li {
  margin: 0 0 0.4rem;
}

.sheet h2 {
  margin-top: 1.6rem;
}

.colophon {
  margin-top: auto;
  padding: 1.5rem 0 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--bench) 28%, var(--chalk));
  font-size: 0.88rem;
}

.colophon__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin-bottom: 0.7rem;
}

.colophon__nav a {
  color: var(--iron);
  text-decoration: none;
  font-family: var(--data);
  font-size: 0.75rem;
}

.colophon p {
  margin: 0.2rem 0;
  color: #4a4038;
}

@media (max-width: 720px) {
  :root {
    --arm: 1.35rem;
    --ledge: 3.7rem;
  }

  body {
    padding: 0 0.9rem var(--ledge) var(--arm);
    font-size: 1rem;
  }

  .arm::after {
    left: 0.22rem;
    top: 0.7rem;
    width: 0.9rem;
    height: 0.9rem;
    border-width: 3px;
  }

  .ledge {
    padding: 0 0.8rem 0 calc(var(--arm) + 0.55rem);
  }

  .ledge__mail {
    display: none;
  }

  .hero {
    grid-template-columns: 1.15rem minmax(0, 1fr);
  }

  .hero__stem::before {
    right: -1.1rem;
    height: 1.15rem;
  }

  .hero__copy,
  .hero__board {
    padding-left: 0.75rem;
  }

  .hero h1 {
    max-width: none;
  }

  .mast {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stop {
    animation: none;
  }
}
