@font-face {
  font-family: "Signifier";
  src: url("/fonts/signifier-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Diatype";
  src: url("/fonts/ABCDiatype-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Diatype";
  src: url("/fonts/ABCDiatype-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f1f2ed;
  --ink: #1b1c18;
  --muted: #6c6e66;
  --focus: #354439;
  --page-gutter: clamp(1.25rem, 4.25vw, 4rem);
  --left-gutter: max(var(--page-gutter), env(safe-area-inset-left));
  --right-gutter: max(var(--page-gutter), env(safe-area-inset-right));
  --shell-start: clamp(
    var(--left-gutter),
    calc(33vw - 14.85rem + var(--left-gutter)),
    13rem
  );
  --content-width: 48rem;
  --reading-width: 43rem;
  --type-body: clamp(1rem, 0.95rem + 0.22vw, 1.0625rem);
  --type-display: clamp(2rem, 1.72rem + 1.2vw, 2.5rem);
  --type-section: clamp(1.4rem, 1.29rem + 0.48vw, 1.65rem);
  --type-work: clamp(1.125rem, 1.04rem + 0.38vw, 1.32rem);
  --type-list: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --type-small: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  color-scheme: light;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Diatype", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 56%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

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

.home-page {
  display: grid;
  min-height: 100svh;
  align-items: center;
}

.home {
  inline-size: min(
    34rem,
    calc(100% - var(--shell-start) - var(--right-gutter))
  );
  margin-inline-start: var(--shell-start);
  padding-block: clamp(2rem, 7svh, 4rem) clamp(4rem, 14svh, 8rem);
}

.home h1,
.page h1,
.list-section h2,
.work-title {
  font-family: "Signifier", Georgia, serif;
  font-weight: 300;
}

.home h1 {
  margin: 0;
  font-size: clamp(1.55rem, 1.42rem + 0.52vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.home p {
  max-width: 32rem;
  margin: clamp(1.2rem, 3vw, 1.5rem) 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.55;
  text-wrap: pretty;
}

.home p a {
  color: var(--ink);
  white-space: nowrap;
}

.home-nav {
  display: flex;
  gap: clamp(1.35rem, 4vw, 1.75rem);
  margin-top: clamp(2.35rem, 6vw, 3.35rem);
  font-size: clamp(0.875rem, 0.84rem + 0.14vw, 0.9375rem);
}

.home-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.site-shell {
  inline-size: min(
    var(--content-width),
    calc(100% - var(--shell-start) - var(--right-gutter))
  );
  margin-inline-start: var(--shell-start);
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 5vw, 3rem);
  justify-content: space-between;
  padding-top: max(
    clamp(1.5rem, 4vw, 3.75rem),
    env(safe-area-inset-top)
  );
  font-size: var(--type-small);
}

.site-name {
  font-family: "Signifier", Georgia, serif;
  font-size: clamp(0.975rem, 0.94rem + 0.15vw, 1.05rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-shrink: 0;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-inline-start: auto;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.site-nav a[aria-current="page"] {
  color: var(--muted);
  text-decoration: none;
}

.page {
  padding-block: clamp(5.5rem, 10vw, 9rem) clamp(5rem, 10vw, 8rem);
}

.page h1 {
  margin: 0 0 clamp(3.25rem, 7vw, 4.75rem);
  font-size: var(--type-display);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.writing-list,
.plain-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.writing-list {
  max-width: var(--reading-width);
}

.writing-list li + li {
  margin-top: clamp(1.85rem, 4vw, 2.25rem);
}

.work-title {
  display: inline;
  font-size: var(--type-work);
  line-height: 1.28;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.work-authors {
  max-width: 62ch;
  margin: clamp(0.58rem, 1.5vw, 0.72rem) 0 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.work-authors strong {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.author-toggle {
  padding: 0.2em 0;
  border: 0;
  margin: -0.2em 0 -0.2em 0.25rem;
  appearance: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 56%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}

.author-toggle:hover {
  text-decoration-color: currentColor;
}

.author-toggle:focus-visible {
  border-radius: 1px;
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.lists-page {
  max-width: var(--reading-width);
}

.list-section + .list-section {
  margin-top: clamp(4rem, 8vw, 5.25rem);
}

.list-section h2 {
  margin: 0 0 clamp(1.85rem, 4.5vw, 2.35rem);
  font-size: var(--type-section);
  line-height: 1.15;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.list-group + .list-group {
  margin-top: clamp(3rem, 6vw, 3.75rem);
}

.list-group h3 {
  margin: 0 0 clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  font-size: clamp(0.7rem, 0.68rem + 0.1vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.065em;
  line-height: 1.3;
  text-transform: uppercase;
}

.plain-list {
  max-width: var(--reading-width);
}

.plain-list li {
  font-family: "Signifier", Georgia, serif;
  font-size: var(--type-list);
  font-weight: 300;
  letter-spacing: -0.008em;
  line-height: 1.48;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.plain-list li + li {
  margin-top: clamp(0.42rem, 1.2vw, 0.56rem);
}

.plain-list span {
  color: var(--muted);
  font-family: "Diatype", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.8rem, 0.77rem + 0.13vw, 0.85rem);
  letter-spacing: 0;
}

@media (max-height: 34rem) {
  .home {
    padding-block: 2rem 3rem;
  }

  .page {
    padding-top: 4rem;
  }
}

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

  .site-header {
    gap: 1rem;
  }

  .site-nav {
    gap: 0.875rem;
  }
}
