:root {
  --forest: #2f4638;
  --forest-deep: #213429;
  --moss: #66745e;
  --sage: #dfe6da;
  --sage-soft: #eef2eb;
  --paper: #f6f1e7;
  --paper-deep: #ece4d5;
  --cream: #fffdf8;
  --ink: #273029;
  --muted: #5c655f;
  --rust: #925337;
  --ochre: #b28b4b;
  --note: #f3e8c9;
  --border: #c9c1b3;
  --border-dark: #817a70;
  --success: #35634e;
  --danger: #9a3e3e;
  --focus: #b5522f;
  --max: 1120px;
  --prose: 760px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 49, 43, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a {
  color: #365c50;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
a:hover { text-decoration-thickness: .13em; }
button, input, textarea, select { font: inherit; }

a[href]:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

.site-header {
  color: #fffaf1;
  background: var(--forest-deep);
  border-bottom: 4px solid var(--ochre);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 48px;
  color: #fffaf1;
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: url("oer-prompt-favicon-white.png") center / contain no-repeat;
}
.brand img { display: none; }
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: .01em;
  line-height: 1.08;
}
.brand span span {
  display: block;
  margin-top: .18rem;
  font-size: .78rem;
  opacity: .88;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .58rem .72rem;
  color: #fffaf1;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}
nav a:hover,
nav a[aria-current] { background: rgba(255,255,255,.11); }

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.74), rgba(255,255,255,.74)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(47,70,56,.055) 31px 32px),
    var(--paper);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem;
}
.eyebrow,
.section-kicker {
  color: var(--rust);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}
h1, h2, h3 {
  color: var(--forest-deep);
  overflow-wrap: anywhere;
}
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 {
  max-width: 900px;
  margin: .55rem 0 0;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
}
h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.15;
}
h3 { line-height: 1.25; }
.hero p,
.hero-lede {
  max-width: 790px;
  margin: 1.1rem 0 0;
  color: #3f4842;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.45rem !important;
  padding: .5rem .75rem;
  border: 1px solid #b8ab91;
  border-radius: 999px;
  background: rgba(255,253,248,.8);
  color: var(--forest-deep) !important;
  font-size: .92rem !important;
  font-weight: 800;
}

.content,
main.fieldbook-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}
.section-intro {
  max-width: var(--prose);
  color: var(--muted);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.65rem;
}
.task-card {
  position: relative;
  min-height: 285px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 4px 14px rgba(42,49,43,.045);
}
.task-card::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  top: 5.6rem;
  border-top: 1px dashed #c7bcaa;
}
.task-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.3rem;
  display: grid;
  place-items: center;
}
.task-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.task-kicker {
  margin-top: .2rem;
  color: var(--rust);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.task-card h3 {
  margin: .45rem 0 .35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}
.task-card p {
  margin: 0 0 1rem;
  color: #4b554e;
  flex: 1;
}
.task-card a.task-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  min-height: 44px;
  color: var(--forest-deep);
  font-weight: 850;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: .14em;
}
.task-card a.task-link::after { content: "→"; }
.task-card:hover {
  border-color: #9a927f;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.trail-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 4rem 0 3.2rem;
  color: var(--moss);
}
.trail-divider::before,
.trail-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed #a8a08f;
}
.trail-divider img { width: 28px; height: 28px; object-fit: contain; }

.flow { margin-top: 0; }
.steps {
  counter-reset: trailstep;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
}
.steps li {
  position: relative;
  min-height: 150px;
  padding: 3.4rem 1rem 1rem 0;
  counter-increment: trailstep;
  border-top: 2px solid #9da693;
}
.steps li::before {
  content: counter(trailstep);
  position: absolute;
  top: -18px;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
}
.steps strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--forest-deep);
}

.field-note,
.source-panel,
.verify,
.guardrail {
  border: 1px solid #c9b887;
  border-left: 5px solid var(--ochre);
  border-radius: 10px;
  background: var(--note);
  color: #403d31;
}
.source-panel {
  margin-top: 3.6rem;
  padding: 1.55rem;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(230px,.7fr);
  gap: 1.5rem;
  align-items: center;
}
.source-panel h2 { margin-bottom: .5rem; }
.source-panel p { margin: .45rem 0; }
.source-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.primary,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border: 1px solid var(--forest-deep);
  border-radius: 8px;
  background: var(--forest-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.primary:hover,
.copy-button:hover { background: #17271f; }
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--cream);
  color: var(--forest-deep);
  text-decoration: none;
  font-weight: 800;
}

