:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --forest: #142c25;
  --ink: #202d25;
  --muted: #52635a;
  --line: #cccac0;
  --cream: #fff8e8;
  --sage: #c8d8bc;
  --display: "Iowan Old Style", Baskerville, Georgia, serif;
  --body: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
:where(a, button, input):focus-visible {
  outline: 2px solid #3d6954;
  outline-offset: 4px;
}
::selection { background: #d5e1be; color: var(--forest); }
.frame {
  width: min(100% - 2 * clamp(1.25rem, 6vw, 5rem), 80rem);
  margin-inline: auto;
}
.masthead {
  background: var(--forest);
  color: var(--cream);
}
.masthead a:focus-visible { outline-color: var(--sage); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
  border-bottom: 1px solid #496256;
}
.owner {
  font-size: .96rem;
  font-weight: 650;
  text-decoration: none;
}
.owner:hover { text-decoration: underline; }
.feed {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--sage);
  font-size: .89rem;
  font-weight: 550;
}
.feed:hover { color: var(--cream); }
.introduction {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: clamp(3.2rem, 8vw, 7rem) clamp(2.7rem, 6vw, 5.5rem);
}
.introduction h1 {
  margin: 0;
  font: 400 clamp(3.45rem, 8.9vw, 8.5rem)/.92 var(--display);
  letter-spacing: -.04em;
}
.introduction p {
  max-width: 26ch;
  margin: 0 0 .32rem;
  color: var(--sage);
  font-size: clamp(1rem, 1.9vw, 1.18rem);
}
.library {
  flex: 1;
  padding-block: clamp(2.6rem, 6vw, 5rem);
}
.library-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.library h2 {
  margin: 0;
  font: 400 clamp(2.3rem, 4.1vw, 4.1rem)/1 var(--display);
  letter-spacing: -.035em;
}
.count, .empty { color: var(--muted); }
.count, .photo-context, .photo-credit { margin: .3rem 0 0; }
.count { font-size: .88rem; }
.search {
  display: grid;
  gap: .32rem;
  width: min(100%, 19rem);
}
.search label {
  font-size: .78rem;
  font-weight: 670;
}
.search input, .copy-address {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid #949d92;
  border-radius: .2rem;
  background: #fffdf6;
  color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.empty { margin: 0; padding-block: 2rem; font-size: 1rem; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.75rem), 1fr));
  gap: 2rem clamp(.95rem, 2.6vw, 2rem);
  padding-top: 1.6rem;
}
.photo { min-width: 0; }
.photo-image {
  display: block;
  background: #dce0d2;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-details {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-top: .8rem;
}
.photo-details h3 {
  overflow-wrap: anywhere;
  margin: 0;
  font: 400 clamp(1.45rem, 2.3vw, 1.8rem)/1.1 var(--display);
  letter-spacing: -.02em;
}
.photo-context, .photo-credit {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .83rem;
}
.copy {
  flex: 0 0 4.65rem;
  min-height: 2.75rem;
  padding: .35rem .25rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 650;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.copy:hover { color: #46765b; }
.copy-address {
  width: min(45%, 11rem);
  font-size: .8rem;
}
.site-footer {
  padding-block: 1.1rem 1.45rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
}
.site-footer p { margin: 0; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: .65rem;
  left: .65rem;
  transform: translateY(-160%);
  padding: .65rem .9rem;
  background: var(--cream);
  color: var(--forest);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 46rem) {
  .introduction { flex-direction: column; align-items: start; }
  .introduction p { max-width: 33ch; }
}
@media (max-width: 33rem) {
  .site-header { min-height: 4rem; }
  .library-header { flex-direction: column; align-items: start; }
  .search { width: 100%; }
}
