/* BASE � structural rules only. Never put colour values or font
   family names directly here: reference a CSS variable so any
   theme (typical.css or otherwise) can swap the look. */

body,
nav ul,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading, sans-serif);
}

body {
  font-family: var(--font-body, sans-serif);
  background-color: var(--background-colour);
  color: var(--text-colour);
}

nav,
ul,
nav ul,
nav a.emph,
footer {
  display: flex;
  align-items: center;
}

html {
  background-color: var(--nav-background-colour);
}

nav {
  background-color: var(--nav-background-colour);
  color: var(--nav-text-colour);
  justify-content: space-between;
  padding: 1rem;
  transition: height 1s;
}

header {
  position: sticky;
  top: 0;
}

nav ul {
  gap: 25px;
}

nav li {
  list-style: none;
  color: inherit;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  display: flex;
}

nav a.emph {
  padding: 5px 10px;
  background-color: var(--nav-text-colour);
  color: var(--nav-background-colour);
  gap: 10px;
  border-radius: 5px;
}

nav a:not(.emph):hover {
  text-decoration: underline;
}

/* Desktop/mobile visibility helpers � bare defaults; media queries
   below flip these per breakpoint. */
.desk {
  display: flex;
}

.mob {
  display: none;
}

/* Checkbox-hack nav toggle (no JS) */
.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prop-row ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 0;
}

.prop-row li {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-weight: 500;
  align-items: center;
}

.post-card {
  width: 350px;
  border: 1px solid var(--border-colour);
  background-color: white;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.post-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
}

.post-card-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-colour);
}

.post-card-details h3 {
  font-family: var(--font-body, sans-serif);
  font-weight: bold;
  font-size: 1.3rem;
}

#fact-panel {
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-colour);
  border: 1px solid var(--border-colour, #e5e7eb);
  border-radius: 8px;
  max-width: 600px;
  margin-top: 20px;
  background-color: var(--card-bg, transparent);
}

#fact-intro {
  font-weight: bold;
}

#fact-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

#error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 15px;
  min-height: 50vh;
}

#error-code {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-colour);
  opacity: 0.9;
}

#error-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: -5px;
}

#error-description {
  font-size: 1.1rem;
  max-width: 500px;
  color: var(--text-muted, inherit);
  opacity: 0.8;
}

section,
article {
  background-color: var(--background-colour);
  color: var(--text-colour);
  display: flex;
  flex-direction: column;
}

section {
  padding: 50px;
}

article {
  padding: 50px;
  gap: 30px;
}

article p,
section p {
  max-width: 1000px;
  line-height: 1.5;
}

.pill .icon {
  height: 1rem;
  width: auto;
}

.pill {
  width: fit-content;
  padding: 5px 10px 5px 10px;
  font-weight: bold;
  border-radius: 5px;
  color: white;
  background-color: black;
  display: flex;
  align-items: center;
  gap: 5px;
}

#homepage-headliner {
  justify-content: space-between;
}

.headliner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 25px;
  line-height: 1;
}

.headliner h1 {
  font-size: 5.5rem;
}

.headliner h2 {
  color: rgb(48, 48, 48);
  font-style: italic;
}

.headline-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 850px;
}

