/* eidotrope.org home and 404. Always dark: the page is a lantern screen. */
:root {
  --bg: #07060a;
  --text: #efe6d6;
  --muted: #9a9081;
  --glow: #ffd9a0;
  --rule: rgba(239, 230, 214, .14);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

body.lantern { overflow-x: hidden; }

#lantern {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
#lantern.dragging { cursor: grabbing; }

/* Keeps the text readable where the lantern's light reaches behind it. */
body.lantern::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 0% 0%, rgba(7, 6, 10, .88), rgba(7, 6, 10, .55) 55%, rgba(7, 6, 10, 0) 100%),
    radial-gradient(ellipse 46% 42% at 0% 100%, rgba(7, 6, 10, .88), rgba(7, 6, 10, .55) 55%, rgba(7, 6, 10, 0) 100%);
}

.lantern main {
  position: relative;
  z-index: 1;
  min-height: 100%;
  max-width: 460px;
  padding: max(36px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
  margin-left: max(16px, 6vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  pointer-events: none;
}
.lantern main a { pointer-events: auto; }

.wordmark {
  font: italic 400 clamp(56px, 9vw, 104px)/1 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 18px;
  text-shadow: 0 0 40px rgba(255, 217, 160, .35);
}

.definition {
  font: 400 17px/1.55 var(--serif);
  color: var(--muted);
  margin: 0;
  max-width: 34em;
}
.definition .pos { font-style: italic; color: var(--text); margin-right: .3em; }

.motto {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--glow);
  margin: 0 0 14px;
}

.works { margin: 0 0 28px; }

.work {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(10, 9, 14, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.work:hover, .work:focus-visible { border-color: rgba(255, 217, 160, .5); transform: translateY(-1px); }
.work img { border-radius: 11px; flex: none; }
.work strong { display: block; font-weight: 600; font-size: 16px; }
.work small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.work .arrow { margin-left: auto; color: var(--glow); font-size: 18px; }

.contact { margin: 0; font-size: 13.5px; color: var(--muted); }
.contact a { text-decoration-color: var(--rule); text-underline-offset: 3px; }

.hint {
  position: fixed;
  z-index: 1;
  right: max(16px, 4vw);
  bottom: max(40px, env(safe-area-inset-bottom));
  margin: 0;
  font: italic 13px var(--serif);
  color: var(--muted);
  opacity: .7;
  pointer-events: none;
}

/* Phones: the lantern sits between the masthead and the projects. */
@media (max-width: 720px) {
  .lantern main { margin: 0; max-width: none; padding-top: max(24px, env(safe-area-inset-top)); }
  .wordmark { margin-bottom: 10px; }
  .definition { font-size: 15.5px; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hint { display: none; }
  .work { transition: none; }
}

/* 404 */
.lost {
  min-height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
}
.lost h1 { font: italic 400 64px/1 var(--serif); margin: 0 0 12px; }
.lost p { color: var(--muted); margin: 0 0 8px; }
