/* ========================================= */
/* GOOGLE FONTS                              */
/* ========================================= */
@import url('https://fonts.googleapis.com/css?family=Alegreya:400,500,600,700,800,900|Caveat:400,500,600,700&display=swap');


/* ========================================= */
/* NORMALIZE                                 */
/* ========================================= */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: .67em 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre, code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }
abbr[title] { border-bottom: none; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }
img { border-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, select { text-transform: none; }
[type=button], [type=reset], [type=submit], button { -webkit-appearance: button; }
fieldset { padding: .35em .75em .625em; }
legend { box-sizing: border-box; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[hidden] { display: none; }


/* ========================================= */
/* GLOBAL RESET & VARIABLES                  */
/* ========================================= */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Fonts */
  --font-design-text: Alegreya;
  --font-design-custom1: Caveat;

  /* Core Colors */
  --primary: #bf8152;
  --secondary: #4a69ac;
  --muted: #cbd5c1;
  --light: #f8f9fa;
  --dark: #212529;
  --white: #ffffff;

  /* Realm Colors */
  --forest-core: #0d1f0d;
  --card-bg: rgba(255,255,255,0.03);

  /* Spacing Scale */
  --gap-lg: 48px;
  --gap-md: 28px;
  --gap-sm: 14px;

  /* Layout */
  --max-width: 1100px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

body, html { min-height: 100vh; }

body {
  font-family: 'Alegreya', serif;
  background-color: var(--forest-core);
  color: var(--light);
}

/* ========================================= */
/* NAVIGATION — SIMPLE, UNIVERSAL            */
/* ========================================= */

/* Explicit logo dimensions to prevent Firefox layout jumps */
.tc-nav-logo img {
  width: 160px;   /* adjust if your logo is a different width */
  height: auto;
  object-fit: contain;
}

.tc-nav {
  width: 100%;
  background: var(--forest-core);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tc-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap-sm) var(--gap-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO — FIXED SIZE ON ALL DESKTOP BROWSERS */
.tc-nav-logo img {
  height: 40px !important;
  width: auto !important;
  display: block;
}

/* Mobile toggle */
.tc-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.tc-nav-toggle-bar {
  width: 24px;
  height: 3px;
  background: var(--light);
  border-radius: var(--radius-sm);
}

/* Hide toggle on desktop */
@media (min-width: 768px) {
  .tc-nav-toggle { display: none; }
}

/* Default mobile state */
.tc-nav-menu {
  display: none;
}

/* When JS toggles it */
.tc-nav-menu.open {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-sm) 0;
}

/* Desktop */
@media (min-width: 768px) {
  .tc-nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--gap-md);
    padding: 0;
  }

  .tc-nav-menu.open {
    display: flex;
  }
}

/* ========================================= */
/* LAYOUT & TYPOGRAPHY                       */
/* ========================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: var(--light);
  line-height: 1.12;
  margin: 0 0 0.5rem 0;
}

p {
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.lead {
  color: var(--muted);
  margin: 0;
}

/* ========================================= */
/* GATEWAY / PAGE STRUCTURE                  */
/* ========================================= */

.site-header {
  min-height: 80px;
  padding: calc(var(--gap-sm) * 1.5) 0;
  display: flex;
  align-items: center;
  justify-content: center; /* centers logo before nav loads */
  position: relative;
}

/* Once navigation loads, it takes over layout */
.site-header .tc-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-main { 
  padding-bottom: var(--gap-lg); 
}

.welcome {
  padding: var(--gap-lg) 0;
  text-align: center;
}

.welcome h1 {
  margin: 0 0 12px 0;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
}

/* ========================================= */
/* FEATURE CARDS                             */
/* ========================================= */

.features {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  padding: var(--gap-md) 0;
}

.feature {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(255,215,0,0.12);
}

.feature h2 { margin: 16px 0 6px 0; }

.feature .feature-subtitle {
  color: var(--muted);
  margin: 0 0 12px 0;
}

.feature-image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto 16px auto;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
}


/* ========================================= */
/* BUTTONS & LINKS                           */
/* ========================================= */

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.link {
  color: var(--muted);
  text-decoration: underline;
  margin-top: 10px;
}


/* ========================================= */
/* FOOTER / BIOGRAPHY                        */
/* ========================================= */

.site-footer {
  padding-top: var(--gap-lg);
  border-top: 1px solid rgba(255,255,255,0.03);
}

.biography {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--gap-md) 20px;
  text-align: center;
}

.bizcard-placeholder img {
  width: 100%;
  max-width: 320px;
  margin: 18px auto;
  border-radius: var(--radius-md);
  background: var(--card-bg);
}

input[type="email"] {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: var(--light);
  width: min(420px, 90%);
}

.gateway-door {
  text-align: center;
  margin: 40px 0;
}

.door-image {
  width: 160px;
  transition: transform 0.25s ease;
}

.door-image:hover { transform: scale(1.05); }

/* ========================================= */
/* STORIES — RESPONSIVE IMAGES               */
/* ========================================= */
.story-hero,
.story-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto var(--gap-md) auto;
}

/* ========================================= */
/* RESPONSIVE TWEAKS                         */
/* ========================================= */

@media (min-width: 760px) {
  .features { gap: 36px; }
  .feature { padding: 28px; }
}
