/* Jpegle site: a pinboard of polaroids in cream, blush, rose and salmon. */
:root {
  --cream: #FFF5E4;
  --blush: #FFE3E1;
  --rose: #FFD1D1;
  --salmon: #FF9494;
  --paper: #FFFBF5;
  --ink: #573232;
  --ink-soft: #6E3F3F;
  --shadow: rgba(87, 50, 50, 0.16);
  --hand: "Noteworthy", "Marker Felt", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --body: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.6;
}
a { color: var(--ink); text-decoration-color: var(--salmon); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 5; }

/* Masthead: a single dropped polaroid with the wordmark as its caption */
.masthead { padding: 2.2rem 1.2rem 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.drop {
  background: var(--paper);
  padding: 12px 12px 46px;
  border-radius: 3px;
  box-shadow: 0 6px 14px var(--shadow);
  transform: rotate(-3deg);
  width: 170px;
  position: relative;
}
.drop svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.drop .caption { position: absolute; left: 0; right: 0; bottom: 8px; font-family: var(--hand); font-size: 1.5rem; }
.masthead .tag { margin: 1.4rem 0 .2rem; font-family: var(--hand); font-size: 1.15rem; color: var(--ink-soft); }
.masthead nav { margin-top: .8rem; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.masthead nav a {
  font-family: var(--hand); text-decoration: none; background: var(--rose);
  padding: .35rem .9rem; border-radius: 3px; box-shadow: 0 2px 4px var(--shadow);
}
.masthead nav a:nth-child(2) { transform: rotate(2deg); background: var(--cream); }
.masthead nav a[aria-current="page"] { background: var(--salmon); }

main { max-width: 980px; margin: 0 auto; padding: 0 1.1rem 3rem; }
h1, h2, h3 { font-family: var(--hand); font-weight: 700; line-height: 1.25; }
h1 { font-size: 2rem; margin: .6rem 0; }
h2 { font-size: 1.55rem; margin: 2.6rem 0 1rem; }
h2::after { content: ""; display: block; width: 64px; height: 6px; background: var(--salmon); border-radius: 3px; margin-top: .3rem; transform: rotate(-1.5deg); }
h3 { font-size: 1.2rem; margin: .2rem 0 .4rem; }

/* Polaroid cards: thick bottom border, radius 3, a strip of tape */
.board { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.print {
  background: var(--paper);
  border-radius: 3px;
  padding: 14px 14px 34px;
  box-shadow: 0 5px 12px var(--shadow);
  position: relative;
}
.print .window { background: var(--rose); border-radius: 2px; padding: .9rem 1rem; font-family: var(--hand); font-size: 1.35rem; text-align: center; }
.print:nth-child(odd) { transform: rotate(-1.2deg); }
.print:nth-child(even) { transform: rotate(1deg); }
.print:nth-child(even) .window { background: var(--cream); }
.print .tape {
  position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px;
  background: rgba(255, 148, 148, 0.45); transform: rotate(-4deg);
}
.print p, .print ol { margin: .7rem 0 0; }
.print ol { padding-left: 1.2rem; }

/* FAQ as stacked sticky notes */
.notes { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.note { background: var(--rose); padding: 1rem 1.1rem; border-radius: 3px; box-shadow: 0 3px 7px var(--shadow); border-top: 12px solid rgba(255, 148, 148, 0.55); }
.note:nth-child(3n+2) { background: var(--cream); transform: rotate(.8deg); }
.note:nth-child(3n) { transform: rotate(-.8deg); }
.note h3 { margin-top: 0; }
.note p { margin: 0; }

/* Contact: an envelope-shaped slip */
.slip {
  background: var(--paper); border: 2px dashed var(--salmon); border-radius: 3px;
  padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem;
}
.slip .mail { font-family: var(--hand); font-size: 1.3rem; word-break: break-all; }
.slip small { color: var(--ink-soft); }

/* Privacy page: the back of a print, written in lines */
.back {
  background: var(--paper);
  border-radius: 3px;
  padding: 1.4rem 1.2rem 3rem;
  box-shadow: 0 6px 14px var(--shadow);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--blush) 31px, var(--blush) 32px);
}
.back h2 { margin-top: 2rem; }
.back h2:first-of-type { margin-top: .4rem; }
.stamp {
  display: inline-block; font-family: var(--hand); border: 3px solid var(--salmon);
  color: var(--ink); padding: .25rem .8rem; border-radius: 3px; transform: rotate(-4deg); margin: .4rem 0 1rem;
}
.ledger { width: 100%; border-collapse: collapse; margin: .6rem 0; background: var(--cream); }
.ledger th, .ledger td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rose); vertical-align: top; }
.ledger th { font-family: var(--hand); font-weight: 700; }

footer { text-align: center; padding: 2rem 1rem 3rem; font-family: var(--hand); color: var(--ink-soft); }

@media (min-width: 640px) {
  .board { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .notes { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.4rem; }
  .back { padding: 2rem 2.4rem 3.4rem; }
}
@media (min-width: 900px) {
  .notes { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .print, .note { transition: transform .2s ease; }
  .print:hover, .note:hover { transform: rotate(0) scale(1.01); }
}