.heading-with-icon {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

footer {
  background-color: var(--nav-background-colour);
  color: var(--nav-text-colour);
  padding: 50px;
}

footer .logo>img {
  height: 30px;
}

.logo {
  width: fit-content;
  display: flex;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
}

.footer-secondary-text-items {
  flex-direction: column;
  display: flex;
  gap: 10px;
}

.interest-card {
  padding: 20px;
  width: 200px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 140px;
  justify-content: space-between;
  box-sizing: border-box;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

.footer-right a .icon-arrow-right {
  height: 15px;
}

.footer-right a {
  color: var(--nav-text-colour);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-right a svg,
.footer-right a img {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-right a:hover svg {
  transform: translateX(6px);
}

.section-top-part {
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}

.section-call-to-action {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-colour);
}

.section-call-to-action:hover {
  text-decoration: underline;
}

.listing {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 25px;
  overflow-x: auto;
  overflow-y: hidden;
}

.post-header {
  display: flex;
  flex-direction: row;
  color: white;
  gap: 25px;
  background-color: black;
  padding: 240px 50px 50px 50px;
  justify-content: space-between;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.post-header-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.callout-stack {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Base callout */
.callout {
  --accent: var(--callout-info);
  border-radius: var(--callout-radius);
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-left: 5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) var(--callout-bg-tint), Canvas);
  line-height: 1.55;
}


.callout-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.callout-heading svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.callout-content {
  color: color-mix(in srgb, var(--accent) 0%, currentColor 88%);
}

.callout-content>*:first-child {
  margin-top: 0;
}

.callout-content>*:last-child {
  margin-bottom: 0;
}

/* --- Variant overrides --- */
.callout-info {
  --accent: var(--callout-info);
}

.callout-warning {
  --accent: var(--callout-warning);
}

.callout-danger {
  --accent: var(--callout-danger);
  border-width: 1.5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.callout-tip {
  --accent: var(--callout-tip);
}

.callout-success {
  --accent: var(--callout-success);
  background: color-mix(in srgb, var(--accent) 4%, Canvas);
}

.callout-danger::before {
  width: 5px;
}

/* Mobile: under 768px */
@media (max-width: 767px) {
  #homepage-headliner {
    flex-direction: column-reverse;
    gap: 25px;
  }

  .interest-card {
    width: 100%;
    height: 140px;
  }

  section,
  article {
    padding: 30px;
  }

  .prop-row ul {
    padding: 0;
  }

  nav {
    flex-wrap: wrap;
  }

  .nav-burger.mob {
    display: block;
  }

  nav ul {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  nav li {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
  }

  nav a {
    display: block;
  }

  nav a.emph {
    width: fit-content;
    padding: 0;
    background: none;
    color: white;
  }

  .nav-toggle:checked~ul {
    display: flex;
    gap: 15px;
    margin-top: 25px;
  }

  .nav-link svg {
    display: none;
  }

  .listing {
    flex-direction: column;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
  }

  footer {
    flex-direction: column-reverse;
    gap: 45px;
    padding: 30px;
  }

  .footer-left {
    width: 100%;
  }

  .footer-right {
    gap: 30px;
    align-items: flex-start;
    width: 100%;
  }

  .footer-right a {
    gap: 17px;
    width: 100%;
    justify-content: space-between;
  }

  .post-card {
    width: 100%;
    flex: 0 0 100%;
  }

  .post-header {
    padding: 100px 30px 30px 30px;
  }

  .post-card img {
    height: 315px;
  }

  .headliner h1 {
    font-size: 4rem;
  }
}

#homepage-interests .listing {
  gap: 15px;
  flex-wrap: wrap;
}

.interest-header {
  padding: 60px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 85px;
  height: 200px;
}

.interest-header svg {
  height: 100%;
  flex-shrink: 0;
  width: auto;
}

.interest-header-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  height: 100%;
  font-weight: bold;
  max-width: 790px;
}

.interest-header-title {
  font-size: 3.5rem;
  font-family: var(--font-body, sans-serif);
  font-weight: bold;
}

#self-portrait {
  height: 330px;
}

/* MARKDOWN CONTENT � opt out of the sitewide flex layout system.
   Colours/fonts still come from theme variables in BASE; only
   layout properties are reverted to normal document flow here. */

.markdown {
  display: block;
}

.markdown :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, hr, table) {
  display: revert;
  margin: revert;
  padding: revert;
  align-items: revert;
  justify-content: revert;
  flex-direction: revert;
  gap: revert;
}

.markdown li {
  list-style: revert;
}

#announcement-banner {
  padding: 10px;
  justify-content: center;
  display: flex;
}