/* =========================================================
   TENNIS TALES
   Main stylesheet
   ========================================================= */


/* ---------- BASE ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #faf9f5;
  color: #252521;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}


/* ---------- HEADER ---------- */

.site-header {
  background: #e9eee8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-wrap {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav a {
  font-size: 15px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}


/* ---------- HERO ---------- */

.hero {
  padding: 78px 0 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 76px;
  align-items: center;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 90%;
  display: block;
  margin: 0 auto;
}

.hero-copy {
  max-width: 470px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.tagline {
  margin: 25px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.35;
}

.hero-intro {
  max-width: 410px;
  margin: 28px 0 30px;
  font-size: 17px;
  line-height: 1.75;
}

.story-link,
.contact-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.story-link:hover,
.contact-link:hover {
  opacity: 0.65;
}


/* ---------- READER / CONTACT SECTION ---------- */

.reader-section {
  background: #e9eee8;
  padding: 38px 0 34px;
}

.reader-inner {
  max-width: 760px;
  text-align: center;
}

.reader-inner .eyebrow {
  margin-bottom: 16px;
}

.reader-inner h2 {
  margin: 0 auto 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 400;
}


/* ---------- ESSAYS PAGE ---------- */

.essays-intro {
  padding-top: 70px;
  padding-bottom: 48px;
}

.essays-intro h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 400;
}

.lead {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.7;
}

.essay-list {
  max-width: 760px;
  padding-bottom: 70px;
}

.essay-note {
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.essay-entry {
  padding: 22px 0 24px;
  border-bottom: 1px solid #d9d9d4;
}

.essay-entry h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 600;
}

.essay-entry p {
  margin: 0;
  max-width: 650px;
  line-height: 1.65;
}


/* ---------- FOOTER ---------- */

footer {
  padding: 27px 0;
  font-size: 12px;
  letter-spacing: 0.05em;
}

footer p {
  margin: 0;
}


/* ---------- MOBILE ---------- */

@media (max-width: 800px) {

  .container {
    width: min(100% - 36px, 1120px);
  }

  .nav-wrap {
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 14px;
  }

  .hero {
    padding: 45px 0 55px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image img {
    height: 400px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 54px;
  }

  .reader-section {
    padding: 50px 0;
  }

  .reader-inner h2 {
    font-size: 27px;
  }

  .essays-intro h1 {
    font-size: 42px;
  }
}
/* Bottom reader/contact section */

.reader-section {
  padding: 42px 0;
}

/* Bottom reader message */
.reader-message {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin: 12px 0 20px;
  white-space: nowrap;
}

/* ========================================
   ABOUT PAGE
======================================== */

.about-intro {
  padding: 50px 0 55px;
}

.about-container {
  max-width: 960px;
}

.about-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin: 18px 0 28px;
}

.about-lead {
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.5;
  font-style: italic;
}

.about-section {
  padding: 25px 0 80px;
}

.about-block {
  max-width: 720px;
  padding: 45px 0;
  border-top: 1px solid #d8d8d2;
}

.about-block h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  margin: 12px 0 22px;
}

.about-block p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-block .story-link {
  display: inline-block;
  margin-top: 10px;
}


/* MOBILE */

@media (max-width: 700px) {

  .about-intro {
    padding: 60px 0 35px;
  }

  .about-intro h1 {
    font-size: 40px;
  }

  .about-lead {
    font-size: 20px;
  }

  .about-block {
    padding: 35px 0;
  }

}
.about-story-link {
  display: inline-block;
  margin-top: 18px;
}

/* =========================
   ABOUT PAGE OVERRIDES
   ========================= */

/* Reduce space between navigation banner and About content */
.about-page main {
  padding-top: 20px !important;
}

/* Make About Tennis Tales smaller */
.about-page .about-title {
  font-size: 30px !important;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 24px;
}

/* =========================
   ESSAYS & STORIES PAGE
   ========================= */

.essays-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin: 12px 0 18px;
}

.essays-lead {
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}


/* Essay entries */

.essay-list {
  padding: 0 0 55px;
}


.essay-entry {
    width: 100%;
    max-width: 960px;
    padding: 30px 0 34px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.essay-category {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.essay-entry h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 12px;
}

.essay-description {
  max-width: 680px;
  margin: 0 0 12px;
  line-height: 1.65;
}

.essay-availability {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  opacity: 0.65;
}


/* Bottom contact section */

.essays-contact {
  background: #e9eee8;
  padding: 42px 0;
  text-align: center;
}

.essays-contact > .container {
  max-width: 960px;
}

.essays-contact p:not(.eyebrow) {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin: 8px 0 18px;
}


/* Mobile */

@media (max-width: 700px) {

  .essays-intro {
    padding: 35px 0 28px;
  }

  .essays-intro h1 {
    font-size: 30px;
  }

  .essays-lead {
    font-size: 18px;
  }

  .essay-entry h2 {
    font-size: 24px;
  }
}
.essays-container {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
}
/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-main {
  padding: 60px 0 90px;
}

.contact-container {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
}

.contact-main h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin: 12px 0 18px;
}

.contact-lead {
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.contact-details {
  margin-top: 55px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  max-width: 760px;
}

.contact-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-email {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.contact-email a {
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.academic-note {
  max-width: 700px;
  margin-top: 50px;
  font-size: 15px;
  line-height: 1.65;
}

.academic-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-footer {
  background: #e9eee8;
  padding: 35px 0;
  text-align: center;
}

.contact-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}
