/*==================================================
=            ROOT VARIABLES & BASE STYLES          =
==================================================*/

:root {
  --bg: #fbf1c7;
  --fg: #3c3836;
  --accent: #d79921;
}

body {
  margin: 0;
  padding-top: 40px;
  font-family: 'JetBrainsMono Nerd Font', monospace;
  background-color: var(--bg);
  color: var(--fg);
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}


/*==================================================
=            NAVIGATION & LINKS                    =
==================================================*/

nav a,
nav a:visited {
  text-decoration: none;
  color: var(--fg);
  margin: 0 10px;
}

.linkcolor,
.linkcolor:visited {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.accent {
  color: var(--accent);
  font-weight: bold;
}


/*==================================================
=            HEADER & THEME SWITCHER               =
==================================================*/

header {
  padding: 2rem;
}

#theme-switcher {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 0.9rem;
}

#theme-switcher button {
  background: none;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 0.2rem 0.5rem;
  font-family: inherit;
  cursor: pointer;
}


/*==================================================
=            COLOR THEMES                         =
==================================================*/

/* -- GRUVBOX -- */
body.gruvbox-dark {
  --bg: #3c3836;
  --fg: #ebdbb2;
  --accent: #d79921;
}

body.gruvbox-light {
  --bg: #fbf1c7;
  --fg: #3c3836;
  --accent: #d79921;
}

/* -- CATPPUCCIN -- */
body.catppuccin-dark {
  --bg: #1e1e2e;
  --fg: #cdd6f4;
  --accent: #f38ba8;
}

body.catppuccin-light {
  --bg: #faf4ed;
  --fg: #4c4f69;
  --accent: #d20f39;
}

/* -- EVERFOREST -- */
body.everforest-dark {
  --bg: #2b3339;
  --fg: #d3c6aa;
  --accent: #a7c080;
}

body.everforest-light {
  --bg: #f1efee;
  --fg: #5c5c57;
  --accent: #a7c080;
}


/*==================================================
=            NEWSPAPER LAYOUT                     =
==================================================*/

/* Newspaper Header */
.newspaper-header {
  border-bottom: 4px double var(--fg);
  padding: 1rem 2rem;
  text-align: center;
}

.newspaper-title {
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

.edition-info {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.7;
}

/* Page Header (Page Label) */
.page-header {
  column-span: all;
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.page-label {
  display: block;
  font-size: 0.9rem;
  color: var(--fg);
  opacity: 0.6;
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/*==================================================
=            CONTENT & ARTICLE STYLES             =
==================================================*/

.main-content {
  column-count: 2;
  column-gap: 40px;
  padding: 2rem;
  text-align: justify;
}

article {
  border: 1px solid var(--fg);
  padding: 1rem;
  margin-bottom: 2rem;
  break-inside: avoid;
  background-color: rgba(0, 0, 0, 0.02);
}

/* Drop Cap Styling */
.main-content article p:first-of-type::first-letter {
  font-size: 3rem;
  float: left;
  line-height: 1;
  padding-right: 8px;
  font-weight: bold;
}

/* Section & Headings */
.main-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-header {
  font-size: 1.6rem;
  text-transform: uppercase;
}
