/* thisismyscrapbook.com — the entire design lives in this one file.
   Ported from Scrapbook.dc.html; change --accent to recolour the site. */

:root {
  --accent: #7d3b34; /* alternatives from the mock: #4b6274 #5c5f45 #5f4a58 #6f5a3f */
}

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

body {
  background: #c7c6bd;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.015) 0 1px, transparent 1px 3px);
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  color: #33322c;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; }
a:hover { color: #211f19; }

.page {
  max-width: 812px;
  margin: 20px auto 40px;
  border: 1px solid #8d8c82;
  box-shadow: 2px 2px 0 rgba(0,0,0,.12);
  background: #f3f1e8;
}

/* masthead */

.masthead {
  background: #54534b;
  color: #efece0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 3px solid var(--accent);
}
.site-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 27px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: .3px;
}
.site-title .tld { color: #a7a597; font-weight: normal; }
.tagline { font-size: 10px; margin-top: 5px; color: #b9b7a9; letter-spacing: .04em; }
.updated { font-size: 10px; color: #a7a597; text-align: right; line-height: 1.5; white-space: nowrap; }
.updated b { color: #d8d5c6; }

/* nav */

.navbar {
  background: #e6e3d5;
  border-bottom: 1px solid #c8c4b2;
  display: flex;
  font-size: 11px;
}
.navbar a {
  color: #4a4840;
  text-decoration: none;
  padding: 6px 15px;
  border-right: 1px solid #d1cdbc;
  letter-spacing: .03em;
}
.navbar a:hover { background: #efece0; color: #211f19; }

/* layout */

.layout { display: grid; grid-template-columns: 152px 1fr; }

.sidebar { border-right: 1px solid #d9d5c5; background: #eceadc; padding: 16px 13px; }
.sidebar-heading {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7a766a;
  border-bottom: 1px solid #c8c4b2;
  padding-bottom: 4px;
  margin-bottom: 8px;
}
.sections { display: flex; flex-direction: column; gap: 2px; }
.sections a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #54514a;
  text-decoration: none;
  padding: 3px 4px;
}
.sections a:hover { color: #211f19; }
.sections a.active { color: var(--accent); font-weight: bold; background: #dedac9; }
.sections .count { color: #a7a290; font-weight: normal; font-size: 10px; }
.sidebar-note {
  font-size: 11px;
  line-height: 1.6;
  color: #6f6b5f;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #d9d5c5;
  font-style: italic;
}

.main { padding: 18px 20px; min-width: 0; }

/* about card (pinned note) */

.pin-card {
  position: relative;
  background: #fbf7ea;
  border: 1px solid #e2ddc6;
  box-shadow: 1px 1px 0 rgba(0,0,0,.05);
  padding: 16px 18px 15px;
  margin-bottom: 22px;
}
.pin-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.card-label {
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #a09a86;
  margin-bottom: 6px;
}
.pin-card h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #221f18;
}
.pin-card p { margin: 0 0 9px; }
.pin-card p:last-child { margin-bottom: 0; }
.dotted { border-bottom: 2px dotted #cdc6ae; }

/* posts */

.post {
  background: #fdfcf5;
  border: 1px solid #d8d4c2;
  box-shadow: 1px 1px 0 rgba(0,0,0,.06);
  padding: 15px 17px;
  margin-bottom: 20px;
}
.post-meta { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; }
.post-meta .kind {
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8f8b7d;
}
.post-meta .dot { width: 5px; height: 5px; background: var(--accent); display: inline-block; }
.post-meta .date { font-size: 10px; color: #a7a290; }

.post h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 21px;
  font-weight: bold;
  line-height: 1.24;
  margin: 0 0 10px;
  color: #221f18;
}
.post p, .pin-card p {
  font-size: 12.5px;
  line-height: 1.68;
  color: #38352c;
  text-wrap: pretty;
}
.post p { margin: 0 0 11px; }

/* photos — a fragment writes:
   <div class="photos">
     <figure class="polaroid"><img src="/photos/x.jpg" alt=""><figcaption>…</figcaption></figure>
   </div> */

.photos { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 14px; }

.polaroid {
  width: 188px;
  flex: 0 0 auto;
  margin: 0;
  position: relative;
  background: #fff;
  border: 1px solid #d0ccba;
  padding: 8px 8px 6px;
  box-shadow: 1px 1px 3px rgba(0,0,0,.12);
}
.polaroid:only-child { width: 330px; }

/* tape strip */
.polaroid::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  width: 70px;
  height: 19px;
  background: rgba(206,196,164,.55);
  border-left: 1px dashed rgba(0,0,0,.06);
  border-right: 1px dashed rgba(0,0,0,.06);
}

/* slight scatter, cycling like the mock's rotation list */
.photos .polaroid:nth-child(5n+1) { transform: rotate(-.8deg); }
.photos .polaroid:nth-child(5n+2) { transform: rotate(1.1deg); }
.photos .polaroid:nth-child(5n+3) { transform: rotate(-1.3deg); }
.photos .polaroid:nth-child(5n+4) { transform: rotate(.7deg); }
.photos .polaroid:nth-child(5n)   { transform: rotate(-.5deg); }

.polaroid img {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  background: #e7e2d1;
}
.polaroid figcaption {
  font: 11px 'Courier New', monospace;
  color: #7f775f;
  padding: 7px 3px 1px;
}

/* colophon + footer */

.colophon { border-top: 1px solid #d7d3c2; margin-top: 6px; padding-top: 14px; }
.colophon p { font-size: 11.5px; line-height: 1.65; color: #6f6b5f; font-style: italic; margin: 0; }

.footer {
  background: #e6e3d5;
  border-top: 1px solid #c8c4b2;
  padding: 8px 16px;
  font-size: 10px;
  color: #8a8676;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer a { color: #8a8676; }

/* small screens (not in the mock; collapses the sidebar above the posts) */
@media (max-width: 640px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid #d9d5c5; }
}
