/* Shared styles for the site's inner pages (jobs, etc.).
   Palette and fonts match the landing page in /index.html. */

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

:root {
  --title-font: "Rakkas", "Georgia", serif;
  --body-font: "Vollkorn", Georgia, serif;
  --ink: #f2ead9;
  --ink-muted: rgba(242, 234, 217, 0.7);
  --ink-faint: rgba(242, 234, 217, 0.35);
  --leaf: #a8c46a;
  --leaf-deep: #4a5a2e;
  --amber: #e0b184;
  --panel: rgba(16, 22, 13, 0.45);
  --rule: rgba(168, 196, 106, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, #3d4a2a 0%, #2a3520 30%, #1a2315 60%, #10160d 100%) fixed;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--leaf);
  text-decoration-color: var(--rule);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #c4dd8a;
  text-decoration-color: currentColor;
}

/* ---------- Site header ---------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

.site-header .brand {
  font-family: var(--title-font);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--leaf);
  text-decoration: none;
  text-shadow: 0 2px 0 var(--leaf-deep), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.site-header nav {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--amber);
}

/* ---------- Page layout ---------- */

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1 {
  font-family: var(--title-font);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--leaf);
  text-shadow: 0 2px 0 var(--leaf-deep), 0 6px 16px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.5rem;
}

.job-location {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

h2 {
  font-family: var(--title-font);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--amber);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}

p, ul, ol {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--leaf);
}

strong {
  font-weight: 600;
  color: #fff8e8;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}


/* ---------- Job cards (jobs index) ---------- */

.job-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.job-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.job-card:hover {
  border-color: var(--leaf);
  transform: translateY(-2px);
}

.job-card h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: none;
  font-size: 1.6rem;
  color: var(--leaf);
}


.job-card p {
  margin: 0;
  color: var(--ink-muted);
}

.job-card .cta {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--amber);
  font-weight: 500;
}

/* ---------- Image gallery ---------- */

.gallery {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.gallery li {
  margin: 0;
}

.gallery figure {
  margin: 0;
}

.gallery a {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #000;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery figcaption {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ---------- Callouts & buttons ---------- */

.callout {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--amber);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--panel);
  margin: 1.5rem 0;
}

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

.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--leaf);
  color: #1a2315;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 0 var(--leaf-deep), 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover {
  color: #1a2315;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--leaf-deep), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.apply {
  text-align: center;
  margin: 2.5rem 0 1rem;
}

.apply p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .job-card, .button { transition: none; }
}
