/* Shared styles for homelet.au — font, palette, footer, and the text pages (about, privacy). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --primary: rgba(102, 15, 142, 1);
  --primary-80: rgba(123, 67, 160, 1);
  --primary-60: rgba(155, 113, 182, 1);
  --primary-40: rgba(188, 160, 207, 1);
  --primary-20: rgba(221, 208, 230, 1);
  --accent: rgba(255, 63, 143, 1);
  --accent-80: rgba(237, 111, 164, 1);
  --accent-60: rgba(240, 146, 187, 1);
  --accent-20: rgba(249, 218, 232, 1);
  --secondary: rgba(62, 114, 223, 1);
  --secondary-80: rgba(97, 143, 229, 1);
  --secondary-20: rgba(215, 226, 248, 1);
  --highlight: rgba(255, 183, 3, 1);
  --grey-120: rgba(51, 51, 51, 1);
  --grey-80: rgba(119, 119, 119, 1);
  --grey-60: rgba(153, 153, 153, 1);
  --grey-20: rgba(221, 221, 221, 1);
  --grey-10: rgba(238, 238, 238, 1);
  --body-text: rgba(34, 34, 34, 1);
  --white: rgba(255, 255, 255, 1);
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* ---- Footer (every page) ---- */

.site-footer {
  margin-top: auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--grey-60);
  position: relative;
}

.site-footer nav {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--grey-80);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer .sep {
  margin: 0 0.5rem;
  color: var(--grey-20);
}

/* ---- Text pages ---- */

.page-top {
  position: relative;
  overflow: hidden;
  padding: 0 1.5rem 3rem;
  background:
    radial-gradient(ellipse 70% 90% at 15% 100%, rgba(102, 15, 142, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(255, 63, 143, 0.07) 0%, transparent 70%),
    var(--white);
  border-bottom: 1px solid var(--grey-10);
}

.page-top::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1' fill='rgba(102,15,142,0.12)'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  transform: rotate(15deg);
  pointer-events: none;
}

.site-header,
.page-intro,
.page-body {
  max-width: 42rem;
  margin: 0 auto;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 2.75rem;
}

.home-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.home-link .logo {
  width: 2rem;
  height: 2rem;
}

.home-link .wordmark {
  height: 1.1rem;
}

.site-header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-80);
  text-decoration: none;
  margin-left: 1.25rem;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--primary);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.page-intro h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--grey-120);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--grey-80);
}

.page-body {
  padding: 2.5rem 1.5rem 4rem;
  box-sizing: content-box;
}

.page-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--grey-120);
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1.5rem;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p,
.page-body ul {
  margin-bottom: 1rem;
}

.page-body ul {
  padding-left: 1.25rem;
}

.page-body li {
  margin-bottom: 0.5rem;
}

.page-body li::marker {
  color: var(--primary-60);
}

.page-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  color: var(--accent);
}

.page-body strong {
  font-weight: 600;
  color: var(--grey-120);
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--grey-10);
  border-left: 3px solid var(--primary);
  border-radius: 0.5rem;
  background: rgba(102, 15, 142, 0.02);
  margin-bottom: 1rem;
}

.details dt {
  font-size: 0.875rem;
  color: var(--grey-80);
}

.details dd {
  font-weight: 500;
}

.updated {
  font-size: 0.875rem;
  color: var(--grey-60);
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .site-header nav a {
    margin-left: 0.9rem;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .details dd {
    margin-bottom: 0.6rem;
  }
}
