@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Gothic+A1:wght@300;400;500;600;700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

::selection,
mark {
  background-color: #f0e1be;
  color: #1d1d1d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, opacity 0.2s ease;
  line-height: 1.7;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 2em auto;
  padding: 2em;
  font-family: 'Gothic A1', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  letter-spacing: -0.008em;
  background-color: #f0f0ec;
  color: #555;
  font-size: 16px;
  line-height: 1.6em;
  max-width: 40em;
}

strong {
  font-weight: 600;
}

cite {
  font-family: 'Cormorant', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: -0.2px;
  line-height: 1em;
  font-style: italic;
}

strong,
a,
code,
abbr,
var,
pre,
blockquote,
s,
ul,
ol,
li {
  font-size: inherit !important;
}

sub,
sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.4em;
}

sub {
  bottom: -0.2em;
}

s {
  text-decoration: line-through;
  opacity: 0.5;
}

blockquote {
  display: block;
  border-left: 1px solid #555;
  padding-left: 2em;
  margin: 2em 0;
}

hr {
  border: none;
  height: 1px;
  border-top: 1px solid #999;
  margin: 0 0;
  opacity: 0.5;
}

code,
var,
pre {
  font-family: 'Inconsolata', monospace;
  letter-spacing: 0;
  font-style: normal;
  padding: 0px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em 0.8em 1.5em;
  background-color: transparent;
  z-index: 1000;
}

header h1 {
  font-size: 1em;
  margin: 0;
  font-weight: 400;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

header h1 a {
  font-weight: 400 !important;
  color: #888 !important;
  text-decoration: none;
  position: relative;
}

header h1 a:hover {
  color: #000 !important;
}

header h1 a:first-of-type {
  font-weight: 500 !important;
  color: #555 !important;
}

header h1 a:not(:last-of-type)::after {
  content: "›";
  font-family: 'Inter', sans-serif;
  margin: 0 0.1em 0 0.5em;
  color: #bbb;
  font-weight: 400;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5em;
}

button {
  border: 0;
  background-color: transparent;
  font-size: 1em;
  font-family: 'Gothic A1', sans-serif;
}

nav ul li a,
.button {
  text-decoration: none;
  color: #888;
  font-weight: 400;
  position: relative;
  transition: color 0.2s ease;
}

nav a:hover,
.button:hover {
  color: #000;
  cursor: pointer;
}

header a.active,
header h1 a,
.button:active,
.button.is-checked {
  font-weight: 500;
  color: #555;
  text-decoration: none;
  position: relative;
}

header a.active::after,
.button.is-checked::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background-color: #555;
  border-radius: 50%;
}

header li.toggle {
  display: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 0px auto 0;
  padding: 1em 1.5em;
}

main p {
  margin: 0.3em 0;
}

main figure,
main h1,
main h2,
main h3,
main h4,
main ul {
  margin: 1em 0;
  line-height: 1.7;
  font-weight: 400;
}

h1 {
  font-size: 1.5em;
  font-weight: 400;
  text-align: left;
  margin: 2em 0 1em 0;
  padding: 0;
}

h2 {
  font-size: 1.2em;
  font-weight: 500;
  text-align: left;
  margin: 1em 0 1em 0;
}

h3,
h4,
h5,
h6 {
  font-size: 1em;
  font-weight: 500;
  text-align: left;
  margin: 2em 0 0em 0;
}

main {
  margin-top: 2em;
  max-width: 100%;
}

.page-title {
  margin-bottom: 0 !important;
}

.page-title a {
  text-decoration: none !important;
}

.page-subtitle {
  opacity: 0.7;
  font-weight: 400;
  margin: 0.2em 0 2em 0;
}

ol,
ul {
  padding: 0em;
  margin: 0;
}

main ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

main ul>li {
  position: relative;
  padding-left: 1.5em;
  margin: 0.2em 0;
  line-height: 1.7;
}

main ul>li::before {
  content: '•';
  position: absolute;
  left: 0.5em;
  top: 0.7em;
  font-size: 0.6em;
  color: #999;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size, 300px), 1fr));
  grid-gap: 1em;
}

.gallery figure,
.gallery figure img {
  padding: 0;
  margin: 0;
  text-align: center;
}

figure {
  padding: 1em 0;
}

figure img,
iframe {
  width: 100%;
  height: auto !important;
  border: 0;
}

figcaption,
small {
  margin: 1em 0 0 0;
  font-size: 0.9em !important;
  opacity: 0.7;
  text-align: center;
}

main a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #bbb;
  color: #555;
  position: relative;
  display: inline;
  transition: color 0.2s ease;
}

main a:hover {
  color: #555;
  text-decoration-color: #555;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.avatar {
  display: block;
  float: right;
  width: 25%;
  margin: 0 0 1em 1em;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

footer {
  position: relative;
  margin: 6em 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding: 1.5em;
  background-color: transparent;
}

footer p,
footer span {
  color: #999;
  margin: 0;
  padding: 0;
}

footer nav ul {
  display: flex;
  list-style: none;
  gap: 2em;
  align-items: baseline;
}

.toggle {
  font-family: 'Inter', sans-serif;
}

.external-indicator {
  position: absolute;
  top: -0.15em;
  right: -0.5em;
  font-size: 1em;
  margin-left: 10px;
  line-height: 1;
}

#quote-text:hover {
  color: #555;
  cursor: pointer;
  user-select: none;
}

#quote-text {
  line-height: 1.7em;
  display: inline-block;
  color: #999;
  white-space: pre-wrap;
}

#quote-text::after {
  content: "\200B";
  font-family: 'Inter', sans-serif;
  display: inline;
}

#quote-text .attribution {
  white-space: nowrap;
  display: inline-block;
}

p {
  margin-bottom: 0;
}

p em {
  display: block;
  margin-bottom: 1.2em;
}