/* Mr Sutherland — static site styles (ported from mrsutherland-editorial theme) */

:root {
  --color-bg: #0f172a;
  --color-bg-elevated: #1e293b;
  --color-surface: #334155;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-accent: #f59e0b;
  --color-border: #475569;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --space-section: 5rem;
  --space-block: 1.5rem;
  --content-max: 48rem;
  --content-wide: 56rem;
  --hub-max: 75rem;
  --hub-rainbow: linear-gradient(90deg, #0284c7 0%, #0d9488 25%, #c2410c 50%, #b45309 75%, #0284c7 100%);
  --hub-card-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Site header */
.site-header {
  background: var(--color-bg-elevated);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-branding .site-title {
  margin: 0;
}

.site-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.site-branding a {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.site-branding a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.main-navigation a {
  color: var(--color-text-muted);
  font-weight: 600;
}
.main-navigation a:hover {
  color: var(--color-text);
}

/* Layout */
.site-main {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-section) 1.5rem;
}

body.mrs-home-hub .site-main,
body.page-full-width .site-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.page-immersive .site-header,
body.page-immersive .site-footer {
  display: none;
}

body.page-immersive .site-main {
  max-width: none;
  padding: 0;
}

/* Article / page content */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  margin-bottom: 0.5rem;
}

.article-content {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.article-content p {
  margin-bottom: 1.25rem;
}
.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}
.article-content th,
.article-content td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}
.article-content .lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.about-section {
  text-align: center;
  padding: 3rem 1.5rem;
}
.about-section img {
  border-radius: 1rem;
  margin-top: 2rem;
}

/* Blog index */
.blog-index-header {
  margin-bottom: 2.5rem;
}
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  transition: box-shadow 0.2s ease;
}
.post-card:hover {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
.post-card h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}
.post-card h2 a {
  color: var(--color-text);
}
.post-card h2 a:hover {
  color: var(--color-accent);
}
.post-card .post-excerpt {
  color: var(--color-text-muted);
  margin: 0;
}

/* App embed full-width */
.app-embed {
  width: 100%;
  padding: 2rem 1rem;
}
.app-embed #root {
  width: 100%;
  min-height: 600px;
}

/* Site footer */
.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  margin-top: var(--space-section);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.site-footer a {
  color: var(--color-text-muted);
}
.site-footer a:hover {
  color: var(--color-accent);
}

