/* kastomised.com holding page. Tokens are the Kastomised brand's
   (kastomised-liquid/assets/kastomised.css): warm paper, amber, cocoa. */

:root {
  color-scheme: light dark;
  --background: #fffaf3;
  --surface: #fff0db;
  --foreground: #333333;
  --muted: #565555;
  --border-warm: #e7d3b0;
  --accent: #ed9520;
  --brand: #71460d;
  --grid: rgba(113, 70, 13, 0.08);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17120b;
    --surface: #211a10;
    --foreground: #f3ece0;
    --muted: #b8afa0;
    --border-warm: #4a3c28;
    --accent: #f0a637;
    --brand: #e0b070;
    --grid: rgba(224, 176, 112, 0.07);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

/* The workshop's cutting mat: a grid that fades out towards the edges. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 20% 40%, #000 30%, transparent 85%);
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 28px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-warm);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(237, 149, 32, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(237, 149, 32, 0);
  }
}

/* ------------------------------------------------------------------- main */
main {
  display: grid;
  align-items: center;
  padding-block: 56px;
}
.stage {
  display: grid;
  gap: 56px;
  align-items: end;
}
@media (min-width: 960px) {
  .stage {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 72px;
  }
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--brand);
}

h1 {
  margin: 0;
  line-height: 0;
}
.wordmark {
  display: block;
  width: min(100%, 560px);
  height: auto;
  color: var(--foreground);
}

.lead {
  margin: 36px 0 0;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.body {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
}

/* A steel rule under the copy: ticks every 8px, a longer one every 40px. */
.rule {
  margin-top: 40px;
  height: 18px;
  max-width: 560px;
  border-top: 1px solid var(--foreground);
  background-image:
    repeating-linear-gradient(90deg, var(--foreground) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 8px);
  background-size: 100% 18px, 100% 8px;
  background-repeat: no-repeat;
  opacity: 0.55;
}

/* ------------------------------------------------------------ work ticket */
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 28px 28px 24px;
  transform: rotate(1.2deg);
  box-shadow: 0 1px 0 var(--border-warm), 0 18px 40px -24px rgba(113, 70, 13, 0.45);
}
/* the punched hole a ticket hangs from */
.ticket::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border-warm);
}
.ticket-head {
  margin: 0;
  padding-bottom: 16px;
  color: var(--brand);
  border-bottom: 1px dashed var(--border-warm);
}
.ticket dl {
  margin: 0;
}
.ticket .row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px dashed var(--border-warm);
}
.ticket dt {
  color: var(--muted);
}
.ticket dd {
  margin: 0;
  font-weight: 500;
}
/* an inline link in a sentence: the padding makes it a 44px target without
   moving the line */
.ticket dd a {
  padding-block: 11px;
}
/* hazard tape: the job is still on the bench */
.tape {
  margin-top: 22px;
  height: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 10px,
    transparent 10px 20px
  );
  background-size: 28.28px 100%;
  animation: tape 1.6s linear infinite;
}
@keyframes tape {
  to {
    background-position: 28.28px 0;
  }
}

/* ----------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--border-warm);
  color: var(--muted);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 28px;
  padding-block: 12px;
  font-size: 15px;
}
.foot p {
  margin: 0;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 520px) {
  .wrap {
    padding-inline: 16px;
  }
  main {
    padding-block: 40px;
  }
  .ticket {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status::before,
  .tape {
    animation: none;
  }
}
