/* Pronunciation with Ellie - site styles
 * Last refresh: 25 May 2026 (styling parity pass against Ghost site)
 */

/* =========================================
   Design tokens
   ========================================= */

:root {
  --font-serif: 'Butler', Times, serif;
  --font-sans: 'LT Superior', -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  --font-mono: 'Noto Sans Mono', monospace;

  /* Colours */
  --primary-text: #1C2A39;
  --secondary-text: #6b7280;
  --muted-text: #9ca3af;
  --bg-white: #fafafa;
  --bg-subtle: #f6f8fa;
  --green: #2ecc71;
  --green-soft: rgba(46, 204, 113, 0.09);
  --pink: #f7d1d1;
  --pink-soft: rgba(247, 209, 209, 0.5);
  --pink-border: #e08a8a;
  --border-soft: rgba(28, 42, 57, 0.08);

  /* Spacing & sizes */
  --content-max-width: 680px; /* Narrower column - matches Ghost's content feel */
  --content-max-wide: 1200px; /* Ghost: --container-width: 1200px (.gh-inner max-width) */
  --spacing-base: 1rem;
  --header-spacing: 6vmin;
}

/* =========================================
   Reset & base
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px - matches Ghost's compiled CSS cascade */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 200; /* Matches Ghost body weight 200. fonts.css now maps weight 200 to LTSuperior-Regular.otf (same as Ghost's @font-face), so body renders Regular face. */
  font-size: 2rem; /* 20px - from Ghost compiled CSS */
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: var(--primary-text);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Safety net for .header-card full-bleed breakouts; prevents horizontal scroll on any browser. Session 29. */
}

/* Explicit weight on paragraph and list items - belt and braces */
p, li {
  font-weight: 100;
}

/* =========================================
   Typography - all values verbatim from Ghost compiled screen.css
   ========================================= */

