/* Era's public site, in the app's own look (src/era/era.css, the founder's "Pearl glass" design of 29 October): the pearl
   ground, ink text, iOS system type, no serif, no dark ground, no boxes, no decoration but the pearl orb. One file, no
   build step, nothing loaded from another company. */

:root {
  --pearl: #f4f3f6;
  --paper: #ffffff;
  --ink: #141318;
  --ink2: #4e4b57;
  --ink3: #6a6773;
  --line: #e3e1e8;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wide { max-width: 64rem; }

/* Header: the wordmark as the app writes it, and the pages; wraps on a small phone */
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding-block: 1.1rem;
  max-width: 64rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.mark::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0%, #f5f1fb 30%, #ded6f1 70%, #c8bde6 100%);
  box-shadow: inset -2px -3px 6px rgba(150, 130, 200, 0.35), inset 2px 2px 4px rgba(255, 255, 255, 0.95);
}
nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; padding: 0; list-style: none; }
nav a { color: var(--ink2); text-decoration: none; font-size: 0.97rem; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { padding-block: 1.5rem 4rem; }

h1 {
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  text-wrap: balance;
}
h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; margin: 3rem 0 0.75rem; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.4rem; }

p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink2); max-width: 36rem; }
.eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--ink3); margin: 0 0 0.35rem; }
.quiet, small { color: var(--ink3); font-size: 0.92rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

/* a placeholder the founder fills before launch: impossible to miss */
.ph { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; text-decoration: underline dashed; text-underline-offset: 3px; color: #7a4100; }

/* the exact words the app shows */
.says { border-left: 2px solid var(--line); padding-left: 1rem; margin: 0 0 1rem; color: var(--ink2); }
.says p { margin: 0 0 0.4rem; }
.says p:last-child { margin-bottom: 0; }

.notice { background: #ffebcf; color: #7a4100; border-radius: 14px; padding: 0.85rem 1rem; margin: 0 0 1.5rem; }
.notice p { margin: 0 0 0.4rem; }
.notice p:last-child { margin-bottom: 0; }

dt { font-weight: 600; margin-top: 0.75rem; }
dd { margin: 0.2rem 0 0.75rem; color: var(--ink2); }

table { border-collapse: collapse; width: 100%; font-size: 0.97rem; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink3); font-size: 0.85rem; }

/* app screens: the phone's own picture, rounded as the phone is; never overlapping, never cropped */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 28px); margin: 2.25rem 0 0.5rem; max-width: 52rem; }
.screens figure, .slot { margin: 0; }
.screens img, .slot img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: clamp(16px, 4vw, 30px);
  box-shadow: 0 1px 2px rgba(20, 19, 24, 0.06), 0 10px 30px rgba(20, 19, 24, 0.08); background: var(--paper); }
.screens figcaption, .slot figcaption { font-size: 0.88rem; color: var(--ink3); margin-top: 0.6rem; line-height: 1.4; }
.slot { max-width: 18rem; margin: 1.5rem 0; }
@media (max-width: 560px) {
  .screens { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .screens figure { scroll-snap-align: start; }
}

/* three short columns of what Era does */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 2rem; margin: 1rem 0 0; }
.points h3 { margin-top: 0; }
.points p { color: var(--ink2); margin: 0; }

/* the journal */
.posts { list-style: none; padding: 0; margin: 1rem 0 0; }
.posts li { margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts p { margin: 0.25rem 0 0; color: var(--ink2); }
.posts .eyebrow { margin: 0 0 0.25rem; }
.article { max-width: 38rem; }
.article h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.article .meta { color: var(--ink3); font-size: 0.92rem; margin: 0 0 2rem; }
.article h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.article li { margin-bottom: 0.5rem; }
.article .sources { font-size: 0.92rem; color: var(--ink3); margin-top: 3rem; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { padding-block: 2rem 2.5rem; max-width: 64rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.foot a { color: var(--ink2); text-decoration: none; font-size: 0.95rem; }
.foot a:hover { color: var(--ink); }
.foot p { color: var(--ink3); font-size: 0.9rem; margin: 0 0 0.35rem; }

/* questions */
.faq { margin-top: 0.5rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin: 0.6rem 0 0; color: var(--ink2); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
