/* RemoteRise — handcrafted stylesheet, sunrise palette. */
:root {
  --bg: #fff8f1;
  --surface: #ffffff;
  --ink: #1f1a17;
  --ink-soft: #5b524c;
  --line: #f1e3d3;
  --brand: #e8623c;          /* coral */
  --brand-deep: #b94422;
  --gold: #f4b740;
  --teal: #2f6b6b;
  --link: #b94422;
  --shadow: 0 1px 2px rgba(20,12,5,0.04), 0 8px 24px rgba(184,80,30,0.06);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Iowan Old Style", "Charter", "Georgia", "Cambria", serif; font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: 2.4rem; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
h2 { font-size: 1.7rem; margin: 2.4rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
p { margin: 0 0 1rem; color: var(--ink); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; gap: 24px; flex-wrap: wrap; }
.brand { font-family: "Iowan Old Style", "Charter", Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--brand); font-size: 1.4rem; }
.primary-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.primary-nav a { color: var(--ink); font-weight: 500; }
.primary-nav a:hover { color: var(--brand-deep); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, #fff1e0 0%, #ffe5d2 50%, #ffd9c5 100%); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.8rem; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { background: var(--brand-deep); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--brand-deep); border: 1px solid var(--brand); }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-img img { width: 100%; height: auto; display: block; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,12,5,0.05), 0 14px 32px rgba(184,80,30,0.10); }
.card .cat { font-size: 0.78rem; color: var(--brand-deep); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card .meta { color: var(--ink-soft); font-size: 0.88rem; }
.card .summary { color: var(--ink-soft); font-size: 0.92rem; }

/* Section */
.section { padding: 56px 0; }
.section.alt { background: #fff3e7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .more { color: var(--brand-deep); font-weight: 600; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: block; color: var(--ink); }
.cat-tile:hover { border-color: var(--brand); text-decoration: none; }
.cat-tile h3 { margin: 0 0 6px; color: var(--ink); }
.cat-tile .count { color: var(--brand-deep); font-weight: 600; font-size: 0.88rem; }
.cat-tile p { color: var(--ink-soft); margin: 6px 0 0; }

/* Article / job detail */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
@media (max-width: 900px) { .layout-2col { grid-template-columns: 1fr; } }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.article h1 { font-size: 2rem; }
.article .topline { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.article .badge { display: inline-block; background: #fdebd9; color: var(--brand-deep); border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600; margin-right: 6px; }
.article .description { font-size: 1rem; }
.article .description p { margin: 0 0 0.9rem; }
.article .description ul, .article .description ol { padding-left: 1.4rem; margin: 0 0 1rem; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.box h4 { margin: 0 0 10px; font-family: inherit; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.box ul { list-style: none; padding: 0; margin: 0; }
.box li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.box li:last-child { border-bottom: 0; }
.box a { color: var(--ink); }

/* Apply form */
.apply-form { background: #fff7ee; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 28px; }
.apply-form h3 { margin: 0 0 12px; }
.apply-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.apply-form input, .apply-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; margin-bottom: 12px;
}
.apply-form textarea { min-height: 120px; resize: vertical; }
.apply-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .apply-form .row { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--surface); font-size: 0.9rem;
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .gap { border: none; background: transparent; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin: 24px 0 8px; }
.breadcrumb a { color: var(--ink-soft); }

/* Footer */
.site-footer { background: #2a1d14; color: #f7e7d4; margin-top: 60px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: inherit; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #f7e7d4; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { color: #b8a48d; font-size: 0.85rem; padding-top: 28px; margin-top: 28px; border-top: 1px solid #3c2a1d; }

/* Ad slots — visually neutral */
.ad-slot { background: #fff3e7; border: 1px dashed #f1d3b2; color: #8a6f55; text-align: center; padding: 14px; border-radius: 10px; font-size: 0.8rem; margin: 24px 0; }

/* Prose pages */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); max-width: 760px; }
.prose h1 { margin-top: 0; }
.prose ul { padding-left: 1.4rem; }
.prose dt { font-weight: 700; margin-top: 18px; }
.prose dd { margin: 4px 0 12px; color: var(--ink-soft); }