h1 {
  font-family: var(--font-serif);
  font-weight: 100;
  font-size: 6rem; /* 60px - Ghost: font-size: 6rem !important */
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--primary-text);
  margin-bottom: 1.5rem;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: 3.5rem; /* 35px - Ghost: font-size: 3.5rem */
  line-height: 1.3em;
  letter-spacing: -0.03em;
  color: var(--primary-text);
  margin-top: 1.6em;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 200; /* Ghost: font-weight: 200 */
  font-size: 2.2rem; /* 22px - sensible between body and h2 */
  letter-spacing: -0.01em;
  color: var(--primary-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.8rem; /* 18px */
  color: var(--primary-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.6rem; /* 16px */
  color: var(--primary-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.7rem;
  max-width: 100%;
}

p + p {
  margin-top: 0;
}

strong, b {
  font-weight: 400;
}

em, i {
  font-style: italic;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

/* Lists */

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

li::marker {
  color: var(--green);
}

/* Horizontal rule - Ghost: height 2px, pink, full content width */

hr {
  border: none;
  height: 2px;
  background-color: var(--pink);
  margin: 3.5rem 0;
  width: 100%;
}

/* Mark / highlight */

mark {
  background-color: transparent;
  font-weight: 500;
  color: var(--primary-text);
}

/* IPA */

.ipa {
  font-family: var(--font-mono);
  font-weight: 300;
  font-synthesis: none;
}

/* =========================================
   Layout
   ========================================= */

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--header-spacing) 1.5rem;
}

section {
  margin-bottom: 3.5rem;
}

section:last-child {
  margin-bottom: 0;
}

/* =========================================
   Header / navigation
   ========================================= */

header {
  background-color: var(--bg-white);
  /* Ghost: .gh-head { background-color: var(--color-white); height: 100px }. Padding restored for breathing room around 3.5rem site-title which is larger than Ghost's logo. No border-bottom (Ghost has none). Sticky positioning removed Session 29 per Ellie's call - nav scrolls normally. */
  padding: 2rem 0;
}

.header-content {
  /* Full-width header with side padding so logo sits near the viewport edge, matching Ghost's apparent layout. Body content elsewhere stays max-width-constrained. */
  width: 100%;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.header-content nav {
  justify-self: center;
}

.site-title {
  font-family: var(--font-serif);
  font-weight: 100; /* Ghost: font-weight: 100 */
  font-size: 3.5rem; /* 35px - Ghost: .gh-head-logo font-size: 3.5rem */
  letter-spacing: -0.06em; /* Ghost: letter-spacing: -0.06em */
  line-height: 1;
  color: var(--primary-text);
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
}

.site-title:hover {
  opacity: 1;
  color: var(--primary-text);
}

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

nav li {
  margin: 0;
  padding: 0;
}

nav li::marker {
  content: '';
}

nav a {
  font-family: var(--font-sans);
  /* DevTools inspection of live Ghost shows nav inheriting body's font-weight: 200 (the .nav a font-weight: 600 rule in compiled CSS does not apply to the live HTML). With fonts.css now mapping weight 200 to LTSuperior-Regular.otf (matching Ghost), nav at weight 200 renders Regular - exactly as Ghost does. */
  font-weight: 200;
  font-size: 1.8rem; /* 18px - Ghost: 1.8rem !important on >768px */
  color: var(--primary-text);
  position: relative;
  display: inline-block;
  padding: 0.2em 0;
  white-space: nowrap;
  z-index: 1; /* Ghost: z-index: 1 - creates stacking context so ::before z-index:-1 renders behind text but above body bg */
}

/* Pink tapered underline - verbatim from Ghost header.css
   Always visible at scaleY(0.4), grows to scaleY(0.6) on hover */
nav a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(180deg,
    rgba(247, 209, 209, 0.5) 0%,
    rgba(247, 209, 209, 0.5) 50%,
    transparent 80%,
    transparent 100%);
  transition: transform 0.4s ease;
  transform: scaleY(0.4); /* Ghost: scaleY(0.4) default - always visible */
  transform-origin: bottom;
}

nav a:hover {
  opacity: 1;
  color: var(--primary-text);
}

nav a:hover::before {
  transform: scaleY(0.6); /* Ghost: scaleY(0.6) on hover - grows upward */
}

/* =========================================
   Opening section (hero/intro paragraph)
   ========================================= */

.opening {
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: 2.4rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--primary-text);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.opening p {
  margin-bottom: 1.5rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: 100;
  font-style: italic;
  text-align: center;
  line-height: 1.5em;
}

.opening p:last-child {
  margin-bottom: 0;
}

/* =========================================
   Header card - full-bleed pink hero pattern
   Matches Ghost .kg-header-card.kg-v2.kg-width-full. Use for landing/sales
   page hooks: H2 heading (with optional <em> for italic emphasis) + italic
   sans-serif subheading + optional button. Author with an outer .header-card
   div (carries the pink background, breaks out to viewport edges) and an
   inner .header-card-content div (constrains the text to main column width).
   Added Session 29.
   ========================================= */

.header-card {
  /* Full-bleed breakout: element spans 100vw while content inside stays at main column width */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background-color: var(--pink);
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.header-card-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.header-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--primary-text);
}

.header-card h2 em {
  font-style: italic;
  font-weight: inherit;
}

.header-card .subheading {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 200;
  font-size: 2rem;
  line-height: 1.5;
  color: var(--primary-text);
  margin-bottom: 2rem;
}

