/* Shelf's website, in the app's own quiet style: paper, ink, one accent. */
:root {
  --paper: #fbfbfd; --raised: #f2f2f5; --card: #ffffff; --ink: #1d1d1f; --soft: #55555a; --faint: #86868b;
  --rule: rgba(0,0,0,.08); --accent: #0a84ff; --line: rgba(10,132,255,.16);
  --shadow: 0 18px 50px rgba(0,0,0,.12); --shadow-sm: 0 6px 18px rgba(0,0,0,.10);
  --serif: "New York", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111113; --raised: #1c1c1f; --card: #1a1a1d; --ink: #f5f5f7; --soft: #b0b0b5; --faint: #7c7c82;
    --rule: rgba(255,255,255,.09); --line: rgba(10,132,255,.22); --shadow: 0 18px 50px rgba(0,0,0,.55); --shadow-sm: 0 6px 18px rgba(0,0,0,.45); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
img { display: block; }
main { max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }

/* The accent light and fine line art, from the top-right corner, as in the app. */
.glow { position: fixed; inset: 0 0 auto 0; height: 560px; pointer-events: none; z-index: -1;
  background: radial-gradient(55% 90% at 92% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%); }
.lineart { position: absolute; top: 0; right: 0; width: min(600px, 70vw); color: var(--line); pointer-events: none; z-index: -1; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 999px;
  font: 600 14.5px var(--sans); border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.pill:hover { transform: translateY(-1px); }
.pill.small { padding: 7px 14px; font-size: 13px; }
.pill.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.pill.secondary { background: color-mix(in srgb, var(--accent) 12%, var(--raised)); color: var(--ink); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 17px var(--sans); }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.pill) { color: var(--soft); font-size: 14px; }
.nav nav a:not(.pill):hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; max-width: 780px; margin: 30px auto 0; }
.hero-icon { margin: 0 auto 26px; border-radius: 22px; filter: drop-shadow(0 14px 30px rgba(233,119,159,.35)); }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.06; margin: 0; }
.lede { color: var(--soft); font-size: clamp(17px, 2vw, 19.5px); margin: 22px auto 0; max-width: 620px; }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.small-print { color: var(--faint); font-size: 13px; }

