@font-face {
  font-family: "CCGibbonsGazette";
  src: url("/fonts/CCGibbonsGazette.woff2") format("woff2"),
       url("/fonts/CCGibbonsGazette.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff9f0;
  --surface: #ffffff;
  --ink: #2a1810;
  --ink-muted: #6b5a4f;
  --line: #ecdfd0;
  --orange: #e85d2f;
  --orange-hover: #d14a1e;
  --orange-soft: #fff1e8;
  --max-w: 760px;
  --shadow-sm: 0 1px 2px rgba(42, 24, 16, 0.04);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }

/* Warm paper grain across the whole viewport */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/></svg>");
  background-size: 220px 220px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { border-bottom-color: var(--orange); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  border: none;
  font-family: "CCGibbonsGazette", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand:hover { border: none; color: var(--orange); }
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-name .accent { color: var(--orange); }

.nav a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-left: 1.25rem;
}
.nav a:hover { color: var(--orange); }
.nav a.active { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 2.25rem 0 1.5rem;
  text-align: left;
  position: relative;
  isolation: isolate;
}
.hero.hero-center { text-align: center; }

/* Soft warm halo behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -1.5rem -2rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 70% at 50% 45%,
    rgba(232, 93, 47, 0.18),
    rgba(232, 93, 47, 0.06) 45%,
    transparent 72%
  );
}

.hero-mark {
  margin: 0 auto 1rem;
  animation: rise-in 700ms ease-out both;
}
.hero-logo-icon {
  display: block;
  margin: 0 auto 0.25rem;
  width: 100%;
  max-width: clamp(140px, 18vw, 200px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(42, 24, 16, 0.08));
}
.hero-wordmark {
  font-family: "CCGibbonsGazette", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-wordmark .accent { color: var(--orange); }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap, .hero-tagline { animation: none; }
}
.hero-title {
  font-family: "CCGibbonsGazette", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}
.hero-title .accent { color: var(--orange); }
.hero-tagline {
  font-family: "CCGibbonsGazette", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 24em;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: rise-in 700ms ease-out 180ms both;
}
.hero.hero-center .hero-tagline {
  margin: 0 auto;
}
.hero-subline {
  font-size: 0.98rem;
  color: var(--ink-muted);
  max-width: 30em;
  margin: 0.7rem 0 0;
  animation: rise-in 700ms ease-out 260ms both;
}
.hero.hero-center .hero-subline {
  margin: 0.7rem auto 0;
}

/* ---------- Sections ---------- */
section.block {
  padding: 1.5rem 0;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin: 0 0 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.section-heading {
  font-family: "CCGibbonsGazette", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  letter-spacing: 0.005em;
}
.section-body {
  color: var(--ink-muted);
  max-width: 36em;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}
.section-body p { margin: 0 0 0.75rem; }
.section-body p:last-child { margin-bottom: 0; }

/* Simple orange dash divider between sections */
.dash-divider {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  border: 0;
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* About block on the home page */
.about-block {
  text-align: center;
  padding: 0.5rem 1.5rem 1rem;
}
.about-copy {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 30em;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 2rem;
  padding: 1.75rem 0 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  background: linear-gradient(180deg, rgba(232, 93, 47, 0.035), transparent 55%);
  font-size: 0.9rem;
}
.site-footer a { color: var(--ink-muted); border-bottom: none; }
.site-footer a:hover { color: var(--orange); border-bottom: none; }

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.15rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
}
.footer-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(42, 24, 16, 0.06));
}
.footer-wordmark {
  font-family: "CCGibbonsGazette", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1;
}
.footer-wordmark .accent { color: var(--orange); }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
  text-align: right;
}
.footer-nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9rem;
}
.footer-email {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.6rem 2rem;
}
.footer-address {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.7;
  line-height: 1.55;
  max-width: 480px;
  flex: 1 1 280px;
}
.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.9;
  white-space: nowrap;
}

/* ---------- Jobs ---------- */
.jobs-intro {
  padding: 4.5rem 0 2rem;
}
.jobs-intro p {
  color: var(--ink-muted);
  font-size: 1.1rem;
  max-width: 36em;
  margin: 0;
}
.jobs-list {
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.job-card h2 {
  font-family: "CCGibbonsGazette", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}
.job-body {
  color: var(--ink);
}
.job-body p { margin: 0.5rem 0; }
.job-body ul, .job-body ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.job-body h2, .job-body h3, .job-body h4 {
  font-family: "CCGibbonsGazette", sans-serif;
  margin: 1rem 0 0.35rem;
}
.job-body a { color: var(--orange); border-bottom: 1px solid var(--orange); }
.job-body blockquote {
  margin: 0.75rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  color: var(--ink-muted);
}
.job-body code {
  background: var(--orange-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

.jobs-empty {
  padding: 1rem 0 3rem;
  color: var(--ink-muted);
}

.jobs-loading {
  padding: 1.5rem 0;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .footer-main {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .footer-info {
    align-items: flex-start;
    text-align: left;
  }
  .footer-nav { gap: 1.15rem; }
  .footer-copy { white-space: normal; }
  .job-card { padding: 1.35rem; }
}
