@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader/Newsreader%5Bopsz%2Cwght%5D.woff2")
    format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2efe7;
  --ink: #22231f;
  --muted: #66675f;
  --hairline: rgba(34, 35, 31, 0.22);
  --blue-gray: #6d7f8c;
  --note-paper: #f8f5ed;
  --focus: #315e7a;
  --page-gutter: clamp(1rem, 3.1vw, 3.5rem);
  --copy-width: 44rem;
  --note-width: min(20rem, calc(100vw - 2rem));
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Times New Roman", Times, serif;
  font-optical-sizing: auto;
  font-size: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-color: var(--hairline);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.21em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  border-radius: 0.08em;
  outline: 2px solid var(--focus);
  outline-offset: 0.18em;
}

main {
  padding-block: var(--page-gutter) clamp(4rem, 9vh, 7rem);
}

.art-plate {
  margin: 0 var(--page-gutter);
}

.layout-horizon main {
  padding-top: 0;
}

.layout-horizon .art-plate {
  margin-inline: 0;
}

.art-plate picture,
.art-plate img {
  display: block;
  width: 100%;
}

.art-plate img {
  height: auto;
  background: #d8dcd8;
}

.identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  width: min(var(--copy-width), calc(100% - (2 * var(--page-gutter))));
  margin: clamp(2.25rem, 4.5vw, 4.25rem) auto 0;
}

.identity__header {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: 0.95rem;
}

.identity__header h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
  row-gap: 0.04rem;
  margin: 0;
  font-size: clamp(1.16rem, 1.5vw, 1.32rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.identity__name {
  font-weight: 500;
}

.identity__descriptor {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0;
}

.facts {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 0.68rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.05rem, 1.34vw, 1.18rem);
  font-weight: 400;
  line-height: 1.45;
}

.facts > li {
  position: relative;
  padding: 0 0 0 1.08em;
}

.facts > li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "•";
  color: var(--blue-gray);
}

.annotation-trigger {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, var(--blue-gray) 78%, transparent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
}

.annotation-trigger:hover,
.annotation-trigger[aria-expanded="true"] {
  text-decoration-style: solid;
  text-decoration-color: var(--blue-gray);
}

.annotation-note {
  position: fixed;
  inset: auto;
  width: var(--note-width);
  max-height: min(24rem, calc(100dvh - 2rem));
  margin: 0;
  padding: 1rem 1.05rem 0.95rem;
  overflow: auto;
  border: 1px solid rgba(34, 35, 31, 0.31);
  border-radius: 0;
  color: var(--ink);
  background: var(--note-paper);
  box-shadow: 0 0.85rem 2.4rem rgba(34, 35, 31, 0.13);
  font-family: "Newsreader", "Iowan Old Style", "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.38;
}

.annotation-note:not(:popover-open) {
  display: none;
}

.annotation-note:popover-open {
  display: block;
}

.annotation-note::backdrop {
  background: transparent;
}

.annotation-note p {
  margin: 0;
}

.annotation-note a {
  display: inline-block;
  margin-top: 0.72rem;
  color: #3f5663;
  font-size: 0.92rem;
}

.contact {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  margin: 0;
  color: #51554f;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  font-variant-ligatures: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact a:hover {
  border-bottom-color: var(--hairline);
}

.contact__local {
  color: #92948d;
}

.contact__domain {
  font-weight: 500;
}

@media (max-width: 699px) {
  :root {
    --page-gutter: 1rem;
  }

  main {
    padding-top: 1rem;
  }

  .identity {
    display: block;
    margin-top: 2rem;
  }

  .identity__header h1 {
    font-size: 1.14rem;
    line-height: 1.42;
  }

  .contact {
    margin-top: 1.2rem;
    font-size: 0.74rem;
  }

  .facts {
    gap: 0.72rem;
    font-size: 1.075rem;
    line-height: 1.45;
  }

  .facts > li {
    padding-left: 0.95em;
  }

  .annotation-note {
    width: calc(100vw - 2rem);
  }
}

@media (forced-colors: active) {
  .annotation-trigger {
    text-decoration-color: LinkText;
  }

  .annotation-note {
    border: 1px solid CanvasText;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .annotation-note:popover-open {
    animation: note-appear 90ms ease-out;
  }

  @keyframes note-appear {
    from {
      opacity: 0;
      translate: 0 0.2rem;
    }
  }
}
