:root {
  --ink: #222222;
  --muted: #666666;
  --line: #eeeeee;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --blue: #1b4f9c;
  --deep-blue: #12386f;
  --gold: #d6a540;
  --gold-dark: #b98217;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  color: #1d1d1d;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 18px;
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 24px;
  color: rgba(255, 255, 255, 0.9);
  background: var(--deep-blue);
  font-size: 0.82rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--deep-blue);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

nav a {
  color: #333333;
  font-size: 0.9rem;
  font-weight: 700;
}

.book-link,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 22px;
  border: 2px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.book-link:hover,
.button:hover,
button:hover {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--gold-dark);
}

.button.secondary:hover {
  color: var(--white);
}

.hero {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7, 22, 47, 0.18), rgba(7, 22, 47, 0.76)),
    url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero > div {
  width: min(920px, 100%);
}

.hero h1 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  margin-bottom: 28px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
}

.home-section,
.article,
.admin-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: start;
}

.section-kicker,
.eyebrow,
.type {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-copy,
.body-copy {
  color: #444444;
  font-size: 1rem;
}

.main-copy h2,
.body-copy h2 {
  margin-top: 42px;
}

.main-copy h2:first-child,
.body-copy h2:first-child {
  margin-top: 0;
}

.feature-panel {
  padding: 34px;
  border-top: 4px solid var(--gold);
  background: var(--soft);
}

.listing {
  border-top: 1px solid var(--line);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 28px;
  margin-top: 28px;
  text-align: left;
}

.card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card::before {
  content: "";
  display: block;
  height: 92px;
  margin: -28px -28px 22px;
  background:
    linear-gradient(135deg, rgba(18, 56, 111, 0.82), rgba(214, 165, 64, 0.54)),
    url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=900&q=70") center/cover;
}

.card h3 {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.card p:last-child {
  color: var(--muted);
}

.article {
  padding-top: 0;
}

.article-header {
  margin: 0 calc(50% - 50vw);
  padding: 72px max(24px, calc((100vw - 1080px) / 2));
  background:
    linear-gradient(90deg, rgba(18, 56, 111, 0.92), rgba(18, 56, 111, 0.74)),
    url("https://images.unsplash.com/photo-1502134249126-9f3755a50d78?auto=format&fit=crop&w=1600&q=80") center/cover;
  text-align: center;
}

.article-header h1 {
  color: var(--white);
}

.article-layout {
  width: min(880px, 100%);
  margin: 64px auto 0;
  padding: 0;
  background: transparent;
}

.intro {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.body-copy h2 {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.body-copy h2:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.body-copy ul {
  padding-left: 22px;
}

.body-copy li + li {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px;
  color: #bbbbbb;
  background: #101010;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #dddddd;
}

.setup-warning {
  width: min(1080px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid #f1cf8a;
  background: #fff8e8;
  color: #7b520f;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--soft);
}

.admin-login,
.editor-form {
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-login {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #dddddd;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.editor-form {
  padding: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flash {
  padding: 10px 12px;
  background: #e9f7f3;
  color: #17745f;
}

.flash.error {
  background: #fff0f0;
  color: #a23131;
}

@media (max-width: 900px) {
  .top-strip {
    align-items: center;
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .two-column,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 500px;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
