/* 番外 fanwai.xyz. The shop's own colours: cabinet wood, paper white, brass. System type only
   (web fonts for Chinese are heavy, and the usual font hosts do not load in mainland China). */
:root {
  --wood: #17130e;
  --board: #231c14;
  --paper: #edebe3;
  --dust: #b5ad9e;
  --faint: #8c8578;
  --brass: #dbcca6;
  --line: rgba(237, 235, 227, 0.12);
  --measure: 34rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wood);
  color: var(--paper);
  font: 400 1.0625rem/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brass); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--paper); }
a:focus-visible, .install:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 3rem, 66rem); margin-inline: auto; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
.mark { display: flex; align-items: center; gap: 0.7rem; color: var(--paper); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.mark img { width: 2.25rem; height: 2.25rem; border-radius: 22.5%; }
.top nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.top nav a { color: var(--dust); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--paper); }

/* the wall above the shelf: the name on the left, the phone standing on the ledge */
.wall { background: linear-gradient(#211a12, #17130e 62%); overflow: hidden; }
.stand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; padding-top: clamp(1rem, 4vw, 3.5rem); }
.says { padding-bottom: clamp(2.5rem, 7vw, 5.5rem); }
.says h1 { margin: 0; font-size: clamp(4rem, 13vw, 8.5rem); line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.says .line { margin: 1.25rem 0 0; font-size: clamp(1.375rem, 3.1vw, 2rem); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.says .what { margin: 1rem 0 0; color: var(--dust); max-width: var(--measure); }
.says .where { margin: 1.75rem 0 0; color: var(--faint); font-size: 0.9375rem; }
.install { display: inline-block; margin-top: 1.75rem; padding: 0.8rem 1.6rem; border-radius: 999px; background: var(--brass); color: var(--wood); font-weight: 600; text-decoration: none; }
.install:hover { background: var(--paper); color: var(--wood); }
.shot { width: clamp(15rem, 30vw, 20.5rem); margin: 0 1rem 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 13.5% / 6.2%; box-shadow: 0 0 0 1px rgba(237, 235, 227, 0.16), 0 -1.5rem 5rem rgba(219, 204, 166, 0.08); animation: lamp 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both; }
/* the display lamp coming on, as it does in the shop when a record starts */
@keyframes lamp { from { filter: brightness(0.4); } 35% { filter: brightness(0.72); } to { filter: brightness(1); } }
.ledge { height: clamp(1.5rem, 3vw, 2.25rem); background: url(assets/ledge.jpg) center / 100% 100% no-repeat; box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.55); position: relative; }

/* below the shelf */
main section { padding-block: clamp(3rem, 7vw, 5rem); }
main section + section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 1.75rem; font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.finds { margin: 0; display: grid; grid-template-columns: 12rem minmax(0, var(--measure)); column-gap: 2rem; row-gap: 1.4rem; }
.finds dt { font-weight: 600; }
.finds dd { margin: 0; color: var(--dust); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; max-width: 40rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: 0.9rem; }
.steps li::before { content: counter(step); width: 1.6rem; height: 1.6rem; margin-top: 0.15rem; border: 1px solid rgba(219, 204, 166, 0.6); border-radius: 50%; color: var(--brass); font-size: 0.8125rem; font-weight: 600; line-height: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--dust); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; color: var(--dust); }
.prose p:last-child { margin-bottom: 0; }

/* text pages */
.page { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem); max-width: 40rem; }
.page h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.page .dated { margin: 0 0 2.5rem; color: var(--faint); font-size: 0.9375rem; }
.page h2 { margin: 2.75rem 0 0.75rem; font-size: 1.25rem; }
.page p, .page li { color: var(--dust); }
.page p { margin: 0 0 1rem; }
.page ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.page li { margin-bottom: 0.4rem; }
.page strong { color: var(--paper); font-weight: 600; }

footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--faint); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
footer a { color: var(--dust); text-decoration: none; }
footer a:hover { color: var(--paper); }
footer span { margin-left: auto; }

@media (max-width: 46rem) {
  .stand { grid-template-columns: 1fr; gap: 2.5rem; }
  .says { padding-bottom: 0; }
  .shot { margin: 0 auto; width: min(19rem, 78vw); }
  .finds { grid-template-columns: 1fr; row-gap: 0.2rem; }
  .finds dd { margin-bottom: 1.1rem; }
  footer span { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .shot img { animation: none; } }
