/* /updates and /updates/<name>: the "what's new" pages. Builds on /styles.css (paper, fonts, .phone, .bub). */

.up-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem) 4rem;
}
.up-main h1 { margin-bottom: 0.75rem; }
.up-main .lede { margin-bottom: 2.5rem; }
.up-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}
.up-back:hover, .up-back:focus-visible { color: var(--text); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* === Index: update cards === */
.up-list { list-style: none; display: grid; gap: 1rem; }
.up-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.06);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.up-card:hover { transform: translateY(-2px); box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.1); border-color: var(--text); }
.up-card:active { transform: translateY(1px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08); border-color: var(--text); background: #fff; }
/* The "this opens" row: full width under the card, so the whole card reads as one link. */
.up-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font: 600 0.9rem var(--sans);
  color: var(--accent);
}
.up-arrow {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  transition: transform 0.15s ease;
}
.up-card:hover .up-arrow, .up-card:active .up-arrow { transform: translateX(3px); }
.up-card time { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.up-card h2 { font-size: 2rem; margin: 0.15rem 0 0.2rem; }
.up-card p { color: var(--text-secondary); }
.up-card .up-new { margin-left: 0.6rem; vertical-align: middle; }

/* === Detail page === */
.up-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 0 1rem;
}
.up-demo .phone { height: 470px; border-width: 7px; border-radius: 36px; }
.up-demo .thread { justify-content: flex-start; overflow-y: auto; }
.up-demo figcaption { font-family: var(--hand); color: var(--stamp); font-size: 1.25rem; text-align: center; margin-top: 0.5rem; }
.up-replay {
  display: block;
  margin: 0 auto 3rem;
  font: 500 0.82rem var(--sans);
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.55rem 1rem;
  min-height: 44px;
  cursor: pointer;
}
.up-replay:hover, .up-replay:focus-visible { color: var(--text); border-color: var(--text); }

.up-section { margin: 3rem 0; }
.up-section h2 { margin-bottom: 1.25rem; }
/* A feature added to an entry later (events → photo albums): its own eyebrow, stamp, lede and demo inside the section. */
.up-section { scroll-margin-top: 5.5rem; } /* /updates/events/#albums lands below the sticky nav */
.up-section .eyebrow { margin-bottom: 0.5rem; }
.up-section h2 .up-new { margin-left: 0.6rem; vertical-align: middle; font-size: 1rem; }
.up-section .lede { margin-bottom: 1.5rem; }
.up-section .up-sub { margin: 0 0 1rem; }
.up-uses { list-style: none; display: grid; gap: 1rem; }
/* Calls demo: the right-hand phone is the call itself. Reason's spoken lines are .voice. */
.phone-top .avatar.call-ico { display: grid; place-items: center; background: var(--seal); color: #fff; font-size: 1.1rem; }
.bub.voice { align-self: flex-end; background: #1a3a5c; color: #fff; border-bottom-right-radius: 6px; }
.thread .stamp.call-note { opacity: 1; animation: none; }

.up-uses li { padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--border); border-radius: 6px; }
.up-uses h3 { margin-bottom: 0.5rem; }
.up-uses .bub { opacity: 1; transform: none; animation: none; display: inline-block; max-width: 100%; margin: 0.15rem 0; }
.up-uses .say { display: flex; flex-direction: column; align-items: flex-end; }
.up-uses .say.them { align-items: flex-start; }

.up-powers, .up-privacy { list-style: none; display: grid; gap: 0.85rem; }
.up-powers li, .up-privacy li { padding-left: 1.6rem; position: relative; }
.up-powers li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.up-privacy li::before { content: "✓"; position: absolute; left: 0; color: var(--seal); font-weight: 600; }
.up-powers strong, .up-privacy strong { font-weight: 600; }
.up-powers em { font-style: normal; color: var(--text-secondary); }

.up-cta { text-align: center; margin: 3.5rem 0 1rem; }
.up-cta .btn { font-size: 1.05rem; padding: 1rem 2rem; min-height: 48px; }
.up-cta .note { display: block; margin-top: 0.85rem; }

@media (max-width: 640px) {
  .up-main { padding-top: 2.25rem; }
  .up-demo { grid-template-columns: 1fr; gap: 1.25rem; }
  .up-demo .phone { height: 400px; }
  .up-card { padding: 1.1rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .up-card, .up-card:hover, .up-card:active, .up-arrow { transition: none; transform: none; }
}
