@import "https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lora:ital,wght@0,400..700;1,400..700&display=swap";

/* ==========================================
   1. CSS Variables
   ========================================== */

:root {
  --background: #f8fafc;
  --foreground: #1e293b;
  --card: #ffffff;
  --card-foreground: #1e293b;
  --popover: #ffffff;
  --popover-foreground: #1e293b;
  --primary: #1e293b;
  --primary-foreground: #ffffff;
  --secondary: #d97706;
  --secondary-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #d97706;
  --accent-foreground: #1e293b;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #1e293b;
  --radius: 0.5rem;
}

.dark {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --popover: #1e293b;
  --popover-foreground: #f8fafc;
  --primary: #f8fafc;
  --primary-foreground: #1e293b;
  --secondary: #d97706;
  --secondary-foreground: #0f172a;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: #d97706;
  --accent-foreground: #0f172a;
  --destructive: #991b1b;
  --destructive-foreground: #f8fafc;
  --border: #334155;
  --input: #334155;
  --ring: #f8fafc;
}

/* ==========================================
   2. Universal Reset
   ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

/* ==========================================
   3. Base HTML Elements
   ========================================== */

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr[title] {
  text-decoration: underline dotted;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

button, select {
  text-transform: none;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
}

button, [role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

/* ==========================================
   4. Typography & Layout Headings
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: Lora, Georgia, serif;
  color: var(--foreground);
}

h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; line-height: 1; }
}

h2 {
  font-size: 1.875rem;
  line-height: 1.375;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  h2 { font-size: 2.25rem; line-height: 2.5rem; }
}

h3 {
  font-size: 1.5rem;
  line-height: 1.375;
  font-weight: 500;
}

@media (min-width: 768px) {
  h3 { font-size: 1.875rem; line-height: 2.25rem; }
}

h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  h4 { font-size: 1.5rem; line-height: 2rem; }
}

p {
  line-height: 1.625;
  max-width: 65ch;
}

/* --- Global Header & Layout Fix --- */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Header Container */
header.site-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

/* Logo */
header.site-header .logo {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Main Navigation Menu */
header.site-header nav.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

header.site-header nav.main-nav a {
    color: #444444;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

header.site-header nav.main-nav a:hover {
    color: #000000;
}

/* Header Actions (Search & Subscribe) */
header.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

header.site-header .search-box input {
    padding: 8px 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

header.site-header .subscribe-btn {
    background-color: #000000;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}