/* ---------------------------------------------- */
/* Rachel’s colour choices: */
/*   • Background: #180b37 */
/* ---------------------------------------------- */

/* Load local fonts */ */
@font-face {
  font-family: 'Disket Mono';
  src: url('fonts/Disket Mono.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Norwester';
  src: url('fonts/Norwester.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --clr-primary: #180b37;
  --clr-accent : #4797cc;
  --clr-white  : #ffffff;
  --clr-bg     : var(--clr-primary);
  --clr-surface: #22154a;
  --clr-text   : var(--clr-white);
  --clr-muted  : #8fb3d4;
  --clr-section: #122c44;
  --clr-link   : #aad4ff;
  --radius     : 6px;
  --spacing    : 8px;
  --transition : 0.25s ease;
}

/* Base typography & layout */
body {
  margin: 0;
  font-family: 'Norwester', system-ui, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
}

/* Paragraphs and list items in Disket Mono */
p,
li {
  font-family: 'Disket Mono', monospace;
}

/* Links */
a {
  color: var(--clr-link);
  text-decoration: underline;
}
a:hover,
a:focus {
  color: var(--clr-white);
  background: var(--clr-accent);
  text-decoration: none;
}

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacing)*2) var(--spacing);
  background: var(--clr-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Headings in Norwester */
header h1,
h2 {
  font-family: 'Norwester', system-ui, sans-serif;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.subtitle {
  margin: 0.25rem 0;
  font-style: italic;
  color: var(--clr-muted);
}

.location {
  margin: 0;
  font-size: 0.9rem;
}

.location a {
  color: var(--clr-link);
  text-decoration: none;
}

/* Navigation */
.site-nav {
  order: 2;
  width: 100%;
  text-align: center;
  margin-top: var(--spacing);
}
.site-nav ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--spacing);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  padding: 0.5rem 0.75rem;
  color: var(--clr-text);
  background: transparent;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.site-nav a:hover,
.site-nav a:focus {
  background: rgba(71, 151, 204, 0.2);
}

@media (min-width: 640px) {
  header {
    padding: calc(var(--spacing)*6) 1rem;
  }
  .site-nav {
    order: 3;
    width: auto;
    margin-top: 0;
  }
}

/* Main content */
main {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

section {
  background: var(--clr-section);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: calc(var(--spacing)*1.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Button styling */
.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--clr-accent);
  color: var(--clr-white);
  border-radius: var(--radius);
  text-decoration: none;
  margin-top: 1rem;
  margin-right: 1rem;
  transition: background var(--transition), transform 0.2s ease;
}
.button:hover {
  background: #5aa7d8;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #102e4a;
  font-size: 0.9rem;
  color: #8fa8c3;
}
