:root {
  --ink: #221d17;
  --soft-ink: #5f5345;
  --paper: #f6efe2;
  --paper-deep: #efe2cd;
  --line: #cfbda1;
  --accent: #2e5c63;
  --accent-soft: #dbe9ec;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 10% -10%, #fff8ef 0%, transparent 45%),
    radial-gradient(circle at 94% 4%, #e9d7bc 0%, transparent 38%), var(--paper);
  color: var(--ink);
  font-family: "Goudy Old Style", "Palatino Linotype", serif;
  line-height: 1.45;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.shell {
  width: min(1080px, 96vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 100px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.93rem;
}

.site-nav a:hover,
.site-nav a.current {
  border-color: var(--line);
  background: var(--paper-deep);
}

.page {
  padding: 0.6rem 0 1.1rem;
}

.section {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(99, 79, 54, 0.22);
}

.section:last-child {
  border-bottom: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.55rem;
  line-height: 1.1;
  font-family: "Bodoni MT", "Didot", "Times New Roman", serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
}

p {
  margin: 0 0 0.5rem;
}

.landing p {
  max-width: 72ch;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.home-logo {
  margin: 0;
}

.home-logo img {
  display: block;
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line);
}

.home-collage {
  margin: 0;
  width: min(100%, 360px);
  justify-self: end;
  position: relative;
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.home-collage-main {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #e7d7bd;
}

.home-collage-inset {
  position: absolute;
  right: 0.35rem;
  bottom: 1rem;
  width: 44%;
  aspect-ratio: 7 / 10;
  object-fit: cover;
  border: 4px solid #f7efdf;
  box-shadow: 0 8px 18px rgba(34, 29, 23, 0.25);
  transform: rotate(6deg);
  animation: collage-float 6s ease-in-out infinite;
}

@keyframes collage-float {
  0%,
  100% {
    transform: rotate(6deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-8px);
  }
}

.link-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.link-list li {
  margin: 0.3rem 0;
}

.muted {
  color: var(--soft-ink);
  font-size: 0.96rem;
}

.text-block {
  margin: 0.75rem 0 0;
}

.text-block p {
  margin: 0.28rem 0;
}

.home-quote-divider {
  margin: 0.9rem 0 0.65rem;
  max-width: 420px;
  display: grid;
  gap: 0.32rem;
}

.home-quote-divider span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(133, 109, 79, 0.75) 0%, rgba(133, 109, 79, 0.2) 100%);
}

.home-quote-divider span:last-child {
  width: 72%;
}

.home-quote {
  margin: 0.22rem 0;
}

.home-quote-divider-inline {
  margin: 0.7rem 0 0.6rem;
}

.collection-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.collection-row {
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.collection-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.collection-meta p {
  margin: 0.28rem 0;
}

.collection-meta h3 {
  margin-top: 0.45rem;
  margin-bottom: 0.2rem;
}

.image-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.image-item {
  margin: 0;
}

.image-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #e7d7bd;
}

.image-item figcaption {
  margin-top: 0.3rem;
  font-size: 0.94rem;
}

.archive-group {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.43);
}

.archive-group summary {
  cursor: pointer;
  font-weight: 700;
}

.archive-files {
  margin-top: 0.52rem;
  display: grid;
  gap: 0.27rem;
}

.archive-files a,
.archive-files span {
  font-size: 0.95rem;
}

.inline-viewer {
  margin: 0.45rem 0 0.75rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.image-grid > .inline-viewer,
.archive-files > .inline-viewer {
  grid-column: 1 / -1;
}

.inline-frame {
  width: 100%;
  min-height: 60vh;
  border: 1px solid var(--line);
  background: #fff;
}

.inline-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.entry-block {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.entry-title {
  margin-bottom: 0.45rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(110, 88, 61, 0.28);
}

.sub-entry {
  margin: 0.95rem 0;
}

.stats-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.stats-list li {
  margin: 0.26rem 0;
}

.file-links {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.file-links li {
  margin: 0.2rem 0;
}

.site-footer {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.8rem 0 1rem;
  color: #4a4035;
  border-top: 1px solid #c6b18f;
  background: linear-gradient(180deg, #eadbc2 0%, #e2d0b4 100%);
}

.footer-inner {
  width: min(1080px, 96vw);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-family: "Bodoni MT", "Didot", "Times New Roman", serif;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.footer-contact-line {
  margin: 0.2rem 0;
  font-size: 0.82rem;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.18rem 0.42rem;
}

.footer-contact-item {
  white-space: nowrap;
}

.footer-sep {
  color: #7d6950;
  line-height: 1;
}

.footer-contact a {
  color: #2f5d63;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-collage {
    justify-self: start;
    width: min(100%, 315px);
  }

  .home-collage-inset {
    width: 42%;
    bottom: 0.75rem;
  }

  .collection-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .home-collage {
    width: min(100%, 285px);
  }

  .collection-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-collage-inset {
    animation: none;
  }
}
