/* joecruickshank.com, interim holding page.
   The same look as the new site's dark home page (tokens copied from its
   global.css on main): Schibsted Grotesk, the teal bar and the JC monogram. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #171b1d;
  --surface: #1f2528;
  --border: #2e3639;
  --text: #e6eae9;
  --text-muted: #9aa3a6;
  --accent: #11abb0;
  --accent-strong: #3cc3c7;
  --on-accent: #171b1d;

  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --meta: 0.8125rem;
  --wrap: 86rem;
  --radius: 6px;
  --bar: 0.14em;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t: 240ms;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
/* A little darker when the visitor's system is in dark mode, as on the new site. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1315;
    --surface: #171c1f;
    --border: #252c2f;
    --on-accent: #0f1315;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.045;
}
h1,
p {
  margin: 0;
}
p {
  text-wrap: pretty;
}
svg {
  display: block;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: 0.75rem;
  z-index: 60;
  padding: 0.5rem 0.875rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap {
    padding-left: max(2.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.5rem, env(safe-area-inset-right, 0px));
  }
}

/* ---- Links: the teal bar sits under a link and rises to fill it on hover ---- */
a {
  color: inherit;
  text-decoration: none;
}
.bar {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% var(--bar);
  padding-bottom: 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    background-size var(--t) var(--ease),
    color var(--t-fast) linear;
}
.bar:hover {
  background-size: 100% 100%;
  color: var(--on-accent);
}
.nav-link {
  background-size: 100% 0;
}
.nav-link:hover {
  background-size: 100% 100%;
}

/* ---- Header: the JC monogram and the name ---- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: clamp(0.9rem, 2.6svh, 1.5rem);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.25rem);
}
.brand-mark {
  align-self: center;
  flex: none;
  width: 1.55em;
  height: 1.55em;
}
.brand-ring {
  fill: var(--accent);
  fill-opacity: 0;
  stroke: var(--accent);
  stroke-width: 1.7;
  transition: fill-opacity var(--t) var(--ease);
}
.brand-letters {
  transition: color var(--t-fast) linear;
}
.brand-letters path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.3;
  stroke-linejoin: miter;
}
.brand:hover .brand-ring {
  fill-opacity: 1;
}
.brand:hover .brand-letters {
  color: var(--on-accent);
}
.brand:hover .wordmark {
  background-size: 100% 100%;
  color: var(--on-accent);
}
.wordmark {
  font-weight: 650;
  letter-spacing: -0.02em;
  --bar: 0.2em;
}

/* ---- The holding message ---- */
main {
  display: flex;
  flex: 1;
}
.hold {
  display: grid;
  align-content: center;
  gap: clamp(1.5rem, 4svh, 2.75rem);
  padding-block: clamp(2rem, 8svh, 6rem);
}
.statement {
  max-width: 17em;
  font-size: clamp(2.5rem, min(6.4vw, 9.6svh), 6.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.lede {
  max-width: 34em;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}
.lede a {
  color: var(--text);
}

/* The build bar: the teal bar again, part-filled, as the new site is part-built. */
.build {
  display: grid;
  gap: 0.6rem;
  max-width: 22rem;
  font-family: var(--font-mono);
  font-size: var(--meta);
  color: var(--text-muted);
}
.build-track {
  height: 0.3rem;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.build-fill {
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: fill 2.4s var(--ease) 0.3s both;
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
}

/* ---- The status line at the foot ---- */
.status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--meta);
  color: var(--text-muted);
}
.status-line a {
  color: var(--text);
}
.status-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.75rem;
}
.latest {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.pulse {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.clock time {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.colon {
  animation: blink 2s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
