@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --bg: #eeeaf6;
  --text: #000;
  --muted: #555;
  --muted-2: #888;
  --rule: rgba(0, 0, 0, 0.12);
  --maxw: 700px;
}

body {
  font-family: 'Libre Baskerville', serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 40px;
  max-width: var(--maxw);
  margin: auto;
  line-height: 1.8;
}

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

a:hover {
  text-decoration: underline;
}

h1 {
  margin-bottom: 20px;
  line-height: 2.8;
}

p {
  margin-bottom: 1em;
}

.double-space {
  margin-bottom: 3em;
}

ul {
  list-style: disc;
  padding-left: 65px;
  line-height: 1.8;
  margin: 0;
}

ul li {
  margin-bottom: 5px;
}

.menu {
  margin-top: 30px;
  margin-left: 30px;
}

.menu p {
  margin-bottom: 8px;
}

.writing {
  margin-top: 20px;
}

.writing-label,
.section-label {
  display: inline-block;
  margin-left: 30px;
  margin-top: 20px;
}

.back-button {
  display: inline-block;
  margin-bottom: 15px;
  margin-left: 10px;
  font-size: 50px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.back-button:hover {
  color: var(--muted);
  cursor: pointer;
}

.inspired-by {
  position: fixed;
  right: 20px;
  bottom: 20px;
  font-size: 10px;
  color: var(--muted);
  background-color: var(--bg);
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  z-index: 1000;
}

.inspired-by:hover {
  color: #333;
}

.post-date {
  position: absolute;
  top: 45px;
  right: 65px;
  font-size: 15px;
  color: var(--muted-2);
  opacity: 0.8;
}

figure {
  text-align: center;
  margin-top: 30px;
}

figure img {
  width: 100%;
  max-width: 600px;
  opacity: 0.9;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

figure figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

.cite-rule {
  margin-top: 60px;
  margin-bottom: 18px;
  border: 0;
  border-top: 1px solid var(--rule);
}

.citation {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding-bottom: 30px;
}

.citation-label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: #777;
  margin-bottom: 6px;
}

.citation-entry i {
  font-style: italic;
}

.cite {
  text-decoration: none;
  color: inherit;
  margin-left: 0.1em;
}

.cite:hover {
  text-decoration: underline;
}

.icon-list {
  list-style: none;
  padding-left: 65px;
  margin: 0;
}

.icon-list li {
  list-style: none;
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 5px;
}

.inline-gap { display: inline-block; width: 3em; }


.gallery.masonry {
  column-count: 3;
  column-gap: 10px;
}

.gallery.masonry .gallery-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
}

.gallery.masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: initial;
  opacity: 0.95;
  transition: opacity 120ms ease, transform 120ms ease;
}

.gallery.masonry .gallery-item:hover img {
  opacity: 1;
  transform: scale(1.01);
}

@media (max-width: 900px) {
  .gallery.masonry { column-count: 2; }
}
@media (max-width: 520px) {
  .gallery.masonry { column-count: 1; }
}

.projects {
  margin-left: 30px;
  margin-top: 10px;
  display: grid;
  gap: 18px;
}

.project-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
}

.project-media {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: opacity 120ms ease, transform 120ms ease;
  display: block;
}

.project-media:hover img {
  opacity: 1;
  transform: scale(1.01);
}

.project-titleline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.project-title {
  margin: 0;
  line-height: 1.2;
  font-size: 18px;
}

.project-gh {
  font-size: 12px;
  color: var(--muted-2);
  text-decoration: none;
}

.project-gh:hover {
  text-decoration: underline;
}

.project-desc {
  margin: 8px 0 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-credit {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 6px;
}

.project-credit a {
  color: inherit;
  text-decoration: underline;
}

.section-spacer {
  height: 32px;
}

:root {
  --icon-hover: #840c0c;
}

a.icon-link {
  transition: color 140ms ease, text-decoration-color 140ms ease;
  text-decoration: none;
  text-decoration-color: currentColor;
}

a.icon-link:hover {
  color: var(--icon-hover);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