.header-card .button {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .header-card-content {
    padding: 3.5rem 1.5rem;
  }
  .header-card {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

/* =========================================
   Buttons
   ========================================= */

/* Buttons - values from Ghost overrides.css verbatim */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 400; /* Ghost: font-weight: 400 !important */
  font-size: 1.8rem; /* 18px - Ghost: font-size: 1.8rem !important */
  letter-spacing: -0.01em;
  padding: 0 1.2em;
  height: 2.4em;
  border-radius: 30px; /* Ghost: border-radius: 30px !important */
  cursor: pointer;
  transition: transform 0.5s ease, background-color 0.5s ease, color 0.5s ease; /* Ghost: 0.5s */
  text-decoration: none;
  border: none;
  backface-visibility: hidden;
  will-change: transform, background-color, color;
  text-rendering: geometricPrecision;
  transform: translateZ(0);
}

/* Primary button = green outline (Ghost .kg-button-card.kg-align-left a.kg-btn) */
.button-primary {
  background-color: #fafafa; /* Ghost: background-color: #fafafa !important */
  color: #2ecc71; /* Ghost: color: #2ecc71 !important */
  border: 1px solid #2ecc71; /* Ghost: border: 1px solid #2ecc71 */
  width:max-content;
}

.button-primary:hover {
  background-color: #2ecc71;
  color: #fafafa;
  transform: scale(1.05); /* Ghost: scale(1.05) */
  opacity: 1;
}

/* Secondary button = pink fill (Ghost .kg-button-card.kg-align-center a.kg-btn) */
.button-secondary {
  background-color: #f7d1d1; /* Ghost: background-color: #f7d1d1 */
  color: #fafafa; /* Ghost: color: #fafafa !important - white text on pink */
  border: none; /* Ghost: no border specified */
}

.button-secondary:hover {
  transform: scale(1.05);
  color: #f7d1d1;
  background-color: #fafafa;
  border: 1px solid #f7d1d1; /* Ghost hover: adds border on white bg */
  opacity: 1;
}

/* =========================================
   CTA section
   ========================================= */

.cta-section {
  background-color: var(--green-soft);
  padding: 1.5em;
  border-radius: 5px;
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta-section p {
  max-width: 100%;
  margin-bottom: 0.75rem;
}

.cta-section p:last-of-type {
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

/* =========================================
   FAQ items
   ========================================= */

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--primary-text);
}

.faq-item p {
  margin-bottom: 0;
  color: var(--primary-text);
}

/* =========================================
   Toggle / accordion (native details/summary styled to match Ghost)
   ========================================= */

details.toggle,
details {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 1.4rem 2rem;
  margin: 2rem 0;
  background-color: var(--bg-white);
}

details summary {
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--primary-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '⌄';
  font-size: 2rem;
  color: var(--primary-text);
  transition: transform 0.2s ease;
  line-height: 1;
  margin-top: -0.5em;
}

details[open] summary::after {
  transform: rotate(180deg);
  margin-top: 0;
}

details[open] {
  padding-bottom: 1.5rem;
}

details > *:not(summary) {
  margin-top: 1.2rem;
}

/* =========================================
   Text box / glossary / pull quote
   ========================================= */

.text-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 1.7rem;
  line-height: 1.6;
}

blockquote {
  border-left: 3px solid var(--pink);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: 2.2rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--primary-text);
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* =========================================
   Images
   ========================================= */

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

main img:not(.rotating-logo-img):not(.logo-img) {
  border-radius: 8px;
  margin: 2rem auto;
}

.image-caption,
figcaption {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  color: var(--secondary-text);
  margin-top: 0.75rem;
  font-style: italic;
}

/* =========================================
   Rotating Dylan logo
   ========================================= */

/* Rotating logo - reverted to Ghost theme original values (Ellie's deliberate choices):
 * 300s rotation (meditative, near-static), 0.6 opacity, 30px/26px text, no border-radius
 */

@keyframes rotating-header-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.rotating-header-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 3.5rem auto;
  opacity: 0.6;
}

