/* PensaNote's website (PENSA-35): the app's own colours (PensaNote/UI/Pillow.swift),
   one readable column, light and dark. Plain HTML and this file; no scripts. */
:root {
  --desk: #F2F2F7;      /* Pillow.desk */
  --paper: #FFFEFB;     /* the page, "the sheet is a lamp" */
  --ink: #3A3A40;       /* Pillow.ink */
  --mute: #6E6E76;      /* Pillow.mute */
  --seam: #D1D1D6;
  --accent: #4D5D8F;    /* Pillow.accent */
  --mark: #B45309;      /* the in-progress label */
  --mark-wash: #FDF3E7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #1C1C1E;
    --paper: #2C2C2E;
    --ink: #F2F2F7;
    --mute: #96969B;
    --seam: #3A3A3C;
    --accent: #97A6DE;
    --mark: #F59E60;
    --mark-wash: #3A2A1C;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem max(16px, env(safe-area-inset-right)) 3rem max(16px, env(safe-area-inset-left));
}
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 0.5px var(--seam); }
.brand span { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
nav { display: flex; gap: 1.1rem; font-size: 0.95rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.progress {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  background: var(--mark-wash);
  border: 1px solid color-mix(in srgb, var(--mark) 35%, transparent);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.progress b {
  color: var(--mark);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

main {
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 0 0 0.5px var(--seam), 0 8px 28px rgba(0, 0, 0, 0.06);
  padding: 2rem clamp(1.1rem, 4vw, 2.5rem) 2.25rem;
}
h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.35rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
p, ul { margin: 0 0 0.9rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }
.updated { color: var(--mute); font-size: 0.9rem; margin-bottom: 1.5rem; }
.lede { font-size: 1.1rem; }
.mail { font-weight: 600; user-select: all; }

footer.bottom {
  margin-top: 1.5rem;
  color: var(--mute);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: space-between;
}
