/* Hygge Website Styles */

:root {
  --cream: #FAF8F6;
  --warm-white: #FFFFFF;
  --text-primary: #3D3935;
  --text-secondary: #8B8380;
  --text-muted: #AFA9A6;
  --accent: #A67C52;
  --accent-soft: #D4B5A0;
  --border: #E8E3DF;
  --shadow: rgba(61, 57, 53, 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: #8B5E3C;
  margin-bottom: 0.75em;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: #9B6E47;
}

h2 {
  font-size: 1.8em;
  margin-top: 2em;
  color: #9B6E47;
  padding-left: 0;
  transition: all 0.3s ease;
}

h2:hover {
  color: #B87E57;
}

h3 {
  font-size: 1.3em;
  margin-top: 1.5em;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

em {
  font-style: italic;
  color: var(--text-secondary);
}

strong {
  font-weight: 600;
}

/* Layout */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 3em 2em;
}

@media (max-width: 768px) {
  .container {
    padding: 2em 1.5em;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }
}

/* Header */

header {
  padding: 2em 0 2em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5em;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 3em;
  font-weight: 500;
  margin-bottom: 0.5em;
}

.site-title a {
  color: #9B6E47;
  border-bottom: none;
  transition: color 0.2s ease;
}

.site-title a:hover {
  color: var(--accent);
}

.site-tagline {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 1.75em;
}

nav {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  font-size: 0.95em;
}

nav a {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-soft);
}

@media (max-width: 768px) {
  header {
    padding: 1.5em 0 1.5em;
    margin-bottom: 2em;
  }

  .site-title {
    font-size: 1.5em;
  }

  nav {
    gap: 1.25em;
  }
}

/* Hero/Intro section */

.hero {
  margin-bottom: 3em;
  padding: 0;
}

.hero h2 {
  font-size: 2.5em;
  margin-top: 0;
  margin-bottom: 0.75em;
}

.hero p {
  font-size: 1.2em;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1.1em;
  }
}

/* Values grid */

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  margin: 2em 0;
}

@media (max-width: 768px) {
  .values {
    grid-template-columns: 1fr;
  }
}

.value-item {
  padding: 1.75em;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.value-item h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.value-item p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.6;
}

/* Callout box */

.callout {
  padding: 2em;
  background: var(--warm-white);
  border-left: 4px solid var(--accent);
  margin: 2em 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

.callout h3 {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Quote */

blockquote {
  font-family: var(--font-serif);
  font-size: 1.35em;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin: 2em 0;
  padding: 1.5em 2em;
  border-left: 4px solid var(--accent);
  background: var(--warm-white);
  border-radius: 4px;
}

@media (max-width: 768px) {
  blockquote {
    font-size: 1.2em;
    padding: 1.25em 1.5em;
  }
}

/* List styling */

ul,
ol {
  margin-bottom: 1.5em;
  padding-left: 1.75em;
}

li {
  margin-bottom: 0.75em;
  color: var(--text-secondary);
  line-height: 1.6;
}

li:last-child {
  margin-bottom: 0;
}

/* Footer */

footer {
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid var(--border);
  font-size: 0.9em;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

footer p {
  margin-bottom: 0.5em;
}

/* Legal pages specific */

.legal-header {
  margin-bottom: 2em;
}

.legal-header .date {
  color: var(--text-muted);
  font-size: 0.9em;
}

.legal-content h2 {
  font-size: 1.4em;
  margin-top: 2.5em;
}

.legal-content h3 {
  font-size: 1.1em;
  margin-top: 1.8em;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: var(--accent);
  color: var(--warm-white);
  border: none;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  border-bottom: none;
}

.button:hover {
  background: #956A45;
}

.button-secondary {
  background: var(--warm-white);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--warm-white);
}

/* Principles styling */

.principle {
  margin-bottom: 1.5em;
  padding: 0 1.5em 0 1.8em;
  border-left: 2px solid #D4B5A0;
  background: transparent;
  border-radius: 0;
  transition: all 0.3s ease;
}

.principle:hover {
  background: #FDF8F4;
}

.principle strong {
  color: #A67C52 !important;
}

.principle p {
  margin-bottom: 0;
}

.principle:last-of-type {
  margin-bottom: 0;
}

/* Small utility classes */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.spacer {
  height: 2em;
}

.divider {
  height: 2px;
  background: var(--border);
  margin: 3em 0;
  border: none;
}

/* Two column layout for content */

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5em;
  margin: 1.5em 0;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
}

/* Section spacing and styling */

section {
  margin-bottom: 3.5em;
}

section:last-of-type {
  margin-bottom: 2em;
}

/* Full-width section backgrounds */

.section-bg {
  margin-left: -2em;
  margin-right: -2em;
  padding: 1em 2em;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-bg h2:first-child {
  margin-top: 0;
}

.section-bg>*:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section-bg {
    margin-left: -0.5em;
    margin-right: -0.5em;
    padding: 0.75em 1.5em 2em;
  }
}