.support {
  margin-top: 3.8rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}
.support-card {
  padding: 0 1.25rem 0 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
}
.support-card:last-child { border-right: 0; }
.support-card h3 {
  margin: 0 0 .35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

/* Task-page components */
.task-nav { margin-bottom: 2.2rem; }
.task-nav > p { max-width: var(--prose); color: var(--muted); }
.task-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.task-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .58rem .78rem;
  border: 1px solid #a9a091;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest-deep);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
}
.task-links a:hover { background: var(--sage-soft); border-color: var(--forest); }
.details-panel {
  padding: 1.5rem;
  border: 1px solid #a7b19f;
  border-radius: var(--radius);
  background: var(--sage-soft);
}
.details-panel h2 { margin-bottom: .35rem; }
.details-panel > p { color: #485148; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--forest-deep); font-weight: 850; }
.optional { color: var(--muted); font-size: .88rem; font-weight: 500; }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: .72rem .75rem;
  border: 1.5px solid #777e75;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
.field textarea { min-height: 105px; resize: vertical; }
.field small,
.privacy-note { color: var(--muted); font-size: .9rem; }
.course-state-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .55rem .8rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px dashed #b8b09f;
}
.course-state-remember {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--forest-deep);
  font-weight: 750;
}
.course-state-remember input { width: 1.15rem; height: 1.15rem; }
.course-state-help {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .88rem;
}
.course-state-status { grid-column: 1 / -1; }
.task-section {
  scroll-margin-top: 1rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px dashed #b9b09f;
}
.task-section h2 { margin: .3rem 0 .45rem; }
.section-intro { margin: .2rem 0 1.25rem; }
.task-fields {
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}
.task-fields h3 { margin: 0 0 .2rem; }
.task-fields > p { margin: .2rem 0 .75rem; color: var(--muted); }
.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.prompt-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 4px 14px rgba(42,49,43,.045);
}
.prompt-card.quick,
.prompt-card.deep { border-top: 1px solid var(--border); }
.prompt-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .2rem .55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.prompt-card.deep .prompt-label { background: var(--rust); }
.prompt-card h3 {
  margin: .55rem 0 .35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}
.action-row { display: flex; gap: .65rem; flex-wrap: wrap; margin: 1rem 0; }
.copy-status { min-height: 1.4rem; display: block; color: var(--success); font-weight: 750; }
details { margin-top: .5rem; border-top: 1px dashed #beb5a6; padding-top: .65rem; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #365c50; font-weight: 800; }
.prompt-preview {
  max-height: 440px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f3efe6;
  color: #303630;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  line-height: 1.55;
}
.guardrail { margin-top: 1rem; padding: .8rem .9rem; font-size: .93rem; }
.guardrail strong { color: #5e4b21; }
.back-link { display: inline-block; margin-top: 1rem; font-weight: 800; }
.example {
  margin-top: 3.6rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.site-footer {
  border-top: 1px solid #9c9485;
  background: var(--forest-deep);
  color: #eae4d7;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-size: .9rem;
}
.footer-inner p { margin: .25rem 0; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #f3ddab;
}

@media (max-width: 900px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 2rem; }
  .steps li:not(:last-child)::after { display: none; }
  .source-panel { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .support-card { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; }
  .support-card:last-child { border-bottom: 0; }
  .prompt-grid, .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
@media (max-width: 650px) {
  nav { width: 100%; }
  nav ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-inner { padding: 3rem 1rem 2.6rem; }
  .content, main.fieldbook-main { padding: 2.6rem 1rem 4rem; }
  .task-grid, .steps { grid-template-columns: 1fr; }
  .task-card { min-height: auto; }
  .copy-button { width: 100%; }
  .action-row { display: block; }
  .course-state-controls { grid-template-columns: 1fr; }
  .course-state-help,
  .course-state-status { grid-column: 1; }
  .course-state-clear { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .task-card:hover { transform: none; }
}