/* ============================================
   HæklingByFie — Global Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Farver */
  --color-bg:          #FAF8F5;
  --color-surface:     #F2EDE6;
  --color-surface-alt: #EDE8E0;
  --color-sage:        #C4837C;
  --color-sage-dark:   #A66860;
  --color-rose:        #E0A89F;
  --color-rose-light:  #F5E0DC;
  --color-text:        #3A3330;
  --color-text-muted:  #7A6F6A;
  --color-border:      #DDD6CE;
  --color-white:       #FFFFFF;

  /* Typografi */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(58,51,48,0.08);
  --shadow-md: 0 4px 16px rgba(58,51,48,0.1);
  --shadow-lg: 0 8px 32px rgba(58,51,48,0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* --- Layout utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: 760px;
}

/* --- Spacing utilities --- */
.mt-sm { margin-top: var(--space-2); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-8); }
.mt-xl { margin-top: var(--space-16); }

.mb-sm { margin-bottom: var(--space-2); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-8); }

.pt-section  { padding-top: var(--space-24); }
.pb-section  { padding-bottom: var(--space-24); }
.py-section  { padding-top: var(--space-24); padding-bottom: var(--space-24); }

/* --- Typography utilities --- */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-xl);  font-weight: 600; }
h4 { font-size: var(--text-lg);  font-weight: 600; }

p { line-height: 1.75; }

/* --- Section heading style --- */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-rose);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.text-center .divider { margin-inline: auto; }

/* --- Helper --- */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* --- Page hero (reused on inner pages) --- */
.page-hero {
  background-color: var(--color-surface);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.page-hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.page-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* --- Responsive typography --- */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-xl); }
  .section-title { font-size: var(--text-xl); }
  .page-hero__title { font-size: var(--text-2xl); }
  .pt-section, .pb-section, .py-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
  .container { padding-inline: var(--space-4); }
}
