/* Phoebe Fay Productions
   Single-page landing. Paper / manuscript typewriter.
   No external requests — system monospace only. */

/* ---- Palette -------------------------------------------------------------
   Retone the whole page by editing these five values.
   Measured contrast against --paper:
     --ink        15.7:1   (target >= 7)
     --ink-muted   5.2:1   (target >= 4.5)
     --accent      5.4:1   (target >= 4.5)
   ------------------------------------------------------------------------- */

:root {
  --paper:     #f4f1ea;
  --ink:       #1a1815;
  --ink-muted: #6b6459;
  --rule:      #d9d3c7;
  --accent:    #2f6b6b;

  --measure: 62ch;
  --font: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* ---- Base ---------------------------------------------------------------- */

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

body {
  /* Explicit, so the page never inherits a host background. */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  line-height: 1.7;
  margin: 0;
  padding: clamp(2rem, 8vw, 6rem) clamp(1.25rem, 6vw, 3rem);
  -webkit-text-size-adjust: 100%;
}

.sheet {
  max-width: var(--measure);
  margin-inline: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: clamp(2rem, 5vw, 3rem) 0;
}

/* ---- Links --------------------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Visible only when tabbed to. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ink);
  z-index: 1;
}

/* ---- Masthead ------------------------------------------------------------ */

.masthead h1 {
  font-size: clamp(1.125rem, 1rem + 1.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0;
}

.tagline {
  color: var(--ink-muted);
  margin: 0.85rem 0 0;
}

/* ---- Sections ------------------------------------------------------------ */

h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.about p { margin: 0 0 1.1rem; }
.about p:last-child { margin-bottom: 0; }

.elsewhere { margin-top: clamp(2.25rem, 5vw, 3.25rem); }

/* ---- Link rows with dot leaders ------------------------------------------
   The leader is a dotted border on an empty flex filler, not typed periods,
   so screen readers never announce a run of punctuation.
   ------------------------------------------------------------------------- */

.elsewhere ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.elsewhere li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.45rem 0;
}

.label { flex: 0 0 auto; }

.leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--rule);
  /* Nudge the dots off the baseline so they sit between the two labels. */
  transform: translateY(-0.28em);
  min-width: 1.5rem;
}

.status {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 0.8125em;
  letter-spacing: 0.04em;
}

/* ---- Footer -------------------------------------------------------------- */

footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

footer .domain {
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* ---- Narrow screens ------------------------------------------------------
   Below 22rem (352px) the three-part rows get cramped; drop the leader and
   stack. Kept under mainstream phone widths on purpose — at 390px the widest
   row needs ~293px of the ~343px available, so phones keep their leaders.
   ------------------------------------------------------------------------- */

@media (max-width: 22rem) {
  .elsewhere li {
    flex-wrap: wrap;
    gap: 0 0.6rem;
  }
  .leader { display: none; }
  .status { flex-basis: 100%; }
}

/* ---- Print ---------------------------------------------------------------
   Prints as an actual card: black on white, URLs spelled out.
   ------------------------------------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
    font-size: 11pt;
  }
  a { color: #000; }
  a[href^="http"]::after,
  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
  .skip { display: none; }
}
