:root {
  --desktop: #b9b9b9;
  --paper: #fffef0;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --navy: #000080;
  --maroon: #800000;
  --link: #0000cc;
  --visited: #551a8b;
  --rule: #777777;
  --light-rule: #c9c9c9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--desktop);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  -webkit-font-smoothing: auto;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: #000080;
  color: #ffffff;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  color: #cc0000;
  background: #ffff99;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px dotted #000000;
  outline-offset: 2px;
}

.site-shell {
  width: min(100% - 28px, 780px);
  margin: 22px auto;
  padding: 24px 28px 30px;
  background: var(--paper);
  border: 3px outset #e8e8e8;
}

.site-header {
  margin-bottom: 38px;
  padding-bottom: 14px;
  border-bottom: 5px double var(--navy);
}

.site-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 8vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.site-tagline {
  margin: 10px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.site-method {
  max-width: 650px;
  margin: 9px 0 0;
  color: #333333;
  font-size: 0.96rem;
  line-height: 1.45;
}

.site-shortcuts {
  margin: 8px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
}

.site-updated {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
}

section {
  margin-top: 42px;
}

.archive section:first-child {
  margin-top: 0;
}

h2 {
  margin: 0 0 12px;
  padding: 5px 8px;
  border: 1px solid #000000;
  background: var(--navy);
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-list {
  margin: 0;
  padding: 10px 12px 10px 34px;
  border: 2px inset #eeeeee;
  background: var(--panel);
  list-style: square;
}

.empty-state {
  margin: 0;
  padding: 11px 12px;
  border: 2px inset #eeeeee;
  background: var(--panel);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

.development-note {
  margin: 24px 0 0;
  padding: 8px 10px;
  border: 1px dotted var(--rule);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  line-height: 1.5;
}

.post-list li {
  padding: 7px 2px;
}

.post-list li + li {
  border-top: 1px dotted var(--rule);
}

.post-title {
  font-size: 1.05rem;
  line-height: 1.4;
}

.post-meta {
  margin-left: 0.55em;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  white-space: nowrap;
}

.post-meta::before {
  content: "(";
}

.post-meta::after {
  content: ")";
}

.contact form {
  padding: 16px;
  border: 2px inset #eeeeee;
  background: #e7e7e7;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 15px;
}

label span {
  display: block;
  margin-bottom: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 7px 8px;
  border: 2px inset #eeeeee;
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

button {
  padding: 5px 14px;
  border: 2px outset #eeeeee;
  border-radius: 0;
  background: #d4d0c8;
  color: #000000;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

button:active {
  border-style: inset;
}

button:disabled {
  color: #777777;
  cursor: not-allowed;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(100% - 14px, 780px);
    margin: 7px auto;
    padding: 18px 15px 24px;
  }

  .site-header {
    margin-bottom: 30px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-meta {
    display: block;
    margin: 3px 0 0;
    white-space: normal;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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