/* Field Notes — a photographer's notes written along an endless wave */

:root {
  /* script.js reads these for the canvas */
  --paper: #11100e;
  --ink: #f1ece2;
  --accent: #ff7a45;
  --frame: #f4f0e7;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 40px);
}

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

html,
body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Cards pass under the chrome, so it gets a soft backing */
.logo,
.foot > span {
  border-radius: 100px;
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.logo {
  padding: 5px 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  pointer-events: auto;
}
.logo span {
  margin-left: 8px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
}

.stage {
  position: fixed;
  inset: 0;
  touch-action: none;
  overscroll-behavior: none;
  cursor: ns-resize;
  outline: none;
}
.stage.is-over-card { cursor: default; }
.stage:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.foot {
  position: fixed;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  font-size: 12px;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
  pointer-events: none;
}
.foot > span { padding: 5px 12px; }
.foot [data-now] { color: var(--ink); }
.foot .hint { margin-left: auto; }

@media (max-width: 600px) {
  .foot .credit { display: none; }
}
