/* gyk.dk Base Styles
   Reset, global typography, layout primitives */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--on-surface);
  background-color: var(--background);
  min-height: 100dvh;
}

::selection {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--on-surface);
}

h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 700; }
h4 { font-size: 20px; font-weight: 700; }
h5 { font-size: 18px; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 60px; }
  h2 { font-size: 36px; }
}

/* Links */
a {
  color: var(--tertiary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

/* Page layout */
.page-content {
  padding: 96px 24px 128px; /* space for fixed header + bottom nav */
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-content {
    padding-bottom: 48px; /* no bottom nav on desktop */
  }
}

/* Micro-label pattern */
.micro-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--outline);
}

/* Ghost border utility */
.ghost-border {
  border: var(--ghost-border);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Material Symbols base */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