/* The app, recreated in HTML */
.window { margin: 70px auto 0; max-width: 980px; border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
.window-bar { height: 34px; display: flex; gap: 8px; align-items: center; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--rule); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-body { display: grid; grid-template-columns: 200px 1fr; min-height: 470px; }
.w-side { background: var(--raised); border-right: 1px solid var(--rule); padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.w-side .w-search { background: var(--card); border: 1px solid var(--rule); border-radius: 7px; padding: 5px 9px; color: var(--faint); margin-bottom: 10px; font-size: 12px; }
.w-side span { padding: 4px 9px; border-radius: 6px; color: var(--ink); }
.w-side span.on { background: var(--accent); color: #fff; }
.w-side b { font-size: 11px; color: var(--faint); font-weight: 600; margin: 12px 9px 2px; }
.w-main { padding: 26px 30px; position: relative; overflow: hidden;
  background: radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.w-date { color: var(--faint); font-size: 12px; }
.w-greeting { font: 400 30px var(--serif); margin-top: 2px; }
.w-sub { color: var(--soft); font-size: 13.5px; }
.w-row-title { font-weight: 600; font-size: 15px; margin: 22px 0 10px; }
.w-continue { display: flex; gap: 14px; }
.w-card { display: flex; gap: 12px; align-items: center; padding: 11px; width: 290px; border-radius: 12px; background: var(--raised); border: 1px solid var(--rule); }
.w-card img { width: 46px; height: 68px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-sm); }
.w-card b { display: block; font-size: 13px; } .w-card small { color: var(--soft); font-size: 11.5px; }
.w-card em { display: block; height: 3px; border-radius: 3px; margin-top: 10px; width: 170px;
  background: linear-gradient(90deg, var(--accent) calc(var(--p) * 100%), var(--rule) 0); }
.w-covers { display: flex; gap: 18px; }
.w-covers img { width: 104px; height: 156px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.w-covers img:hover { transform: translateY(-4px) scale(1.02); }

/* Sections */
section { margin-top: 130px; }
section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.features h2 { text-align: center; }
.features h2 span { color: var(--faint); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 54px; }
.grid3 article, .ways article { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; box-shadow: 0 1px 0 var(--rule); }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  background: color-mix(in srgb, var(--accent) 12%, var(--raised)); color: var(--accent); }
.grid3 h3, .ways h3 { font-size: 17px; margin: 16px 0 6px; }
.grid3 p, .ways p { color: var(--soft); margin: 0; font-size: 14.5px; }

/* Friends */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.split p { color: var(--soft); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--ink); font-size: 15px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); margin-top: 3px; }
.share-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.share-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.share-head small { display: block; color: var(--soft); font-size: 12.5px; }
.share-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.lvl { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.lvl.friends { background: color-mix(in srgb, var(--accent) 14%, var(--raised)); color: var(--accent); }
.lvl.everyone { background: color-mix(in srgb, #30d158 16%, var(--raised)); color: #1f9d48; }
.lvl.me { background: var(--raised); color: var(--soft); }
.share-finished { border-top: 1px solid var(--rule); padding-top: 14px; }
.share-finished small { color: var(--faint); font-size: 12px; }
.mini-covers { display: flex; gap: 10px; margin-top: 10px; }
.mini-covers img { width: 66px; height: 98px; object-fit: cover; border-radius: 5px; box-shadow: var(--shadow-sm); }

/* Museum */
.museum { text-align: center; }
.museum-lede { color: var(--soft); max-width: 640px; margin: 18px auto 0; font-size: 17px; }
.note-stage { perspective: 1400px; margin: 56px auto 0; max-width: 760px; padding: 20px 0 40px; }
.note-stage img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.25);
  transform: rotateX(8deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.credit { color: var(--faint); font-size: 12px; margin: 0; }

/* Install */
.install { text-align: center; }
.install-lede { color: var(--soft); font-size: 17px; margin: 14px 0 0; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; text-align: left; }
.ways .pill { margin-top: 16px; }
.tag { font: 600 11px var(--sans); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--raised));
  padding: 3px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
.cmd { display: flex; align-items: center; gap: 8px; margin-top: 16px; background: var(--raised); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 8px 8px 12px; }
.cmd code { flex: 1; min-width: 0; font: 12.5px var(--mono); color: var(--ink); overflow-x: auto; white-space: nowrap; user-select: all; scrollbar-width: none; }
.cmd button { flex: none; border: 0; border-radius: 7px; padding: 6px 10px; font: 600 12px var(--sans); cursor: pointer;
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }

/* Find a shelf */
.find-section { text-align: center; }
.find-section h2 { font-size: clamp(24px, 3vw, 32px); }
.find { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; }
.find input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font: 15px var(--sans); }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 30px 24px 50px; display: flex; justify-content: space-between; gap: 16px;
  color: var(--faint); font-size: 13px; border-top: 1px solid var(--rule); }
.site-footer span { display: inline-flex; align-items: center; gap: 8px; }

/* Profile pages (/u/<username>) */
.person { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--accent) 18%, var(--raised)); font: 600 26px var(--sans); color: var(--ink); }
.share-head .avatar { width: 42px; height: 42px; font-size: 15px; }
.who { flex: 1; min-width: 220px; }
.who h1 { font-size: 36px; line-height: 1.15; margin: 0; }
.handle { color: var(--soft); margin-top: 2px; }
.bio { color: var(--soft); margin: 8px 0 0; max-width: 60ch; }
.actions { display: flex; gap: 10px; }
.shelf { margin-top: 48px; }
.shelf h2 { font: 600 19px var(--sans); letter-spacing: 0; margin: 0 0 16px; display: flex; gap: 10px; align-items: baseline; }
.shelf h2 small { font: 400 13px var(--sans); color: var(--faint); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 26px 22px; }
.card { display: block; color: inherit; }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; transition: transform .25s ease; }
.cover.wide { aspect-ratio: 16 / 10; } .cover.square { aspect-ratio: 1 / 1; }
.card:hover .cover { transform: translateY(-3px); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .typeset { padding: 12px; text-align: center; font: 500 14px/1.25 var(--serif); color: var(--soft); }
.done { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.5);
  color: #fff; font: 700 11px var(--sans); display: grid; place-items: center; }
.title { margin-top: 9px; font: 500 13px/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.by { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty, .note { text-align: center; color: var(--soft); padding: 80px 0; }
.profile-footer { margin-top: 70px; color: var(--faint); font-size: 12.5px; text-align: center; }

/* Phones and small windows */
@media (max-width: 860px) {
  .grid3, .ways { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .window-body { grid-template-columns: 1fr; }
  .w-side { display: none; }
  .w-continue .w-card:nth-child(2) { display: none; }
  .w-covers img:nth-child(n+4) { display: none; }
  section { margin-top: 90px; }
}
@media (max-width: 560px) {
  main { padding: 28px 16px 60px; }
  .nav { padding: 12px 16px; } .nav nav a:not(.pill) { display: none; }
  .w-main { padding: 20px 16px; } .w-card { width: 100%; }
  .w-covers { gap: 12px; } .w-covers img { width: 30%; height: auto; aspect-ratio: 2 / 3; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 20px 14px; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
