/* Layout for the public pages. Typography is in prose.css. */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.8rem; z-index: 10; }

.masthead,
main,
.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.masthead { padding-top: 3rem; padding-bottom: 2.2rem; }

.site-title {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.tagline { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 1.1rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}
nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; border-bottom: 1px solid transparent; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: currentColor; }

main { padding-bottom: 4rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.edit-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
}
