@font-face {
  font-family: "URW DIN";
  src: url("/assets/urw-din-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "URW DIN";
  src: url("/assets/urw-din-medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "URW DIN";
  src: url("/assets/urw-din-black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ed7b23;
  --orange-dark: #cf5f0e;
  --ink: #252c35;
  --ink-soft: #4c4d4e;
  --paper: #f5f3ee;
  --paper-deep: #e9e4da;
  --white: #ffffff;
  --border: rgba(37, 44, 53, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--ink);
  font-family: "URW DIN", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--ink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

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

.maintenance-shell {
  display: grid;
  grid-template-columns: minmax(590px, 1.12fr) minmax(420px, 0.88fr);
  min-height: 100vh;
}

.message-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: clamp(28px, 4vw, 68px) clamp(32px, 6vw, 104px) clamp(24px, 3vw, 46px);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--border) calc(100% - 1px)),
    radial-gradient(circle at 8% 94%, rgba(237, 123, 35, 0.12) 0, rgba(237, 123, 35, 0.12) 1px, transparent 1.5px) 0 0 / 17px 17px,
    var(--paper);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: fit-content;
}

.brand img {
  display: block;
  width: clamp(132px, 12vw, 174px);
  height: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status span {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(237, 123, 35, 0.16);
}

.message {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 760px);
  padding: clamp(58px, 8vh, 112px) 0 clamp(42px, 6vh, 80px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kicker::before {
  width: 46px;
  height: 3px;
  content: "";
  background: var(--orange);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.5rem, 6.1vw, 6.65rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.91;
  text-wrap: balance;
}

.intro {
  max-width: 36rem;
  margin: clamp(28px, 4vh, 44px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 1.45vw, 1.48rem);
  line-height: 1.48;
  text-wrap: pretty;
}

.return-card {
  position: relative;
  width: min(100%, 670px);
  margin-top: clamp(36px, 5vh, 58px);
  padding: 22px clamp(22px, 3vw, 38px) 20px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--orange);
}

.return-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  content: "";
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.return-label {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.date-lockup {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: baseline;
  column-gap: clamp(10px, 1.8vw, 25px);
  width: 100%;
}

.weekday,
.month {
  color: var(--orange);
  font-size: clamp(0.88rem, 1vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.13em;
}

.date-number {
  font-size: clamp(3.8rem, 6vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.time {
  justify-self: end;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.return-date {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
}

.legal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: rgba(37, 44, 53, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.legal nav {
  display: flex;
  gap: 18px;
}

.studio-panel {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background: #111820;
}

.studio-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% center;
  filter: saturate(0.82) contrast(1.07);
}

.studio-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 21, 0.08) 0%, rgba(12, 16, 21, 0.18) 42%, rgba(12, 16, 21, 0.9) 100%),
    linear-gradient(90deg, rgba(37, 44, 53, 0.32), transparent 38%);
}

.studio-caption {
  position: absolute;
  right: clamp(26px, 4vw, 58px);
  bottom: clamp(32px, 5vw, 68px);
  left: clamp(26px, 4vw, 58px);
  z-index: 2;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 55px;
  margin-bottom: 25px;
}

.waveform i {
  display: block;
  width: 4px;
  height: 20%;
  background: var(--orange);
  transform-origin: center;
  animation: level 2.8s ease-in-out infinite;
}

.waveform i:nth-child(2),
.waveform i:nth-child(11) { height: 55%; animation-delay: -0.4s; }
.waveform i:nth-child(3),
.waveform i:nth-child(10) { height: 88%; animation-delay: -1.2s; }
.waveform i:nth-child(4),
.waveform i:nth-child(9) { height: 42%; animation-delay: -0.8s; }
.waveform i:nth-child(5),
.waveform i:nth-child(8) { height: 100%; animation-delay: -1.7s; }
.waveform i:nth-child(6),
.waveform i:nth-child(7) { height: 68%; animation-delay: -2.1s; }

@keyframes level {
  0%, 100% { transform: scaleY(0.76); opacity: 0.74; }
  50% { transform: scaleY(1); opacity: 1; }
}

.studio-caption p {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.studio-caption > span {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-note {
  position: absolute;
  top: clamp(28px, 4vw, 54px);
  right: clamp(26px, 4vw, 58px);
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

@media (max-width: 1100px) {
  .maintenance-shell {
    grid-template-columns: minmax(520px, 1.2fr) minmax(330px, 0.8fr);
  }

  .message-panel {
    padding-inline: clamp(30px, 5vw, 62px);
  }

  h1 {
    font-size: clamp(3.35rem, 6.7vw, 5.6rem);
  }

  .date-lockup {
    grid-template-columns: auto auto 1fr;
  }

  .time {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 14px;
  }
}

@media (max-width: 820px) {
  .maintenance-shell {
    display: flex;
    flex-direction: column;
  }

  .message-panel {
    min-height: auto;
    padding: 24px clamp(20px, 6vw, 42px) 26px;
    background:
      radial-gradient(circle at 92% 8%, rgba(237, 123, 35, 0.12) 0, rgba(237, 123, 35, 0.12) 1px, transparent 1.5px) 0 0 / 17px 17px,
      var(--paper);
  }

  .site-header {
    align-items: flex-start;
  }

  .brand img {
    width: 126px;
  }

  .status {
    max-width: 15ch;
    justify-content: flex-end;
    text-align: right;
    line-height: 1.35;
  }

  .message {
    padding: 66px 0 58px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3.3rem, 15vw, 5.6rem);
  }

  .intro {
    max-width: 31rem;
  }

  .return-card {
    width: calc(100% - 10px);
    box-shadow: 10px 10px 0 var(--orange);
  }

  .date-lockup {
    grid-template-columns: auto auto 1fr auto;
  }

  .time {
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
  }

  .studio-panel {
    min-height: 58vh;
  }

  .studio-panel > img {
    object-position: 48% 54%;
  }

  .side-note {
    display: none;
  }
}

@media (max-width: 560px) {
  .message {
    padding-top: 56px;
  }

  .kicker {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .kicker::before {
    width: 30px;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.5rem, 11.2vw, 4.4rem);
    line-height: 0.93;
  }

  .intro {
    font-size: 1.12rem;
  }

  .return-card {
    padding: 20px 20px 18px;
  }

  .date-lockup {
    grid-template-columns: auto 1fr auto;
    column-gap: 12px;
  }

  .weekday {
    align-self: center;
  }

  .date-number {
    font-size: 4.8rem;
  }

  .month {
    align-self: center;
  }

  .time {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 12px;
    font-size: 3.15rem;
  }

  .legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal {
    gap: 12px;
  }

  .studio-panel {
    min-height: 500px;
  }

  .studio-caption p {
    font-size: 2.8rem;
  }
}

@media (max-height: 1050px) and (min-width: 821px) {
  .message-panel {
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .message {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(3.3rem, 5.2vw, 5.6rem);
  }

  .intro {
    margin-top: 24px;
  }

  .return-card {
    margin-top: 32px;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .message-panel {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .message {
    padding-top: 26px;
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(3.1rem, 4.8vw, 5rem);
  }

  .intro {
    margin-top: 18px;
  }

  .return-card {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveform i {
    animation: none;
  }
}
