:root {
  --ink: #2c231d;
  --brown: #5a2816;
  --paper: #f7f2e9;
  --shadow: rgba(43, 31, 22, .28);
}

* { box-sizing: border-box; }

html { background: #dededb; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: #6c2417; }
a:hover, a:focus { color: #9a3b25; }

.site-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 44px;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  min-height: 82px;
}

.top-nav ul {
  display: flex;
  align-self: start;
  gap: 0;
  margin: 0;
  padding: 0 12px;
  list-style: none;
  background: rgba(248, 247, 243, .94);
  border: 1px solid #bbb8b1;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  box-shadow: 2px 4px 4px rgba(0, 0, 0, .24);
}

.top-nav a {
  display: block;
  padding: 15px 12px 13px;
  color: #382719;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav [aria-current="page"] { text-decoration: underline; }
.masthead {
  position: relative;
  padding: 14px;
  background: rgba(250, 249, 245, .76);
  border: 1px solid #c9c6bf;
  box-shadow: 4px 6px 5px rgba(0, 0, 0, .24);
  transform: rotate(.1deg);
}

.masthead img {
  display: block;
  width: 100%;
  aspect-ratio: 920 / 205;
  object-fit: cover;
  border: 1px solid #a4a79f;
}

.identity-card {
  position: absolute;
  top: -12px;
  left: 22px;
  width: 226px;
  padding: 21px 24px 18px 56px;
  background: rgba(248, 247, 242, .96);
  border: 1px solid #d4d0c8;
  border-radius: 2px;
  box-shadow: 2px 4px 7px rgba(0, 0, 0, .24);
  transform: rotate(-.8deg);
}

.identity-card::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 44px;
  width: 58px;
  height: 44px;
  border: 5px solid rgba(45, 45, 37, .72);
  border-right-color: transparent;
  border-radius: 50%;
}

.identity-card strong,
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #4a2a17;
}

.identity-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 400;
}

.identity-card small { font-size: .86rem; font-weight: 700; }

.page-paper {
  margin-top: 16px;
  padding: 22px;
  background: #f7f3ec;
  border: 1px solid #d4cdc2;
  box-shadow: 5px 7px 7px var(--shadow);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
}

.post,
.widget {
  background: rgba(250, 247, 239, .75);
  border: 1px solid rgba(184, 170, 148, .65);
  box-shadow: 2px 4px 6px rgba(60, 42, 30, .22);
}

.post {
  padding: 10px 12px 0;
  background: rgba(250, 247, 239, .72) url("assets/paper.jpg") repeat;
}
.post h1, .post h2 { margin: 0; font-size: 1.75rem; line-height: 1.15; }
.post-meta { margin: 3px 0 11px; font-size: .78rem; }
.post p { margin: 0 0 16px; }

.post-footer {
  margin: 30px -4px 0;
  padding: 7px 9px;
  background: rgba(228, 216, 194, .7);
  border: 1px solid rgba(171, 150, 120, .7);
  font-size: .88rem;
}

.widget {
  position: relative;
  margin-bottom: 26px;
  padding: 12px 16px;
  background: rgba(242, 241, 236, .88);
  transform: rotate(.35deg);
}

.widget::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 39%;
  width: 72px;
  height: 18px;
  background: url("assets/tape.gif") center / 100% 100% no-repeat;
  opacity: .72;
}

.widget:nth-child(2) { transform: rotate(-.35deg); }
.widget h3 { margin: 0 0 6px; font-size: 1.25rem; }
.widget ul { margin: 0; padding-left: 17px; }
.widget li { margin: 0 0 4px; }
.band-widget img { display: block; max-width: 155px; width: 100%; margin: 4px auto 0; image-rendering: auto; }

.project h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.18;
  font-weight: 400;
}

.photo-list { display: grid; gap: 24px; }
.photo-card { margin: 0; }

.archived-photo {
  width: min(100%, 560px);
  min-height: 260px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background-image: linear-gradient(to top, rgba(20, 18, 14, .76), transparent 52%), url("assets/header.jpg");
  background-size: auto 100%;
  border: 10px solid #f6f3eb;
  box-shadow: 2px 5px 9px rgba(0, 0, 0, .3);
}

.photo-card:nth-child(1) .archived-photo { background-position: 7% center; }
.photo-card:nth-child(2) .archived-photo { background-position: 52% center; }
.photo-card:nth-child(3) .archived-photo { background-position: 94% center; }

.archived-photo span {
  margin: 13px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(42, 30, 22, .75);
  font-family: Georgia, "Times New Roman", serif;
}

.photo-card figcaption { max-width: 620px; margin-top: 8px; }

.comments {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #c7baa8;
}

.comments h3 { margin: 0 0 4px; font-size: 1.35rem; }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 6px 0;
  color: #675e55;
  font-size: .76rem;
}

.colophon a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 18px, 960px); }
  .top-nav { min-height: 62px; }
  .top-nav ul { width: 100%; justify-content: center; }
  .top-nav a, .top-nav span { padding: 13px 9px 11px; font-size: .82rem; }
  .masthead { padding: 7px; }
  .masthead img { min-height: 160px; object-position: center; }
  .identity-card { left: 10px; top: -8px; width: 190px; padding: 17px 18px 15px 42px; }
  .identity-card strong { font-size: 1.6rem; }
  .page-paper { padding: 14px; }
  .home-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .widget { margin-bottom: 0; }
  .band-widget { grid-column: 1 / -1; }
  .archived-photo { min-height: 230px; }
}

@media (max-width: 480px) {
  .identity-card { width: 172px; padding-left: 38px; }
  .sidebar { grid-template-columns: 1fr; }
  .band-widget { grid-column: auto; }
  .colophon { display: block; }
}
