/* Instrument Sans + Instrument Serif, Latin and Latin Extended.
   Latin Extended covers Turkish (ğ, ş, İ). Each face only downloads
   the ranges the page actually uses. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f2f4f1;
  --ink: #17211c;
  --muted: #4a564f;
  --faint: #5c675f;
  --line: #d5ddd8;
  --accent: #0c684e;
  --dot: rgba(23, 33, 28, 0.05);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --cursor: url("/cursor.svg") 4 42, auto;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101412;
    --ink: #e8eeea;
    --muted: #b4c0b8;
    --faint: #93a099;
    --line: #24302b;
    --accent: #8ed4ba;
    --dot: rgba(232, 238, 234, 0.045);
    --cursor: url("/cursor-dark.svg") 4 42, auto;
  }
}

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

html,
a:any-link,
a:any-link:hover,
button,
label,
summary {
  cursor: var(--cursor);
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 4rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 0.92em;
  margin-left: 0.28em;
  background: var(--accent);
  vertical-align: -0.08em;
}

@media (prefers-reduced-motion: no-preference) {
  .caret {
    animation: blink 1.1s steps(1) infinite;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.lang {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lang a {
  color: var(--faint);
  text-decoration: none;
}

.lang a[aria-current="page"] {
  color: var(--accent);
}

.lang a:hover {
  color: var(--ink);
}

.slash {
  color: var(--line);
}

h1 {
  margin: 2.6rem 0 0;
  max-width: 11em;
  font-family: var(--serif);
  font-size: clamp(2.05rem, 5vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

main {
  margin-top: 0;
}

main section,
footer {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 1.6rem;
  align-items: baseline;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

main section:first-of-type {
  border-top: 0;
  margin-top: 2.35rem;
  padding-top: 0;
}

h2 {
  margin: 0;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
  line-height: 1.65;
}

.prose {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.prose + .prose {
  margin-top: 0.7rem;
}

.piece {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.piece a {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.piece a:hover {
  color: var(--accent);
}

.tail {
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 1.15rem;
}

.mail {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.mail:hover {
  color: var(--accent);
}

.copy {
  color: var(--faint);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .wrap {
    padding: 1.35rem 1.2rem 3.25rem;
  }

  h1 {
    margin-top: 2rem;
  }

  main section,
  footer {
    grid-template-columns: 1fr;
    row-gap: 0.3rem;
  }

  h2 {
    text-align: left;
  }
}