body.mrs-home-hub .site-footer,
body.page-full-width .site-footer {
  margin-top: 0;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (scripting: none) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Resource hub */
.resource-hub {
  width: 100%;
}

.hub-hero {
  position: relative;
  padding: 4.5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(2, 132, 199, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 30%, rgba(194, 65, 12, 0.22) 0%, transparent 50%),
    linear-gradient(165deg, #020617 0%, #0f172a 40%, #0c4a6e 100%);
  text-align: center;
  border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

.hub-hero__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.hub-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0 0 1rem;
}

.hub-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hub-hero__lead {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.hub-section {
  padding: 3.5rem 1.5rem 4rem;
  background: var(--color-bg);
}

.hub-section--featured {
  background: #0c1222;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}

.hub-section__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.hub-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.hub-section__subhead {
  margin: 0 0 2.25rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 40rem;
}

.hub-section--featured .hub-section__heading {
  margin-bottom: 1.5rem;
}

.hub-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.hub-featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.8);
  background: var(--color-bg-elevated);
  box-shadow: var(--hub-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hub-featured-card--time {
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.18), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(56, 189, 248, 0.16), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
  border-color: rgba(56, 189, 248, 0.45);
}

.hub-featured-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.hub-featured-card__strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--hub-rainbow);
  background-size: 200% 100%;
  animation: hub-strip-shift 14s ease-in-out infinite;
}

.hub-featured-card--time .hub-featured-card__strip {
  background: linear-gradient(90deg, #713f12 0%, #f59e0b 34%, #0c4a6e 67%, #1e3a8a 100%);
  background-size: 200% 100%;
}

.hub-featured-card--area {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.14), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(16, 185, 129, 0.12), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--area .hub-featured-card__strip {
  background: linear-gradient(90deg, #004ac6 0%, #2563eb 35%, #006c49 67%, #10b981 100%);
  background-size: 200% 100%;
}

.hub-featured-card--area .hub-featured-card__label { color: #60a5fa; }
.hub-featured-card--area .hub-featured-card__cta { color: #6ee7b7; }

.hub-featured-card--stop-motion {
  background:
    radial-gradient(circle at 12% 0%, rgba(225, 100, 70, 0.22), transparent 38%),
    radial-gradient(circle at 100% 18%, rgba(85, 66, 62, 0.35), transparent 34%),
    #1A1D22;
}
.hub-featured-card--stop-motion .hub-featured-card__strip {
  background: linear-gradient(90deg, #1A1D22 0%, #2C2A28 42%, #55423E 72%, #E16446 100%);
  background-size: 200% 100%;
  justify-content: flex-start;
  padding-left: 1.5rem;
}
.hub-featured-card--stop-motion .hub-featured-card__label { color: #E16446; }
.hub-featured-card--stop-motion .hub-featured-card__cta { color: #E16446; }
.hub-featured-card--stop-motion .hub-featured-card__title,
.hub-featured-card--stop-motion .hub-featured-card__text { color: #F7F3EE; }
.hub-featured-card__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
}

.hub-featured-card--command {
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 62, 199, 0.16), transparent 38%),
    radial-gradient(circle at 100% 10%, rgba(0, 84, 113, 0.14), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--command .hub-featured-card__strip {
  background: linear-gradient(90deg, #001452 0%, #003ec7 34%, #005471 67%, #006e92 100%);
  background-size: 200% 100%;
}

.hub-featured-card--command .hub-featured-card__label { color: #93c5fd; }
.hub-featured-card--command .hub-featured-card__cta { color: #7dd3fc; }

.hub-featured-card--charlotte {
  background:
    radial-gradient(circle at 16% 0%, rgba(25, 118, 210, 0.18), transparent 38%),
    radial-gradient(circle at 100% 14%, rgba(78, 205, 196, 0.14), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--charlotte .hub-featured-card__strip {
  background: linear-gradient(90deg, #0d47a1 0%, #1976d2 34%, #4ecdc4 67%, #42a5f5 100%);
  background-size: 200% 100%;
}

.hub-featured-card--charlotte .hub-featured-card__label { color: #90caf9; }
.hub-featured-card--charlotte .hub-featured-card__cta { color: #4ecdc4; }

.hub-featured-card--persuasion {
  background:
    radial-gradient(circle at 14% 0%, rgba(13, 92, 99, 0.2), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(217, 101, 75, 0.14), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--persuasion .hub-featured-card__strip {
  background: linear-gradient(90deg, #173f43 0%, #0d5c63 34%, #d9654b 67%, #d89a2b 100%);
  background-size: 200% 100%;
}

.hub-featured-card--persuasion .hub-featured-card__label { color: #5eead4; }
.hub-featured-card--persuasion .hub-featured-card__cta { color: #fdba74; }

.hub-featured-card--comprehension {
  background:
    radial-gradient(circle at 14% 0%, rgba(13, 122, 111, 0.2), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(30, 58, 95, 0.16), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--comprehension .hub-featured-card__strip {
  background: linear-gradient(90deg, #0d4f48 0%, #0d7a6f 34%, #1e3a5f 67%, #3b82f6 100%);
  background-size: 200% 100%;
}

.hub-featured-card--comprehension .hub-featured-card__label { color: #5eead4; }
.hub-featured-card--comprehension .hub-featured-card__cta { color: #93c5fd; }

.hub-featured-card--presentations {
  background:
    radial-gradient(circle at 14% 0%, rgba(33, 79, 75, 0.22), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(217, 104, 75, 0.14), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--presentations .hub-featured-card__strip {
  background: linear-gradient(90deg, #0b302c 0%, #214f4b 34%, #d9684b 67%, #b9d66b 100%);
  background-size: 200% 100%;
}

.hub-featured-card--presentations .hub-featured-card__label { color: #9fd4cf; }
.hub-featured-card--presentations .hub-featured-card__cta { color: #f0a890; }

.hub-featured-card--reading {
  background:
    radial-gradient(circle at 14% 0%, rgba(23, 99, 66, 0.22), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(23, 90, 144, 0.16), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--reading .hub-featured-card__strip {
  background: linear-gradient(90deg, #0f3d2e 0%, #176342 38%, #175a90 70%, #a23d37 100%);
  background-size: 200% 100%;
}

.hub-featured-card--reading .hub-featured-card__label { color: #86efac; }
.hub-featured-card--reading .hub-featured-card__cta { color: #93c5fd; }

.hub-featured-card--poetry {
  background:
    radial-gradient(circle at 14% 0%, rgba(92, 61, 28, 0.24), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(168, 112, 42, 0.16), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--poetry .hub-featured-card__strip {
  background: linear-gradient(90deg, #2a2118 0%, #6b4423 36%, #c4a35a 68%, #8c3a2f 100%);
  background-size: 200% 100%;
}

.hub-featured-card--poetry .hub-featured-card__label { color: #e7c98a; }
.hub-featured-card--poetry .hub-featured-card__cta { color: #f0d78c; }
.hub-featured-card--poetry .hub-pathway-downloads__list a { color: #e7c98a; }
.hub-featured-card--poetry .hub-pathway-downloads__list a:hover,
.hub-featured-card--poetry .hub-pathway-downloads__list a:focus-visible { color: #f6e7c1; }

/* Pathway cards: presentation CTA + downloads (not a single wrapping link) */
.hub-pathway-card {
  cursor: default;
}
.hub-pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
  border-color: rgba(56, 189, 248, 0.45);
}
.hub-pathway-card__cta {
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.hub-pathway-card__cta:hover,
.hub-pathway-card__cta:focus-visible {
  color: #fef08a;
  text-decoration: none;
}
.hub-pathway-card:hover .hub-pathway-card__cta .hub-featured-card__arrow {
  transform: translateX(6px);
}
.hub-pathway-downloads {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.hub-pathway-downloads__heading {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hub-pathway-downloads__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hub-pathway-downloads__list a {
  color: #9fd4cf;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.hub-pathway-downloads__list a:hover,
.hub-pathway-downloads__list a:focus-visible {
  color: #f0a890;
  text-decoration: underline;
}

.hub-featured-card--persuasive-lessons {
  background:
    radial-gradient(circle at 14% 0%, rgba(15, 48, 66, 0.22), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(20, 120, 110, 0.16), transparent 34%),
    var(--color-bg-elevated);
}

.hub-featured-card--persuasive-lessons .hub-featured-card__strip {
  background: linear-gradient(90deg, #0f3042 0%, #14786e 34%, #f0bd3f 67%, #d9644f 100%);
  background-size: 200% 100%;
}

.hub-featured-card--persuasive-lessons .hub-featured-card__label { color: #5eead4; }
.hub-featured-card--persuasive-lessons .hub-featured-card__cta { color: #f0bd3f; }
.hub-featured-card--persuasive-lessons .hub-pathway-downloads__list a { color: #5eead4; }
.hub-featured-card--persuasive-lessons .hub-pathway-downloads__list a:hover,
.hub-featured-card--persuasive-lessons .hub-pathway-downloads__list a:focus-visible { color: #f0bd3f; }

.hub-featured-card--treasure {
  background:
    radial-gradient(circle at 14% 0%, rgba(23, 116, 95, 0.22), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(239, 174, 38, 0.16), transparent 34%),
    #123f3b;
}
.hub-featured-card--treasure .hub-featured-card__strip {
  background: linear-gradient(90deg, #123f3b 0%, #17745f 34%, #efae26 67%, #df6635 100%);
  background-size: 200% 100%;
}
.hub-featured-card--treasure .hub-featured-card__label { color: #f5cc61; }
.hub-featured-card--treasure .hub-featured-card__cta { color: #f0bd3f; }

.hub-featured-card--factory {
  background:
    radial-gradient(circle at 14% 0%, rgba(31, 157, 141, 0.22), transparent 38%),
    radial-gradient(circle at 100% 12%, rgba(255, 112, 69, 0.16), transparent 34%),
    #1f5673;
}
.hub-featured-card--factory .hub-featured-card__strip {
  background: linear-gradient(90deg, #1f5673 0%, #1f9d8d 34%, #ffcd38 67%, #ff7045 100%);
  background-size: 200% 100%;
}
.hub-featured-card--factory .hub-featured-card__label { color: #8ef0c9; }
.hub-featured-card--factory .hub-featured-card__cta { color: #ffcd38; }

.hub-featured-card--amazon {
  background:
    radial-gradient(circle at 14% 0%, rgba(93, 107, 63, 0.28), transparent 42%),
    radial-gradient(circle at 100% 12%, rgba(199, 139, 43, 0.18), transparent 36%),
    #2a221c;
}
.hub-featured-card--amazon .hub-featured-card__strip {
  background: linear-gradient(90deg, #3b2f26 0%, #5d6b3f 34%, #c78b2b 67%, #a8552f 100%);
  background-size: 200% 100%;
}
.hub-featured-card--amazon .hub-featured-card__label { color: #d4c4a8; }
.hub-featured-card--amazon .hub-featured-card__cta { color: #e8c078; }
.hub-featured-card--amazon .hub-featured-card__title,
.hub-featured-card--amazon .hub-featured-card__text { color: #f6efe4; }

.hub-featured-card--amazon-threat {
  background:
    radial-gradient(circle at 14% 0%, rgba(168, 85, 47, 0.28), transparent 42%),
    radial-gradient(circle at 100% 12%, rgba(59, 47, 38, 0.4), transparent 36%),
    #2a221c;
}
.hub-featured-card--amazon-threat .hub-featured-card__strip {
  background: linear-gradient(90deg, #3b2f26 0%, #a8552f 40%, #c78b2b 100%);
  background-size: 200% 100%;
}
.hub-featured-card--amazon-threat .hub-featured-card__label { color: #e8c9b4; }
.hub-featured-card--amazon-threat .hub-featured-card__cta { color: #f0bd3f; }
.hub-featured-card--amazon-threat .hub-featured-card__title,
.hub-featured-card--amazon-threat .hub-featured-card__text { color: #f6efe4; }

.hub-featured-card--cyclone .hub-featured-card__strip {
  background: linear-gradient(90deg, #0c4a6e 0%, #0284c7 50%, #0369a1 100%);
  background-size: 200% 100%;
}
.hub-featured-card--cyclone .hub-featured-card__label { color: #7dd3fc; }

.hub-featured-card--bushfire .hub-featured-card__strip {
  background: linear-gradient(90deg, #7c2d12 0%, #ea580c 50%, #c2410c 100%);
  background-size: 200% 100%;
}
.hub-featured-card--bushfire .hub-featured-card__label { color: #fdba74; }
.hub-featured-card--bushfire .hub-featured-card__cta { color: #fed7aa; }

.hub-featured-card--earthquake .hub-featured-card__strip {
  background: linear-gradient(90deg, #312e81 0%, #4f46e5 50%, #6366f1 100%);
  background-size: 200% 100%;
}
.hub-featured-card--earthquake .hub-featured-card__label { color: #a5b4fc; }
.hub-featured-card--earthquake .hub-featured-card__cta { color: #c7d2fe; }

.hub-featured-card--soon {
  cursor: default;
  opacity: 0.92;
}
.hub-featured-card--soon:hover {
  transform: none;
  box-shadow: var(--hub-card-shadow);
  border-color: rgba(71, 85, 105, 0.8);
}
.hub-featured-card__cta--muted {
  color: var(--color-text-muted) !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.hub-featured-card:hover .hub-featured-card__strip {
  animation-duration: 8s;
}

@keyframes hub-strip-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-featured-card__strip { animation: none; }
}

.hub-featured-card__icon {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.hub-featured-card__body {
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: left;
}

.hub-featured-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0 0 0.5rem;
}

.hub-featured-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hub-featured-card__text {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42rem;
}

.hub-featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fde68a;
}

.hub-featured-card:hover .hub-featured-card__cta { color: #fef08a; }

.hub-featured-card__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hub-featured-card:hover .hub-featured-card__arrow {
  transform: translateX(6px);
}

.hub-subject-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.hub-subject-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 9.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35);
}

.hub-subject-card--humanities {
  background: linear-gradient(145deg, #1e1b4b 0%, var(--color-bg-elevated) 100%);
  border-color: #4c1d95;
}
.hub-subject-card--science {
  background: linear-gradient(145deg, #0c4a6e 0%, var(--color-bg-elevated) 100%);
  border-color: #0369a1;
}
.hub-subject-card--maths {
  background: linear-gradient(145deg, #713f12 0%, var(--color-bg-elevated) 100%);
  border-color: #b45309;
}

.hub-subject-card--placeholder {
  cursor: default;
  opacity: 0.9;
  box-shadow: none;
}

.hub-subject-card:not(.hub-subject-card--placeholder):hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.45);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--color-text);
}

.hub-subject-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hub-subject-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.hub-subject-card__hint {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: auto;
}

.hub-subject-card--placeholder .hub-subject-card__hint {
  color: #a8a29e;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Contact page */
.contact-container {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.contact-card-main {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--hub-card-shadow);
  margin-bottom: 2.5rem;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 2rem;
  padding: 0.25rem 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-email-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-email-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.contact-email-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-email-value__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.contact-email-value__text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.contact-btn:active {
  transform: translateY(0);
}

.contact-btn--primary {
  background: var(--color-accent);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.contact-btn--primary:hover {
  background: #d97706;
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.contact-btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.contact-btn--secondary:hover {
  background: #3f4e65;
  border-color: #64748b;
  color: #fff;
}

.contact-btn--copied {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.contact-feedback {
  font-size: 0.8125rem;
  color: #34d399;
  min-height: 1.2rem;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-grid-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}

.contact-grid-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.contact-grid-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-grid-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

