/* ARTHUR KING BOOKS — DECLINE AND RENEWAL: THE STATE OF BRITAIN */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400;1,600&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --parchment: #F0EBE4;
  --panel: #F8F4EC;
  --charcoal: #2A2624;
  --accent: #A09890;
  --gold: #C6A052;

  --body-font: Georgia, 'Times New Roman', Times, serif;
  --display-font: 'Playfair Display', Georgia, serif;
  --heading-font: 'Cormorant Garamond', Georgia, serif;

  --max-text: 680px;
  --gutter: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--parchment);
  color: var(--charcoal);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Frame around the viewport edge, echoing the book covers */
.frame {
  border: 1px solid var(--accent);
  margin: 14px;
  min-height: calc(100vh - 28px);
}

@media (min-width: 768px) {
  .frame {
    margin: 22px;
    min-height: calc(100vh - 44px);
  }
}

p {
  margin: 0 0 1.2em;
}

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

/* Section scaffolding */
section {
  padding: 4rem var(--gutter);
}

@media (min-width: 768px) {
  section {
    padding: 5.5rem var(--gutter);
  }
}

.col {
  max-width: var(--max-text);
  margin: 0 auto;
}

.col--narrow {
  max-width: 620px;
}

.centred {
  text-align: center;
}

/* Section headings: small caps with gold rules above and below */
.section-heading {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 2.5rem;
  padding: 1.1rem 0;
  max-width: 24rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* Thin dividers in the accent colour, between sections */
.rule {
  border: 0;
  border-top: 1px solid var(--accent);
  max-width: 90%;
  margin: 0 auto;
}

.rule--thin {
  border-top: 1px solid var(--accent);
  max-width: 4rem;
  margin: 1.5rem 0;
}

/* ---------------------------------------------------------------- */
/* 1. HEADER / HERO                                                  */
/* ---------------------------------------------------------------- */

.hero {
  text-align: center;
  padding-top: 4.5rem;
}

.hero__name {
  font-family: var(--display-font);
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero__series {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  margin: 0 0 1.8rem;
}

.hero__statement {
  font-family: var(--body-font);
  font-style: italic;
  color: var(--charcoal);
  font-size: 1.3rem;
  max-width: 34rem;
  margin: 0 auto 3.5rem;
}

/* Two cover images / placeholders side by side */
.covers {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto 3rem;
}

.cover {
  width: 240px;
  max-width: 42vw;
}

.cover__img,
.cover__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--accent);
  box-shadow: 0 6px 18px rgba(42, 38, 36, 0.18);
  background-color: var(--panel);
}

/* Placeholder box shown until cover JPEGs are supplied */
.cover__placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--accent);
}

.cover__placeholder .cover__title {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.cover__placeholder .cover__note {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* CTA buttons */
.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  background-color: var(--charcoal);
  color: var(--parchment);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--parchment);
  color: var(--charcoal);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- */
/* 2. THE ARGUMENT                                                   */
/* ---------------------------------------------------------------- */

.argument {
  background-color: var(--panel);
}

.argument p {
  font-size: 1.18rem;
}

/* ---------------------------------------------------------------- */
/* 3. THE BOOKS                                                      */
/* ---------------------------------------------------------------- */

.books__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .books__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.book__numeral {
  font-family: var(--heading-font);
  font-style: italic;
  color: var(--accent);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  margin: 0 0 0.6rem;
}

.book__title {
  font-family: var(--display-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.book__subtitle {
  font-family: var(--body-font);
  font-style: italic;
  color: var(--charcoal);
  font-size: 1.1rem;
  margin: 0 0 1.2rem;
}

.book__meta {
  font-family: var(--heading-font);
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  margin: 1.2rem 0;
}

.book .btn {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------- */
/* 4. ABOUT THE AUTHOR                                              */
/* ---------------------------------------------------------------- */

.about {
  background-color: var(--panel);
}

/* ---------------------------------------------------------------- */
/* 5. FOLLOW / CONNECT                                              */
/* ---------------------------------------------------------------- */

.follow .btn {
  margin-top: 1rem;
}

.follow__newsletter {
  font-style: italic;
  color: var(--accent);
  margin-top: 1.8rem;
}

/* ---------------------------------------------------------------- */
/* 6. FOOTER                                                        */
/* ---------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--accent);
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1.8;
  padding: 3rem var(--gutter);
}

.footer__title {
  font-family: var(--heading-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer__disclosure {
  font-style: italic;
  max-width: 44rem;
  margin: 1rem auto 0;
}

.footer a {
  color: var(--accent);
}

/* ---------------------------------------------------------------- */
/* Mobile refinements                                              */
/* ---------------------------------------------------------------- */

@media (max-width: 767px) {
  body {
    font-size: 17px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .covers {
    gap: 1.25rem;
  }

  .cover {
    max-width: 44vw;
  }
}
