/* Hank Whitfield author site
   Warm paper-and-barn palette, large type, high contrast, system fonts only.
   No external stylesheets or scripts. */

:root {
  --ink: #1c1612;
  --muted: #3d322a;
  --paper: #f7f1e6;
  --paper-deep: #efe4d2;
  --card: #fffdf8;
  --barn: #6b3224;
  --barn-dark: #4a2218;
  --wood: #3d2a22;
  --field: #2f4a38;
  --wine: #5a2430;
  --straw: #b0893a;
  --line: #d4c4a8;
  --focus: #c47b16;
}

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.7;
}

h1, h2, h3, h4,
.btn, .btn-soon, nav, .site-name, .status, footer, .cover {
  font-family: Verdana, "Segoe UI", Arial, Helvetica, sans-serif;
}

h1 {
  font-size: 2.15rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
  color: var(--wood);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.4rem 0 0.85rem;
  color: var(--barn);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--wood);
}

p { margin: 0 0 1rem; }

a {
  color: var(--barn);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--barn-dark); }

a:focus-visible,
.btn:focus-visible,
.site-name:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.prose { max-width: 42rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}

/* Header */
header {
  background: var(--wood);
  color: #fffdf8;
}

header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-name {
  color: #fffdf8;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: bold;
}

.site-name small {
  display: block;
  font-size: 0.72rem;
  font-weight: normal;
  opacity: 0.95;
  margin-top: 0.15rem;
  letter-spacing: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav a {
  color: #fffdf8;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  display: inline-block;
  min-height: 44px;
  line-height: 1.4;
}

nav a:hover,
nav a[aria-current="page"] {
  background: #fffdf8;
  color: var(--wood);
}

/* Hero */
.hero {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.75rem;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--barn);
  color: #fffdf8;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 3px solid var(--barn);
  min-height: 48px;
  line-height: 1.3;
}

.btn:hover {
  background: var(--barn-dark);
  border-color: var(--barn-dark);
  color: #fffdf8;
}

.btn-soon {
  display: inline-block;
  background: transparent;
  color: var(--barn);
  font-weight: bold;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 3px solid var(--barn);
  min-height: 48px;
  line-height: 1.3;
  margin: 0;
  cursor: default;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.card .btn,
.card .btn-soon { align-self: flex-start; margin-top: auto; }

.cover {
  border-radius: 8px;
  background: var(--barn);
  color: #fffdf8;
  padding: 1.2rem;
  margin-bottom: 1rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover.field { background: var(--field); }
.cover.wine { background: var(--wine); }
.cover.wood { background: var(--wood); }

.cover strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.cover span {
  font-size: 0.75rem;
  opacity: 0.95;
  margin-top: 0.8rem;
}

.subtitle {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.status {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--barn);
  margin: 0.4rem 0 0.8rem;
}

/* Lists and boxes */
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.checks li {
  background: var(--paper-deep);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  font-family: Verdana, "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.checks li::before {
  content: "✓ ";
  color: var(--barn);
}

.box {
  background: var(--paper-deep);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
}

.page-head { padding-top: 2.2rem; }

.email-link {
  font-size: 1.15rem;
  font-weight: bold;
  word-break: break-word;
}

hr.quiet {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* Footer */
footer {
  background: var(--wood);
  color: #fffdf8;
  margin-top: auto;
  padding: 2rem 0;
  font-size: 0.9rem;
}

footer a { color: #fffdf8; }

footer p { margin: 0.4rem 0; }

main { padding-bottom: 2.5rem; flex: 1 0 auto; }

/* 404 */
.lost {
  padding: 3rem 0 2rem;
}

.lost h1 { font-size: 2rem; }

@media (max-width: 700px) {
  html { font-size: 19px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 0.25rem;
  }
  nav a { text-align: center; }
  .btn, .btn-soon {
    display: block;
    text-align: center;
    width: 100%;
  }
  .card .btn,
  .card .btn-soon { align-self: stretch; }
}

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

@media print {
  header, footer { background: none; color: #000; }
  header a, footer a, nav a, .site-name { color: #000; }
  .btn, .btn-soon { border-color: #000; color: #000; background: none; }
  body { background: #fff; }
}
