/* MIST stock move board
   Visual direction: a clear warehouse dispatch sheet, not a project dashboard. */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('fonts/big-shoulders-display-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --concrete: #ecede8;
  --concrete-deep: #dfe1da;
  --paper: #fff;
  --ink: #191c21;
  --ink-soft: #525760;
  --rule: #bfc3b8;
  --orange: #e85d04;
  --green: #0b7047;
  --green-light: #e3f0e9;
  --amber: #915b00;
  --amber-light: #f5ecd8;
  --red: #af3829;
  --red-light: #f7e7e3;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  background: var(--ink);
  color: #fff;
  left: -999px;
  padding: .65rem 1rem;
  position: absolute;
  top: 0;
  z-index: 20;
}

.skip:focus {
  left: .5rem;
  top: .5rem;
}

.masthead,
main,
footer {
  margin-inline: auto;
  max-width: 76rem;
}

.masthead {
  padding: 2.5rem 1.25rem 2rem;
}

.eyebrow,
.section-kicker,
.date-label,
.route-label,
.status,
.who,
footer p:last-child {
  font-family: var(--mono);
}

.eyebrow,
.section-kicker {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  padding-bottom: .3rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .98;
}

h1 {
  font-size: clamp(3.1rem, 10vw, 7rem);
  letter-spacing: .01em;
  margin: 1.25rem 0 1rem;
  text-transform: uppercase;
}

h1 span {
  color: var(--orange);
}

.intro {
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  max-width: 51rem;
}

.route {
  align-items: center;
  background: var(--ink);
  color: #f4f5f0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr minmax(7rem, 13rem) 1fr;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
}

.route-end {
  display: grid;
  gap: .08rem;
}

.route-end strong {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  text-transform: uppercase;
}

.route-end > span:last-child {
  color: #d6d8d1;
  font-family: var(--mono);
  font-size: .72rem;
}

.route-destination {
  text-align: right;
}

