/* Punorama: palette and type from the app (punorama-app/src/theme/index.ts). */

@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/Unbounded_500Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/Unbounded_700Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/Figtree_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/Figtree_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* Light: cream ground, ink text. Dark: the app's own ink and cream. */
:root {
  color-scheme: light dark;
  --gold: #ffd9a0;
  --coral: #ff9e7a;
  --blue: #3578a8;
  --cream: #fff0e4;
  --ink: #0c0c0c;

  --bg: var(--cream);
  --text: var(--ink);
  --muted: #5f5750;
  --line: rgba(12, 12, 12, 0.14);
  --link: #22587f;
  --focus: var(--blue);
  --strip: #e9dccf;

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --gutter: max(16px, 4vw);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --text: var(--cream);
    --muted: #a89c93;
    --line: rgba(255, 240, 228, 0.16);
    --link: var(--gold);
    --focus: var(--coral);
    --strip: #121212;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Header */

.site-head {
  display: flex;
  align-items: center;
  padding: 18px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
  display: block;
}

/* Panorama */

.pano {
  position: relative;
  height: clamp(280px, 62svh, 760px);
  display: flex;
  /* When the image is taller than the strip, crop the foreground, keep the sky. */
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--strip);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.pano::-webkit-scrollbar {
  display: none;
}
.pano.dragging {
  cursor: grabbing;
  user-select: none;
}
.pano:focus-visible {
  outline-offset: -3px;
  border-radius: 0;
}
.pano img {
  display: block;
  flex: none;
  /* Fill the strip; on wide screens grow taller than it so there is always room to pan. */
  height: max(100%, 53vw);
  width: auto;
  aspect-ratio: 6336 / 2688;
  -webkit-user-drag: none;
  user-select: none;
}

.pano-hint {
  margin: 10px var(--gutter) 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Home intro */

.intro {
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 104px);
  max-width: calc(42rem + 2 * var(--gutter));
}

h1,
h2 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.intro h1 {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 4vw, 3.5rem);
  line-height: 1.08;
}

.lede {
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.status {
  margin: 28px 0 0;
  color: var(--muted);
}

/* Legal pages */

.doc {
  max-width: calc(68ch + 2 * var(--gutter));
  padding: clamp(24px, 5vw, 56px) var(--gutter) 64px;
}
.doc h1 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}
.doc h2 {
  margin: 2.2em 0 0.5em;
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.doc p,
.doc ul {
  margin: 0 0 1em;
}
.doc ul {
  padding-left: 1.25em;
}
.doc li {
  margin-bottom: 0.4em;
}
.doc li::marker {
  color: var(--muted);
}
.doc .updated {
  color: var(--muted);
  margin-bottom: 2em;
}
.doc strong {
  font-weight: 600;
}

.back {
  display: inline-block;
  margin-top: 24px;
}

/* 404 */

.lost {
  padding: clamp(48px, 12vw, 120px) var(--gutter);
  max-width: calc(36rem + 2 * var(--gutter));
}
.lost h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem);
}
.lost p {
  margin: 0 0 12px;
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) 40px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-foot ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.site-foot p {
  margin: 0;
}
.site-foot a {
  color: var(--text);
}