.rotating-header-wrapper .rotating-logo-img {
  position: absolute;
  width: 50%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.rotating-header-wrapper .rotating-circle {
  animation: rotating-header-rotate 300s linear infinite;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.rotating-header-wrapper .butler-text {
  font-family: 'Butler', serif;
  font-size: 30px;
  fill: #2ECC71;
}

.rotating-header-wrapper .lt-superior-text {
  font-family: 'LT Superior', sans-serif;
  font-size: 26px;
  fill: #2ECC71;
}

.logo-img {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

/* =========================================
   Footer
   ========================================= */

/* Footer - colours and padding verbatim from Ghost compiled CSS
   .gh-foot { color: var(--color-secondary-text); padding-bottom: 8rem; padding-top: 8rem }
   --color-secondary-text: #999
   .gh-foot a:hover { color: var(--color-darker-gray) }  // #444 */

footer {
  background-color: var(--bg-white);
  /* Ghost .gh-foot has padding only, no border-top. The earlier border-top: 1px solid var(--pink) was incorrectly added in Session 25 CSS work. Removed Session 29. */
  padding: 8rem 0; /* Ghost: padding-top: 8rem; padding-bottom: 8rem */
  margin-top: 5rem;
  color: #999; /* Ghost: var(--color-secondary-text) */
}

.footer-content {
  max-width: var(--content-max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4rem; /* Ghost: gap: 40px = 4rem at 10px base */
  font-size: 1.5rem; /* Ghost: font-size: 1.3rem */
}

.footer-left {
  justify-self: start;
  color: #999; /* light grey - Ghost --color-secondary-text */
  font-weight: 200;
}

.footer-center {
  justify-self: center;
}

.footer-center a {
  color: #999;
  font-weight: 100;
}

.footer-center a:hover {
  color: #444; /* Ghost: var(--color-darker-gray) */
  opacity: 1;
}

.footer-right {
  justify-self: end;
}

.footer-right a {
  color: #999;
  font-weight: 100;
}

.footer-right a:hover {
  color: #444; /* Ghost: var(--color-darker-gray) */
  opacity: 1;
}

.footer-right span {
  color: #ccc; /* Ghost: var(--mid-gray-color) - separator dimmer than text */
  margin: 0 0.4rem;
}

/* =========================================
   Responsive
   ========================================= */

/* =========================================
   Ghost theme classes - migrated page wrappers
   Required for pages migrated from Ghost (get-in-touch, policies-terms,
   testimonials, yui-testimonial). Values taken verbatim from Ghost's
   compiled screen.css cross-checked Session 29 (29 May 2026).
   ========================================= */

/* Page header wrapper (Ghost: .single-header) */
.single-header {
  margin-top: var(--header-spacing);
  margin-bottom: 4.5rem;
  text-align: center;
}

/* H1 inside the single-header: Ghost overrides the centred header to left-align the title */
.single-header .single-title {
  margin: 0 -10rem;
  text-align: center;
}

/* Feature image - kept in HTML for crawler-readable alt text, hidden visually.
   Matches the Ghost code-injection pattern Ellie was using. Note: hidden content
   carries substantially reduced SEO weight per Google guidance; primary bilingual
   SEO delivery should come via meta keywords + JSON-LD in B+ template work.
   Compound .single-media.kg-width-wide selector added Session 29 for specificity
   against any future grid-column rules from Ghost-derived CSS. */
.single-media,
.single-media.kg-width-wide {
  display: none;
}

/* Content canvas (Ghost: .gh-canvas grid for full-bleed images). We are not using
   full-bleed images on Eleventy migrated pages, so simplify to a block matching
   the existing main max-width. */
.gh-canvas {
  display: block;
}

.gh-content {
  font-size: 1.8rem;
  margin-top: 4rem;
}

/* Contact form (Ghost: .contact-form margin-top:3rem) */
.contact-form {
  margin-top: 3rem;
}

/* Input + textarea base. Values verified Session 29 against Ghost DevTools
   computed styles (form.css line 17 + button.css line 57 !important override). */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-input {
  width: 100%;
  background-color: #e5e5e5; /* Ghost button.css: #e5e5e5 !important */
  border: 1px solid #d3d3d3; /* Ghost button.css: 1px solid #d3d3d3 !important */
  border-radius: 6px; /* Ghost form.css */
  padding: 0 1.5rem; /* Ghost form.css */
  font-family: var(--font-sans);
  font-size: 1.6rem; /* Ghost form.css */
  height: 44px; /* Ghost form.css */
  color: #1a1a1a; /* Ghost form.css: var(--darker-gray-color) */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

/* Textarea relaxes the fixed input height. */
.contact-form textarea,
textarea.contact-input {
  height: auto;
  min-height: 14rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ccc; /* Ghost: --mid-gray-color #ccc - focus border darkens slightly */
}

/* Label-to-input spacing - Ghost form.css line 12 */
.contact-form label input,
.contact-form label textarea {
  margin-top: 0.7rem;
}

/* Label - Ghost form.css line 1 values verified by DevTools Session 29.
   Note: the form HTML carries inline style="font-size: 1.8rem !important"
   on each <label>, which overrides the 1.4rem default for this specific form. */
.contact-form label {
  display: block;
  font-weight: 400; /* Ghost form.css */
  color: #1a1a1a; /* Ghost form.css: var(--darker-gray-color) */
  font-size: 1.4rem; /* Ghost form.css default - overridden inline to 1.8rem on the get-in-touch form */
}

/* Ghost image card (used for the email-fallback banner on get-in-touch) */
.kg-card.kg-image-card {
  margin: 2rem auto;
}

.kg-image {
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 0; /* Override the default main img border-radius for inline content images */
}

/* Ghost CTA card (testimonials teaser) - values verbatim from Ghost cards.min.css.
   One deliberate deviation: button font-family uses the PwE brand sans (var(--font-sans))
   rather than Ghost's hardcoded system-font stack, for brand consistency with the other buttons. */
.kg-cta-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.kg-cta-bg-grey {
  background: rgba(151, 163, 175, 0.14);
}

.kg-cta-content {
  display: flex;
  padding: 1.25em;
  gap: 1.25em;
}

.kg-cta-minimal .kg-cta-content {
  flex-direction: column;
  gap: 1.6rem;
}

.kg-cta-content-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.kg-cta-text p {
  margin: 0;
  line-height: 1.5em;
}

.kg-cta-text p + p {
  margin-top: 1.25em;
}

/* Card internal rhythm - real values from Ghost compiled screen.css (.gh-content spacing model):
   1.6em between blocks, 2.4em around the hr divider, 0.8rem between list items. The first child
   (h2) keeps margin-top 0, so the only space above the heading is the card's own padding -
   which fixes the excess gap above the title. Paragraph pairs keep the card-specific 1.25em
   from cards.min.css (.kg-cta-text p + p) by higher specificity. */
.kg-cta-text > * {
  margin-top: 0;
  margin-bottom: 0;
}

.kg-cta-text > * + * {
  margin-top: 1.6em;
}

.kg-cta-text > hr,
.kg-cta-text > hr + * {
  margin-top: 2.4em;
}

/* The line after the heading ("From self-study...") gets the same 2.4em above it
   as "Before working with Ellie" gets below the divider. */
.kg-cta-text > h2 + * {
  margin-top: 2.4em;
}

.kg-cta-text li + li {
  margin-top: 0.8rem;
}

a.kg-cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1em;
  height: 2.5em;
  font-family: var(--font-sans);
  font-size: 0.95em;
  font-weight: 500;
  line-height: 1.65;
  text-decoration: none;
  border-radius: 6px;
  width: max-content;
  transition: opacity 0.15s ease-in-out;
}

a.kg-cta-button:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  /* Mobile typography - values verbatim from Ghost basics.css mobile breakpoint */

  body, p, li {
    font-size: 1.8rem !important; /* Ghost: 1.8rem !important */
  }

  h1 {
    font-size: 4rem !important; /* Ghost: 4rem !important */
  }

  h2 {
    font-size: 3rem !important; /* Ghost: 3rem !important */
    margin-top: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  .opening {
    font-size: 2rem;
    line-height: 1.4;
  }

  .header-content {
    gap: 1rem;
  }

  .site-title {
    font-size: 1.7rem;
  }

  nav ul {
    gap: 1.25rem;
  }

  nav a {
    font-size: 1.3rem;
  }

  .button {
    height: 2.6em;
    font-size: 1.5rem;
    padding: 0 1.3em;
  }

  .cta-section {
    padding: 1.75rem 1.25rem;
    margin: 2rem 0;
  }

  .cta-buttons {
    gap: 1rem;
  }

  .footer-links {
    gap: 0.5rem;
  }

  blockquote {
    font-size: 1.9rem;
    padding-left: 1.25rem;
  }

  .rotating-header-wrapper {
    width: 200px;
    height: 200px;
    margin: 2.5rem auto;
  }

  .rotating-header-wrapper .butler-text {
    font-size: 20px;
  }

  .rotating-header-wrapper .lt-superior-text {
    font-size: 16px;
  }

  .rotating-header-wrapper .rotating-logo-img {
    width: 42%;
  }
}

@media (max-width: 768px) {
  /* Footer collapses to centred stack on mobile */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .header-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .site-title,
  .header-content nav {
    justify-self: center;
  }

  nav ul {
    gap: 1.5rem;
  }

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

  .button {
    width: 100%;
  }

  .rotating-header-wrapper {
    width: 160px;
    height: 160px;
  }

  .rotating-header-wrapper .butler-text {
    font-size: 15px;
  }

  .rotating-header-wrapper .lt-superior-text {
    font-size: 13px;
  }

  .rotating-header-wrapper .rotating-logo-img {
    width: 38%;
  }
}
