/* The Daily Watt — newspaper of Watt. Paper, ink, one amber accent. */
:root {
  --paper: #f7f2e8;
  --paper-deep: #efe7d6;
  --ink: #211d15;
  --muted: #6f6350;
  --rule: #d9cfba;
  --accent: #a35f00;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.02em; }
.small { font-size: 14px; color: var(--muted); }

/* masthead */
.masthead { text-align: center; padding: 26px 16px 0; }
.masthead-era { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.masthead-title {
  display: inline-block;
  margin: 8px 0 2px;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.masthead-motto { font-style: italic; color: var(--muted); margin-bottom: 14px; }
.masthead nav {
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 9px 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover, .masthead nav a.active { color: var(--accent); }

/* layout */
main { max-width: 700px; margin: 0 auto; padding: 34px 20px 60px; }
footer { border-top: 3px double var(--ink); margin-top: 20px; padding: 18px 20px 40px; text-align: center; }
footer .promise { font-style: italic; margin: 0 0 6px; }
footer .small { margin: 0; }

/* article / prose */
h1 { font-size: 32px; line-height: 1.2; text-wrap: balance; margin: 0 0 14px; }
.issue h2, .prose h2 { font-size: 27px; line-height: 1.25; text-wrap: balance; margin: 38px 0 12px; }
.issue h2:first-of-type { margin-top: 8px; }
h3 { font-size: 20px; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
.issue-meta {
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 6px;
}
.issue hr, .prose hr { border: 0; border-top: 1px solid var(--rule); margin: 30px auto; width: 60%; }
blockquote {
  margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  font-style: italic; color: #3d372b;
}
blockquote strong { font-style: normal; }
em { color: inherit; }

/* archive lists */
.archive h1, .archive h2 { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.archive ul { list-style: none; padding: 0; margin: 14px 0; }
.archive li { padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.archive a { text-decoration: none; color: var(--ink); }
.archive a:hover { color: var(--accent); }

/* charter */
.group { text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--muted); margin-top: 34px; }
.article-card { background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; margin: 10px 0; }
.article-card p { margin: 8px 0 0; }
.article-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mode { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 999px; }
.mode-carved { background: var(--ink); color: var(--paper); }
.mode-penciled { border: 1px solid var(--muted); color: var(--muted); }

/* citizens */
.citizen-grid { max-width: 700px; margin: 6px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.citizen { background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; }
.citizen h3 { margin: 10px 0 2px; }
.citizen .role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.citizen p { margin: 8px 0; }
.monogram {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); font-size: 22px; font-weight: 700;
}
.monogram.unknown { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.citizen.door { border-style: dashed; background: transparent; }

/* the world */
.facts { display: grid; grid-template-columns: 1fr; gap: 4px; }
.fact h3 { margin: 14px 0 4px; }
.glossary { margin: 14px 0; }
.gloss { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.gloss dt { font-weight: 700; }
.gloss dd { margin: 0; }
@media (max-width: 520px) { .gloss { grid-template-columns: 1fr; gap: 2px; } }

/* subscribe */
form#sub { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 10px; }
form#sub input[type="email"] {
  flex: 1 1 260px; font: inherit; padding: 10px 12px; border: 1px solid var(--muted);
  border-radius: 4px; background: #fffdf8; color: var(--ink);
}
form#sub button {
  font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px 22px; border: 0; border-radius: 4px; background: var(--ink); color: var(--paper); cursor: pointer;
}
form#sub button:hover { background: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#sub-msg { min-height: 1.4em; font-style: italic; color: var(--accent); }
