/* Doesh proof-sheet — print geometry (radius 0), 2+1 type ceiling.
   Radio/signal ink: copper + electric lime. No magenta, no cyan. */

:root {
  --ink: #0d0d0f;
  --ink-2: #161618;
  --line: rgba(236, 230, 216, 0.14);
  --line-strong: rgba(236, 230, 216, 0.3);
  --paper: #ece6d8;
  --paper-dim: #b8b0a0;
  --copper: #c9955a;
  --lime: #c8ff3d;
  --amber: #e0a84a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --disp: "Archivo Expanded", "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Instrument Sans", system-ui, sans-serif;
  --max: 1080px;
  --gutter: 24px;
  color-scheme: dark;
}

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

html,
body {
  min-height: 100%;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--copper);
  color: var(--ink);
}

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

a {
  color: inherit;
}

/* ---------- sheet machinery ---------- */
.sheethead,
.sheetfoot {
  position: relative;
}

.cropmark {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  pointer-events: none;
  border-radius: 0;
}

.crop-tl {
  top: -1px;
  left: 24px;
  border-right: 0;
  border-bottom: 0;
}

.crop-tr {
  top: -1px;
  right: 24px;
  border-left: 0;
  border-bottom: 0;
}

.crop-bl {
  bottom: -1px;
  left: 24px;
  border-right: 0;
  border-top: 0;
}

.crop-br {
  bottom: -1px;
  right: 24px;
  border-left: 0;
  border-top: 0;
}

/* Shared content column: header meta + main body share this left edge */
.sheet-col {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* Lime radio signal — in-flow at content column left */
.signal {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.45);
  animation: signal-pulse 2.8s var(--ease) infinite;
  z-index: 1;
}

.signal-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--lime);
  border-radius: 50%;
  opacity: 0.35;
  animation: signal-ring 2.8s var(--ease) infinite;
}

/* ---------- header ---------- */
.sheethead {
  padding: 22px 0 0;
  border-bottom: 1px solid var(--line);
}

.topline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}

.wordmark {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ink-accent {
  color: var(--lime);
}

.lang-bar {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.lang-bar button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.lang-bar button:hover {
  color: var(--paper);
}

.lang-bar button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--copper);
  border-color: var(--copper);
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 0;
}

.jobno {
  padding: 10px 0 14px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
  text-transform: uppercase;
}

/* ---------- main ---------- */
main.sheet-col {
  min-height: calc(100dvh - 11rem);
}

.titleblock {
  padding: 64px 0 48px;
  position: relative;
}

.tb-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.specimen {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(4rem, 13vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 34px 0 22px;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(0.4rem);
  animation: rise 0.9s var(--ease) 0.06s forwards;
}

.subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--paper-dim);
  max-width: 68ch;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(0.3rem);
  animation: rise 0.85s var(--ease) 0.22s forwards;
}

.foldline {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px dashed var(--line-strong);
  margin: 40px 0 26px;
  padding-top: 8px;
}

.foldline span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
}

/* ---------- projects: numbered specimens, not cards ---------- */
.projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 36rem;
}

.projects li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.projects li:first-child {
  border-top: 1px solid var(--line);
}

.spec-no {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--copper);
}

.spec-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.projects a,
.projects .name {
  font-family: var(--disp);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  width: fit-content;
}

.projects a {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

.projects a:hover,
.projects a:focus-visible {
  color: var(--lime);
  background-size: 100% 1px;
  outline: none;
}

.projects .name {
  color: var(--paper-dim);
}

.blurb {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
  line-height: 1.4;
}

.reveal {
  opacity: 0;
  transform: translateY(0.3rem);
  animation: rise 0.75s var(--ease) forwards;
  animation-delay: calc(0.38s + var(--i) * 0.1s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.85;
    box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
  }
  40% {
    opacity: 1;
    box-shadow: 0 0 10px 1px rgba(200, 255, 61, 0.35);
  }
  70% {
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
  }
}

@keyframes signal-ring {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  45% {
    transform: scale(1.15);
    opacity: 0.15;
  }
  70% {
    transform: scale(0.9);
    opacity: 0.35;
  }
}

/* ---------- footer ---------- */
.sheetfoot {
  padding: 0 0 28px;
  margin-top: auto;
}

.sheetfoot .rule {
  margin-bottom: 14px;
}

.foot-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  text-transform: uppercase;
}

/* ---------- i18n ---------- */
[data-lang-sv] {
  display: none;
}

html[lang="sv"] [data-lang-en] {
  display: none;
}

html[lang="sv"] [data-lang-sv] {
  display: block;
}

html[lang="en"] [data-lang-en] {
  display: block;
}

html[lang="en"] .projects [data-lang-en].blurb,
html[lang="sv"] .projects [data-lang-sv].blurb {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .specimen,
  .subtitle,
  .reveal,
  .signal-dot,
  .signal-ring {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .signal-dot {
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .titleblock {
    padding-top: 44px;
  }

  .tb-meta {
    flex-direction: column;
    gap: 6px;
  }
}
