@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond-regular.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  --bg: #fff;
  --ink: rgba(0, 0, 0, 0.85);
  --placeholder: #eee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --ink: rgba(255, 255, 255, 0.85);
    --placeholder: #1f1f1f;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101010;
  --ink: rgba(255, 255, 255, 0.85);
  --placeholder: #1f1f1f;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --ink: rgba(0, 0, 0, 0.85);
  --placeholder: #eee;
}

html {
  font-size: 84.7%;
}

body {
  margin: 0;
  padding: 3rem;
  background: var(--bg);
  color: var(--ink);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
}

a:active {
  opacity: 0.7;
}

.bio {
  margin: 0;
}

nav {
  margin-top: 1.2em;
}

.theme-toggle {
  position: fixed;
  right: 1.4rem;
  bottom: 1.3rem;
  z-index: 20;
  color: var(--ink);
  line-height: 0;
  padding: 0.4rem;
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
}

nav p,
.back {
  margin: 0;
}

.back {
  margin-top: 1.2em;
}

.projects {
  margin-top: 3rem;
}

.project {
  margin: 0 0 3.2rem;
  width: 40.5%;
  display: flex;
  flex-direction: column;
}

/* every entry leads with its text: the caption marks where an entry
   begins, so media never abuts media across an entry boundary */
.project figcaption {
  order: -1;
  margin: 0 0 0.9em;
}

@media (max-width: 700px) {
  .project {
    width: 100% !important;
  }
}

.project a {
  text-decoration: none;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
}

.project .images > a {
  display: block;
}

.project .images > *:not(:last-child) {
  margin-bottom: 0.5rem;
}

.project img.artwork {
  width: 80%;
}

.project .live-video {
  display: block;
  width: 58%;
  height: auto;
}

.project .live-video.landscape {
  width: 100%;
}

.project figcaption a {
  text-decoration: underline;
}

img.zoomable {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
}

.project figcaption {
  margin-top: 0.5em;
  font-family: "Times", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
}

.project .title {
  font-style: normal;
}

.project .meta {
  font-style: italic;
}

.project .desc {
  margin: 0.8em 0 0;
  max-width: 62ch;
  font-family: "Times", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
}

.placeholder {
  width: 100%;
  background: var(--placeholder);
}

.roll-feed {
  min-height: calc(100vh - 18rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.roll-feed .entry {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.roll-feed .entry img {
  display: block;
  max-width: min(90%, 700px);
  max-height: 62vh;
  width: auto;
  height: auto;
}

/* Apple Notes recreation: system font, iOS metrics and paper colors */
.roll-feed .note-card {
  --note-ink: #000;
  --note-sub: #8e8e93;
  width: fit-content;
  max-width: min(440px, 90vw);
  padding: 0;
  background: transparent;
  color: var(--note-ink);
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: subpixel-antialiased;
}

@media (prefers-color-scheme: dark) {
  .roll-feed .note-card {
    --note-ink: #e8e8ed;
  }
}

:root[data-theme="dark"] .roll-feed .note-card {
  --note-ink: #e8e8ed;
}

:root[data-theme="light"] .roll-feed .note-card {
  --note-ink: #000;
}

.roll-feed .note-date {
  text-align: center;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0;
  color: var(--note-sub);
  margin: 2px 0 14px;
}

.roll-feed .note-body {
  margin: 0;
}

.roll-feed figcaption {
  margin-top: 0.7em;
  font-family: "Times", "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
}

.roll-feed .stamp {
  font-style: italic;
}

.astro {
  margin-top: 3.2rem;
  max-width: 62ch;
}

.astro-modes a {
  font-style: normal;
}

.astro-modes a.active {
  text-decoration: none;
  font-style: italic;
}

.astro-form {
  margin-top: 2.4rem;
}

.astro-form label {
  display: block;
  margin-bottom: 0.6em;
}

.astro-form input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 2px;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
  outline: none;
}

.astro-form input[type="text"] {
  width: 16em;
  font-style: italic;
}

.astro-go {
  border: 0;
  padding: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.4em;
}

.astro-privacy,
.astro-note {
  font-family: "Times", "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
}

.astro-privacy {
  margin: 1em 0 0;
}

.astro-out {
  margin-top: 2.2rem;
}

.astro-wheel {
  margin-top: 2.4rem;
}

.astro-wheel canvas {
  display: block;
}

.astro-wheel .astro-note {
  margin: 0.5em 0 0;
}

.aspect-grid {
  margin-top: 1.4rem;
  border-collapse: collapse;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1;
}

.aspect-grid th,
.aspect-grid td {
  width: 1.9em;
  height: 1.9em;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(127, 127, 127, 0.35);
  font-weight: 400;
}

.aspect-grid th {
  font-size: 0.95rem;
}

.aspect-grid td.void {
  border: 0;
}

.astro-section {
  margin: 2em 0 0.7em;
  font-family: "Times", "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
}

.astro-line {
  margin: 0 0 0.9em;
  line-height: 1.3;
}

.astro-line.small {
  font-size: 1.05rem;
}

.astro-label {
  font-style: italic;
}

.archive-gate {
  margin-top: 3.2rem;
}

.archive-list {
  margin-top: 3.2rem;
  font-family: "Times", "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
}

.archive-list p {
  margin: 0;
}

.archive-list .archive-section {
  margin: 2.6em 0 1em;
  font-size: 1.35rem;
  line-height: 1;
}

.archive-list .archive-section:first-child {
  margin-top: 0;
}

.archive-list .drawer-body {
  margin: 1.2em 0 0;
  max-width: 62ch;
  line-height: 1.3;
}

.archive-list .drawer-note {
  margin: 1.6em 0 0;
  opacity: 0.75;
}

.archive-list img,
.archive-list video {
  display: block;
  width: min(400px, 100%);
  height: auto;
  margin: 1.4em 0;
}

body.web-page {
  overflow: hidden;
  height: 100vh;
}

#graph {
  position: fixed;
  inset: 0;
}

.web-header {
  position: relative;
  pointer-events: none;
}

.web-header a,
.web-header input {
  pointer-events: auto;
}

.web-search {
  margin: 1.2em 0 0;
}

.web-search input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 2px;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-style: italic;
  color: var(--ink);
  outline: none;
  width: 12em;
}

.reset-images {
  display: none;
  position: fixed;
  right: 4.5rem;
  bottom: 1.5rem;
  margin: 0;
  padding: 0.45em 0.9em;
  font-style: italic;
  background: var(--bg);
}

.reset-images.visible {
  display: block;
}

@media (max-width: 700px) {
  html {
    font-size: 103%;
  }

  body {
    padding: 1.4rem 1.25rem 3rem;
  }
}
