/* MinAlbum — "Norwegian darkroom" tokens */
:root {
  --bg: #171310;
  --bg-soft: #1f1a15;
  --paper: #f7f3ec;
  --amber: #f2b550;
  --amber-soft: rgba(242, 181, 80, 0.55);
  --text: #ede6db;
  --muted: #a79c8e;
  --faint: #6e655b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; font-size: 16px; line-height: 1.55;
}
a { color: var(--amber); }

.page { display: flex; flex-direction: column; min-height: 100vh; }

/* quiet chrome */
.site-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px 26px 0;
}
.wordmark { font-size: 17px; font-weight: 700; color: var(--amber); letter-spacing: -0.2px; }
.me { font-size: 13px; color: var(--muted); }
.site-foot {
  margin-top: auto; padding: 22px 26px 26px;
  font-size: 12.5px; color: var(--faint);
}

/* share page */
.share {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 34px 22px 10px; text-align: center;
}
.polaroid {
  background: var(--paper);
  padding: 12px 12px 6px;
  width: min(300px, 84vw);
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.35);
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s;
}
.polaroid:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 26px 60px rgba(0,0,0,0.55), 0 3px 10px rgba(0,0,0,0.4); }
.film {
  aspect-ratio: 1 / 0.92;
  background:
    radial-gradient(circle at 50% 42%, var(--amber-soft) 0%, rgba(242,181,80,0.18) 34%, rgba(242,181,80,0.04) 62%, transparent 78%),
    #2a211b;
  border-radius: 2px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  position: relative;
}
.film::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 14px, rgba(247,243,236,0.05) 14px 15px);
  pointer-events: none;
}
.film .count {
  position: relative; z-index: 1;
  font-size: 12px; color: rgba(247,243,236,0.8);
  padding: 8px 10px;
}
.hand {
  font-family: 'Caveat', cursive;
  font-size: 27px; line-height: 1.15;
  color: #3b3128;
  padding: 8px 4px 10px;
  font-weight: 600;
}

.who { margin-top: 30px; font-size: 17px; max-width: 34ch; }
.who strong { color: var(--text); font-weight: 700; }
.note { color: var(--muted); margin-top: 6px; font-size: 14.5px; max-width: 36ch; }

.btn-google {
  display: inline-flex; align-items: center; gap: 11px;
  background: #ffffff; border: 1px solid #dadce0; border-radius: 4px;
  padding: 0 16px; height: 44px; min-width: 214px; justify-content: center;
  font-family: Roboto, 'DM Sans', sans-serif;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.2px; color: #3c4043;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.45);
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 26px;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 2px 6px rgba(0,0,0,0.55); }
.btn-google:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn-google svg { flex-shrink: 0; }

.fine { color: var(--faint); font-size: 12.5px; margin-top: 18px; max-width: 40ch; }

/* home */
.home { flex: 1; max-width: 560px; width: 100%; margin: 0 auto; padding: 72px 24px 24px; }
.home h1 {
  font-size: clamp(32px, 6vw, 44px); font-weight: 700; letter-spacing: -1px;
  line-height: 1.08; max-width: 12ch;
}
.lede { color: var(--muted); font-size: 17px; margin: 16px 0 30px; max-width: 38ch; }
.home .btn-google { margin-top: 0; }
.plain { list-style: none; margin-top: 44px; }
.plain li {
  padding: 12px 0; border-top: 1px solid #2a2420;
  color: var(--muted); font-size: 14.5px;
}
.plain li:last-child { border-bottom: 1px solid #2a2420; }

/* gallery */
.gallery { flex: 1; max-width: 880px; width: 100%; margin: 0 auto; padding: 30px 22px; }
.gallery-title { font-size: clamp(30px, 5vw, 40px); color: var(--paper); }
.gallery .note { margin: 2px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.grid img { width: 100%; border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* docs */
.doc { max-width: 620px; margin: 0 auto; padding: 40px 22px 60px; }
.doc h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.docdate { color: var(--faint); font-size: 13.5px; margin: 4px 0 10px; }
.doc h2 { font-size: 16.5px; margin: 28px 0 8px; font-weight: 600; color: var(--paper); }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--muted); }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc a { color: var(--amber); }

/* one orchestrated entrance: the polaroid settles */
@media (prefers-reduced-motion: no-preference) {
  .polaroid { animation: settle 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes settle {
    from { opacity: 0; transform: rotate(-6deg) translateY(14px); }
    to { opacity: 1; transform: rotate(-2.5deg) translateY(0); }
  }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .home { padding-top: 56px; }
}