.route-label {
  color: var(--orange);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.route-mark {
  align-items: center;
  background: repeating-linear-gradient(
    90deg,
    #f4f5f0 0 2px,
    transparent 2px 5px,
    #f4f5f0 5px 6px,
    transparent 6px 11px,
    #f4f5f0 11px 15px,
    transparent 15px 19px
  );
  display: flex;
  height: 3.3rem;
  justify-content: center;
}

.route-mark span {
  background: var(--ink);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  padding: .15rem .45rem;
}

.key-dates {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin-top: .7rem;
}

.key-dates li {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-height: 9rem;
  padding: .8rem;
}

.date-label {
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.key-dates strong {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1;
  margin-bottom: auto;
  text-transform: uppercase;
}

.status {
  align-self: flex-start;
  border: 1.5px solid currentColor;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .12rem .4rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-booked {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.status-planned {
  background: var(--amber-light);
  color: var(--amber);
}

.status-answer {
  background: var(--red-light);
  color: var(--red);
}

.plain-note {
  border-left: 5px solid var(--orange);
  font-size: .93rem;
  margin-top: 1rem;
  max-width: 53rem;
  padding: .4rem 0 .4rem .9rem;
}

.plain-note strong {
  display: block;
}

.jump-links {
  background: var(--concrete);
  border-bottom: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  display: flex;
  gap: .45rem;
  justify-content: center;
  padding: .55rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.jump-links a {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .3rem .65rem;
  text-decoration: none;
  text-transform: uppercase;
}

.jump-links a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

main {
  padding: 0 1.25rem 4rem;
}

.start-card {
  align-items: start;
  background: var(--ink);
  color: #f4f5f0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(15rem, .75fr) 1.25fr;
  margin-top: 2rem;
  padding: 1.4rem;
}

.start-card .section-kicker {
  color: var(--orange);
}

.start-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: .35rem;
  text-transform: uppercase;
}

.start-copy {
  border-left: 1px solid #62666d;
  display: grid;
  gap: .8rem;
  padding-left: 1.4rem;
}

.section {
  scroll-margin-top: 5rem;
}

.section-head {
  margin: 4rem 0 1.4rem;
  max-width: 51rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin: .35rem 0 .55rem;
  text-transform: uppercase;
}

.section-head > p:last-child {
  color: var(--ink-soft);
}

.date-spine {
  list-style: none;
  margin-left: 2rem;
  position: relative;
}

.date-spine::before {
  background: var(--ink);
  content: '';
  inset: 0 auto 0 7.3rem;
  position: absolute;
  width: 2px;
}

.date-spine > li {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 6rem 1fr;
  margin-bottom: .75rem;
  position: relative;
}

.date-spine > li::before {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 50%;
  content: '';
  height: .85rem;
  left: 6.9rem;
  position: absolute;
  top: 1.15rem;
  width: .85rem;
  z-index: 1;
}

.date-spine time {
  display: grid;
  padding-top: .5rem;
  text-align: right;
}

.date-spine time span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.date-spine time strong {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.date-spine article {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 1rem 1.1rem;
}

.item-top {
  align-items: start;
  display: flex;
  gap: .8rem;
  justify-content: space-between;
  margin-bottom: .45rem;
}

.item-top h3 {
  font-size: 1.55rem;
  text-transform: uppercase;
}

.who {
  color: var(--ink-soft);
  font-size: .7rem;
  margin-top: .65rem;
}

.who b {
  color: var(--ink);
}

.date-spine .move-day::before {
  background: var(--green);
  border-color: var(--green);
}

.date-spine .move-day article {
  border: 3px solid var(--green);
}

.date-spine .shipping-day::before {
  background: var(--orange);
  border-color: var(--orange);
}

.date-spine .shipping-day article {
  border: 3px solid var(--orange);
}

.ready-grid,
.waiting-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(3, 1fr);
}

.ready-grid article,
.waiting-grid article {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 1rem;
}

.ready-grid article > strong {
  color: var(--green);
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.ready-grid h3,
.waiting-grid h3 {
  font-size: 1.35rem;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.ready-grid p,
.waiting-grid li {
  color: var(--ink-soft);
  font-size: .88rem;
}

.resource-link {
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  gap: 1rem;
  margin-top: 1rem;
  padding: .7rem .9rem;
  text-decoration: none;
  text-transform: uppercase;
}

.resource-link:hover {
  background: var(--orange);
}

.waiting-grid {
  grid-template-columns: repeat(2, 1fr);
}

.waiting-grid article {
  border-left: 5px solid var(--red);
}

.waiting-grid ul {
  margin: .7rem 0 0 1.1rem;
}

.waiting-grid li + li {
  margin-top: .3rem;
}

.rules {
  border-top: 2px solid var(--ink);
  list-style: none;
}

.rules li {
  align-items: start;
  border-bottom: 1.5px solid var(--rule);
  display: grid;
  gap: 1rem;
  grid-template-columns: 3.5rem 1fr;
  padding: 1rem 0;
}

.rules span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.rules p {
  max-width: 55rem;
}

footer {
  border-top: 2px solid var(--ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.2rem 1.25rem 2rem;
}

footer p {
  font-size: .82rem;
}

footer p:last-child {
  color: var(--ink-soft);
  font-size: .68rem;
  text-align: right;
}

.board-user {
  position: absolute;
  right: 1.25rem;
  top: 1.15rem;
  z-index: 10;
}

.auth-page {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(18rem, .9fr) minmax(22rem, 1.1fr);
  margin: 0 auto;
  max-width: 72rem;
  min-height: 100vh;
}

.auth-copy {
  align-content: center;
  display: grid;
  min-width: 0;
  padding: clamp(2rem, 7vw, 6rem);
}

.auth-copy h1 {
  font-size: clamp(4rem, 9vw, 7rem);
  margin: .6rem 0 1.5rem;
}

.auth-copy h1 span {
  color: var(--orange);
}

.auth-copy > p:not(.eyebrow) {
  color: #c9ccd0;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 31rem;
}

.auth-copy .auth-access {
  border-left: 3px solid var(--orange);
  margin-top: 1.5rem;
  padding-left: 1rem;
}

.auth-panel {
  align-items: center;
  background: #eef0ea;
  color: var(--ink);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-width: 0;
  padding: 2rem;
}

#sign-in {
  display: flex;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.auth-loading,
.auth-error {
  font-family: var(--mono);
  font-size: .75rem;
}

.auth-error {
  color: #ff8e74;
  margin-top: 1rem;
}

.denied-user {
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .key-dates {
    grid-template-columns: repeat(2, 1fr);
  }

  .ready-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .board-user {
    right: .8rem;
    top: .7rem;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 45vh;
    padding: 2rem 1.25rem;
  }

  .auth-copy h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .auth-panel {
    min-height: 55vh;
    padding: 2rem 1rem 3rem;
  }

  .masthead {
    padding-top: 1.5rem;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.2rem);
  }

  .route {
    gap: .65rem;
    grid-template-columns: 1fr 4rem 1fr;
    padding: .85rem;
  }

  .route-end strong {
    font-size: 1.35rem;
  }

  .route-end > span:last-child {
    font-size: .6rem;
  }

  .route-mark {
    height: 2.8rem;
  }

  .key-dates {
    grid-template-columns: 1fr;
  }

  .key-dates li {
    min-height: 0;
  }

  .jump-links {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .jump-links a {
    flex: 0 0 auto;
  }

  .start-card {
    grid-template-columns: 1fr;
  }

  .start-copy {
    border-left: 0;
    border-top: 1px solid #62666d;
    padding-left: 0;
    padding-top: 1rem;
  }

  .section-head {
    margin-top: 3rem;
  }

  .date-spine {
    margin-left: 0;
  }

  .date-spine::before {
    left: .35rem;
  }

  .date-spine > li {
    gap: .8rem;
    grid-template-columns: 4.8rem 1fr;
    padding-left: 1rem;
  }

  .date-spine > li::before {
    height: .75rem;
    left: 0;
    top: 1rem;
    width: .75rem;
  }

  .date-spine time {
    text-align: left;
  }

  .date-spine article {
    padding: .8rem;
  }

  .item-top {
    display: grid;
  }

  .item-top h3 {
    font-size: 1.3rem;
  }

  .ready-grid,
  .waiting-grid {
    grid-template-columns: 1fr;
  }

  footer {
    display: grid;
  }

  footer p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
