/* account.css — the reader's account page, /account (2026-10-04).
 *
 * The house laws, all of them here: two fonts (Playfair Display upright for
 * the headings, Inter for everything else), no italics, nothing under 12px,
 * near-black rules, clean cards, every control at least 44px tall, and the
 * chrome left exactly as styles.css draws it on every other page. The page
 * reads styles.css's tokens (--ink, --rule-strong, --display, --ui ...)
 * rather than writing its own hex, so a change to the paper's palette
 * reaches it.
 *
 * Served immutable for a year (the .css rule in _headers): account.html
 * links it with a ?v= and that number moves with every edit.
 */

.acct {
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 0 72px;
  font-family: var(--ui);
  color: var(--ink);
}
.acct[data-state="in"] { max-width: 640px; }
.acct-view[hidden] { display: none; }

.acct-kick {
  margin: 0 0 10px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.acct-title {
  margin: 0;
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.acct-dek {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.acct-dek b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---- buttons: one shape, three weights. Every one is at least 48px tall,
   comfortably over the 44px a thumb needs. ---- */
.acct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* styles.css floors every `form button` at 9.5px for the old newsletter
   boxes (its section 6, `body form button[type="submit"]`). These are not
   those buttons, so their own size wins here, by one more class. */
.acct .acct-btn { font-size: 15px; letter-spacing: 0; }
.acct .acct-text { font-size: 14px; }
.acct-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.acct-btn[disabled] { opacity: .55; cursor: default; }
.acct-btn[hidden] { display: none; }

.acct-google { margin-top: 28px; background: var(--paper); color: var(--ink); }
.acct-google:hover { background: #f5f5f3; }
.acct-g { flex: none; width: 20px; height: 20px; }

.acct-send { background: var(--rule-strong); color: #fff; }
.acct-send:hover:not([disabled]) { background: #000; }
.acct-send b { font-weight: 600; overflow-wrap: anywhere; }

.acct-quiet { background: var(--paper); color: var(--ink); }
.acct-quiet:hover:not([disabled]) { background: #f5f5f3; }

.acct-text {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.acct-text:hover { color: var(--ink); }
.acct-text:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- "or", between the two doors ---- */
.acct-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.acct-or::before, .acct-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}

/* ---- the email form ---- */
.acct-form { margin: 0; }
.acct-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.acct-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 1px solid #8a8d93;        /* 3.4:1 on paper: a field you can see */
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--ui);
  font-size: 16px;                   /* 16px or more: iOS does not zoom in */
  color: var(--ink);
}
.acct-input::placeholder { color: var(--ink-3); opacity: 1; }
.acct-input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

.acct-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #a33c2e;
}
.acct-note.is-ok { color: var(--ink); font-weight: 600; }
.acct-note[hidden] { display: none; }

.acct-fine {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---- what an account gives: a near-black rule opens it, a plain list,
   no icons and no boxes ---- */
.acct-gives {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}
.acct-cap {
  margin: 0 0 12px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.acct-list { margin: 0; padding: 0; list-style: none; }
.acct-list li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.acct-list li:last-child { border-bottom: 0; }
.acct-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--ink);
}
.acct-list b { color: var(--ink); font-weight: 600; }
.acct-free {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.acct-legal {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}
.acct-legal a {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- the link-sent view: two buttons side by side, stacked on a phone ---- */
.acct-pair { display: flex; gap: 10px; margin-top: 22px; }
.acct-pair .acct-btn { flex: 1 1 0; }

/* ---- signed in ---- */
.acct-who {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.acct-who > span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.acct-how { color: var(--ink-3); }
.acct-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.acct-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct-back[hidden] { display: none; }

.acct-sec {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
}
.acct-sec-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}
.acct-copy {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.acct-sec .acct-btn { width: auto; display: inline-flex; min-width: 200px; }
.acct-sec .acct-send { max-width: 100%; }

/* The three figures: only ever the server's own numbers (account.js). */
.acct-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.acct-figures[hidden] { display: none; }
.acct-fig {
  margin: 0;
  padding: 14px 12px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acct-fig + .acct-fig { padding-left: 16px; border-left: 1px solid var(--rule); }
.acct-fig b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.acct-fig span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.acct-games { margin: 0 0 18px; padding: 0; list-style: none; }
.acct-games[hidden] { display: none; }
.acct-games li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.acct-games b { color: var(--ink); font-weight: 700; min-width: 84px; }
.acct-copy[hidden] { display: none; }

.acct-name { margin: 0; }
.acct-name-row { display: flex; gap: 10px; }
.acct-name-row .acct-input { margin: 0; flex: 1 1 auto; min-width: 0; }
.acct-name-row .acct-btn { flex: none; min-width: 96px; }

.acct-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.acct-end .acct-legal { flex-basis: 100%; margin-top: 8px; }

/* ---- a phone: the column takes the screen, the type steps down a size,
   and every button runs edge to edge under the thumb ---- */
@media (max-width: 600px) {
  .acct { padding: 30px 0 48px; }
  .acct-title { font-size: 30px; }
  .acct-dek { font-size: 16px; }
  .acct-sec-title { font-size: 22px; }
  .acct-sec .acct-btn { display: flex; width: 100%; min-width: 0; }
  .acct-name-row .acct-btn { width: auto; }
  .acct-fig { padding-right: 8px; }
  .acct-fig + .acct-fig { padding-left: 10px; }
  .acct-fig b { font-size: 28px; }
  .acct-fig span { letter-spacing: .03em; }
  .acct-end .acct-btn { width: 100%; }
  .acct-pair { flex-direction: column; }
}

/* ---- what a reader keeps (2026-10-04): the face, the shelves, the photo
   controls and the editors' takedown box ---- */
.acct-id { display: flex; align-items: center; gap: 16px; margin: 0 0 4px; }
.acct-id-words { min-width: 0; }
.acct-id .acct-title { margin-bottom: 4px; }
.acct-face {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rule-strong);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
}
.acct-face-img { display: block; width: 64px; height: 64px; object-fit: cover; }
.acct-face-img[hidden] { display: none; }
.acct-face-img:not([hidden]) + .acct-face-initial { display: none; }

.acct-shelf { margin: 0 0 6px; padding: 0; list-style: none; }
.acct-shelf[hidden] { display: none; }
.acct-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.acct-item:last-child { border-bottom: 0; }
.acct-item-head {
  grid-column: 1;
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.acct-item-head:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct-item-head:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.acct-meta {
  grid-column: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
.acct-status-published { color: var(--ink); font-weight: 600; }
.acct-quote {
  grid-column: 1;
  margin: 2px 0;
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.acct-item .acct-remove { grid-column: 2; grid-row: 1; align-self: start; padding-top: 3px; }

.acct-writers[hidden] { display: none; }
.acct-writer { padding: 4px 0 14px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.acct-writer:last-child { border-bottom: 0; margin-bottom: 0; }
.acct-writer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.acct-writer-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.acct-writer-name:hover { color: var(--blue); }
.acct-writer .acct-copy { margin: 8px 0 0; }

.acct-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 6px; }
.acct-sec .acct-photo-row .acct-btn { min-width: 0; }
.acct-file { cursor: pointer; }
/* The real file box stays in the page for keyboards and screen readers;
   its label is the button a reader sees. */
.acct-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.acct-file-input:focus-visible + .acct-file { outline: 2px solid var(--blue); outline-offset: 2px; }
.acct-photo-row .acct-text[hidden], .acct-photo-row .acct-btn[hidden] { display: none; }
.acct-sec .acct-photo-row + .acct-note { margin-top: 4px; }

.acct-editor { border-top: 3px solid var(--rule-strong); }
.acct-editor[hidden] { display: none; }

@media (max-width: 600px) {
  .acct-face { width: 52px; height: 52px; font-size: 24px; }
  .acct-face-img { width: 52px; height: 52px; }
  .acct-item-head { font-size: 17px; }
  .acct-photo-row .acct-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .acct * { transition: none !important; }
}
