/* Modernized stylesheet for jtchatagnier.com */

:root {
  --bg: #f5f2ee;
  --card: #ffffff;
  --ink: #202124;
  --muted: #60656f;
  --line: #e7ded6;
  --red: #c8102e;
  --red-dark: #8f0b20;
  --blue: #0067b1;
  --visited: #6d3c91;
  --shadow: 0 22px 55px rgba(33, 29, 27, 0.11);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 16, 46, 0.10), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 32rem);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.68;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #ffffff;
  padding: 2.4rem 0 1.4rem;
  box-shadow: 0 10px 35px rgba(98, 13, 28, 0.24);
}

.header-inner {
  display: grid;
  gap: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
  text-decoration: none;
}

.site-nav a:visited {
  color: #ffffff;
}

.site-nav a.active {
  color: var(--red-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.page-shell {
  padding: 2.2rem 0 4rem;
}

.page-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-title {
  padding: 2.2rem 2.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(200, 16, 46, 0.08), transparent),
    #ffffff;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.content {
  padding: 2.1rem 2.4rem 2.5rem;
}

.content p {
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.content a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

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

.content a:hover,
.content a:focus {
  color: var(--red);
  text-decoration: none;
}

.content h3,
.content h4 {
  margin: 2rem 0 0.7rem;
  color: var(--ink);
  line-height: 1.25;
}

.content h4 {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.content ol,
.content ul {
  padding-left: 1.5rem;
}

.content li {
  margin: 0.7rem 0 1rem;
}

.content em,
.content emph {
  font-style: italic;
}

.content img {
  max-width: min(100%, 420px);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(33, 29, 27, 0.13);
}

#bordered,
.imageleft,
.imageright {
  border: 1px solid var(--line);
}

.imageleft {
  float: left;
  margin: 0.25rem 1.7rem 1rem 0;
}

.imageright {
  float: right;
  margin: 0.25rem 0 1rem 1.7rem;
}

#main > img[align="left"],
.content > img:first-child {
  float: left;
  margin: 0.25rem 1.7rem 1rem 0;
}

.entry {
  font-size: 1.04rem;
}

.section,
.newent,
.topent {
  margin: 2rem 0 0.35rem;
  color: var(--red-dark);
  font-weight: 900;
}

.multent {
  margin-bottom: 0.25rem;
}

.largecent {
  text-align: center;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.site-footer {
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

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

  .wrap {
    width: min(100% - 26px, 1080px);
  }

  .site-header {
    padding: 1.5rem 0 1rem;
  }

  .page-shell {
    padding-top: 1rem;
  }

  .page-title,
  .content {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .site-nav {
    gap: 0.4rem;
  }

  .site-nav a {
    padding: 0.38rem 0.68rem;
    font-size: 0.86rem;
  }

  .content img,
  .imageleft,
  .imageright,
  #main > img[align="left"],
  .content > img:first-child {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.2rem;
  }
}

/* Homepage hero section */

.hero-card {
  margin-bottom: 2rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, #ffffff, #f8eeee);
  border: 1px solid #e7ded6;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(33, 29, 27, 0.12);
}

.eyebrow-red {
  margin: 0 0 0.75rem;
  color: #8f0b20;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h3 {
  max-width: 850px;
  margin: 0;
  padding: 0;
  color: #202124;
  font-size: 2.25rem;
  line-height: 1.15;
}

.hero-lede {
  max-width: 760px;
  margin: 1rem 0 0;
  color: #60656f;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  color: #8f0b20;
  background: #ffffff;
  border: 1px solid rgba(143, 11, 32, 0.25);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(33, 29, 27, 0.08);
}

.hero-actions .button:visited {
  color: #8f0b20;
}

.hero-actions .button:hover {
  color: #8f0b20;
  background: #fff3f3;
  text-decoration: none;
}

.hero-actions .button.primary {
  color: #ffffff;
  background: #c8102e;
  border-color: #c8102e;
}

.hero-actions .button.primary:visited,
.hero-actions .button.primary:hover {
  color: #ffffff;
}

.about-section {
  margin-top: 2rem;
}

@media screen and (max-width: 700px) {
  .hero-card {
    padding: 1.25rem;
  }

  .hero-copy h3 {
    font-size: 1.75rem;
  }

  .hero-actions {
    display: block;
  }

  .hero-actions .button {
    display: flex;
    width: 100%;
    margin-bottom: 0.6rem;
  }
}