@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-regular.ttf") format("truetype");
}

:root {
  color-scheme: light;
  background: #eee8ef;
  color: #4e4756;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --edge: clamp(28px, 8vw, 128px);
}

* { box-sizing: border-box; }
body { margin: 0; }

/* Independent, blurred colour fields also work without JavaScript or WebGL. */
.dream {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #eee8ef;
}
.dream::before,
.dream::after {
  content: "";
  position: absolute;
  inset: -25%;
  will-change: transform;
}
.dream::before {
  background:
    radial-gradient(ellipse at 22% 38%, #c4b3d1 0%, transparent 52%),
    radial-gradient(ellipse at 76% 60%, #e5c2cd 0%, transparent 52%);
  animation: lavender-drift 32s -17s ease-in-out infinite alternate;
}
.dream::after {
  background:
    radial-gradient(ellipse at 15% 85%, #bfcad9a6 0%, transparent 50%),
    radial-gradient(ellipse at 68% 22%, #fae9daba 0%, transparent 45%);
  animation: rose-drift 39s -12s ease-in-out infinite alternate;
}
#dream-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.dream[data-renderer="webgl"] #dream-canvas { opacity: 1; }
.dream[data-renderer="webgl"]::before,
.dream[data-renderer="webgl"]::after {
  display: none;
  animation: none;
  will-change: auto;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr;
  padding: max(clamp(40px, 8svh, 96px), env(safe-area-inset-top))
    var(--edge) max(clamp(40px, 9svh, 104px), env(safe-area-inset-bottom));
}
.masthead { margin-bottom: 20px; }
h1, nav {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .025em;
}
h1 { margin: 0; font-size: 14px; font-weight: 500; }
.profile {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  width: min(100%, 200px);
}
nav { color: #665e6d; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { margin: 0; border-top: 1px solid #665e6d26; }
.links li:last-child { border-bottom: 1px solid #665e6d26; }
a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 260ms ease;
}
.link-arrow {
  flex-shrink: 0;
  font-size: 15px;
  opacity: .5;
  transition: transform 320ms ease, opacity 320ms ease;
}
a:hover { color: #3e3549; }
a:hover .link-arrow, a:focus-visible .link-arrow { transform: translate(2px, -2px); opacity: 1; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; border-radius: 1px; }
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(280px, 1fr) auto;
  column-gap: clamp(40px, 8vw, 128px);
  row-gap: 24px;
  padding-top: 24px;
}
.geometry-space {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.geometry { display: block; width: 100%; height: 100%; overflow: hidden; }
.geometry path {
  fill: none;
  stroke: #786487;
  stroke-width: .8;
  stroke-opacity: .46;
  vector-effect: non-scaling-stroke;
  stroke-linecap: butt;
  stroke-linejoin: round;
}
.quotation { grid-column: 1; grid-row: 2; align-self: end; }
.quotation { margin: 0; text-align: left; }
blockquote {
  margin: 0;
  max-width: 30ch;
  font-family: "Cormorant Garamond", "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(27px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
figcaption {
  margin-top: 18px;
  color: #625b6a;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .045em;
}
::selection { background: #cfbed9; color: #403747; }

@keyframes lavender-drift {
  from { transform: translate(-7%, -4%) rotate(-9deg) scale(1.05); }
  to { transform: translate(9%, 6%) rotate(12deg) scale(1.15); }
}
@keyframes rose-drift {
  from { transform: translate(8%, -8%) rotate(8deg); }
  to { transform: translate(-9%, 8%) rotate(-14deg) scale(1.12); }
}
@media (max-width: 700px) {
  .page {
    padding-top: max(36px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
  h1 { font-size: 13px; }
  main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(200px, 1fr) auto auto; row-gap: 32px; padding-top: 16px; }
  .geometry path { stroke-opacity: .4; }
  .quotation { grid-column: 1; grid-row: 2; }
  .profile { grid-column: 1; grid-row: 3; width: 100%; }
  .masthead { margin-bottom: 16px; }
  nav { font-size: 12px; }
  .links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
  .links li:last-child { border-bottom: 0; }
  a { gap: 6px; min-height: 44px; }
  blockquote { font-size: 27px; max-width: 26ch; }
  .quote-break { display: none; }
  figcaption { margin-top: 16px; }
}
@media (max-width: 359px) {
  main { row-gap: 28px; }
}
@media (max-height: 500px) and (min-width: 701px) {
  .page { padding-top: 24px; padding-bottom: 28px; }
  main { grid-template-rows: minmax(130px, 1fr) auto; padding-top: 0; row-gap: 8px; }
  blockquote { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .dream::before, .dream::after { animation: none; will-change: auto; }
  a, .link-arrow { transition: none; }
}
