/*
Theme Name: Poconos Field Notes
Author: Gavin Geist
Description: A readable, editable block theme for Poconos STR Field Notes. Native WordPress blocks, public research tools, and a field journal.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poconos-field-notes
Tags: blog, full-site-editing, block-patterns, wide-blocks, custom-colors, editor-style
*/

/* WordPress generates the core palette, typography, and layout from theme.json. */
:root {
  --fn-ink: #162e2b;
  --fn-forest: #164f40;
  --fn-muted: #546960;
  --fn-line: #cfdad6;
  --fn-light: #eff5f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #b2631d;
  outline-offset: 4px;
}
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-template-part { margin-block-start: 0; }
.wp-block-heading em { color: var(--fn-forest); font-weight: 400; }
.wp-block-post-content { overflow-wrap: break-word; }
.wp-block-post-content > h2 { margin-top: 2.5rem; }
.wp-block-post-content > h3 { margin-top: 1.875rem; }
.wp-block-post-content li { padding-block: 0.18rem; }
.wp-block-post-content > :first-child { margin-block-start: 0; }
.wp-block-post-content > :last-child { margin-block-end: 0; }

/* Masthead and the native, keyboard accessible WordPress mobile navigation. */
.fn-site-header { border-bottom: 1px solid var(--fn-line); }
.fn-masthead { padding-block: 26px 24px; gap: 24px; }
.fn-brand { gap: 15px; }
.fn-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 54px;
  margin: 0;
  border-radius: 2px;
  background: var(--fn-forest);
  color: #fff;
  font: 1rem/1 Georgia, 'Times New Roman', serif;
}
.fn-site-title { max-width: 265px; margin: 0; text-wrap: balance; }
.fn-mast-note { margin: 0; font-size: 0.85rem; color: var(--fn-muted); }
.fn-main-navigation { margin-block-start: 0; padding-bottom: 16px; }
.fn-main-navigation .wp-block-navigation-item__content:hover { color: #995219; }
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 28px;
  background: #fff;
  color: var(--fn-ink);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 24px;
  align-items: flex-start;
}

/* Editable page content, with a separate full-width home template. */
.fn-page-main { padding-top: 52px; padding-bottom: 64px; }
.fn-page-main > .wp-block-post-title { margin-top: 0; margin-bottom: 28px; }
.fn-page-main > .wp-block-post-content { margin-top: 0; }
.fn-article-main > .wp-block-post-content { margin-top: 30px; }
.fn-home-main { padding-block: 0; }
.fn-home-main > .wp-block-post-content { margin-block: 0; }
.fn-home-main .wp-block-post-content > .fn-hero,
.fn-home-main .wp-block-post-content > .fn-paths,
.fn-home-main .wp-block-post-content > .fn-feature { max-width: 1120px; }
.fn-home-main .wp-block-post-content > .fn-paths { margin-block: 0; }
.fn-byline { font-size: 0.84rem; color: var(--fn-muted); }
.fn-article-main > .wp-block-post-date { margin-top: 0.4rem; }
.fn-article-bottom { border-top: 1px solid var(--fn-line); margin-top: 36px; padding-top: 22px; }
.fn-eyebrow {
  margin-bottom: 18px;
  color: var(--fn-forest);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.fn-lead, .fn-lede { font-size: 1.12rem; color: var(--fn-muted); max-width: 630px; }
.fn-muted { color: var(--fn-muted); }
.fn-small { font-size: 0.86rem; }
.fn-hero { padding-top: 65px; padding-bottom: 62px; gap: 56px; align-items: center; }
.fn-hero.wp-block-columns { margin-bottom: 0; }
.fn-hero > .wp-block-columns { align-items: center; gap: 56px; margin-block: 0; }
.fn-hero > .wp-block-columns > .wp-block-column:first-child { flex-grow: 1.2; }
.fn-hero > .wp-block-columns > .wp-block-column > :first-child { margin-top: 0; }
.fn-hero h1 { margin-top: 0; margin-bottom: 24px; }
.fn-hero .wp-block-buttons { margin-top: 26px; }
.fn-hero .fn-byline { margin-top: 22px; }
.fn-landscape, .fn-hero .wp-block-image { margin: 0; }
.fn-landscape img, .fn-hero .wp-block-image img { display: block; width: 100%; height: 330px; object-fit: cover; }
.fn-landscape figcaption, .fn-hero .wp-block-image figcaption { color: var(--fn-muted); font-size: 0.75rem; line-height: 1.6; text-align: left; }
.fn-path-section { background: var(--fn-forest); color: #fff; padding-top: 44px; padding-bottom: 48px; }
.fn-path-section .fn-eyebrow { color: #c6d7cf; }
.fn-path-section a, .fn-path-section h2, .fn-path-section h3 { color: #fff; }
.fn-path-section a:hover { color: #fff; text-decoration-thickness: 2px; }
/* The imported paths group contains its headings and then a Columns block. */
.fn-paths {
  display: block;
  padding-block: 44px 48px;
  background: var(--fn-forest);
  color: #fff;
  box-shadow: 0 0 0 100vmax var(--fn-forest);
  clip-path: inset(0 -100vmax);
}
.fn-paths > :first-child { margin-top: 0; }
.fn-paths > .wp-block-columns { gap: 30px; margin-top: 30px; margin-bottom: 0; }
.fn-paths .fn-eyebrow { color: #c6d7cf; }
.fn-paths a, .fn-paths h2, .fn-paths h3 { color: #fff; }
.fn-paths a:hover { color: #fff; text-decoration-thickness: 2px; }
.fn-paths .fn-path p { color: #e0e9e4; }
.fn-paths .fn-path > .fn-eyebrow { font: 1.5rem/1.2 Georgia, 'Times New Roman', serif; letter-spacing: 0; color: #b3c9bd; }
.fn-path { border-top: 1px solid #618477; padding-top: 20px; }
.fn-path h3 { margin-top: 12px; margin-bottom: 12px; }
.fn-path h3 a { text-decoration: none; }
.fn-path p { font-size: 0.95rem; }
.fn-path-section .fn-path p { color: #e0e9e4; }
.fn-number { font-family: Georgia, 'Times New Roman', serif; color: var(--fn-forest); font-size: 1.5rem; }
.fn-path-section .fn-number { color: #b3c9bd; }
.fn-feature { padding-block: 62px 65px; }
.fn-feature > p:first-child { margin-top: 0; margin-bottom: 24px; color: var(--fn-forest); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.fn-feature > .wp-block-group { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.fn-feature > .wp-block-group > * { margin-block-start: 0; }
.fn-feature .text-link { font-weight: 700; }
.fn-callout { background: var(--fn-light); border-left: 3px solid var(--fn-forest); padding: 24px; margin-block: 24px; }
.fn-callout > :first-child { margin-top: 0; }
.fn-callout > :last-child { margin-bottom: 0; }
.fn-resource-list { margin-top: 30px; }
.fn-resource-row, .fn-resource { border-top: 1px solid var(--fn-line); padding-block: 28px; margin-block: 0; }
.fn-resource-row h2, .fn-resource-row h3, .fn-resource h2, .fn-resource h3 { margin-top: 0; margin-bottom: 12px; font-size: 1.75rem; }
.fn-resource-row h2 a, .fn-resource-row h3 a, .fn-resource h2 a, .fn-resource h3 a { text-decoration: none; }
.fn-resource-row p, .fn-resource p { color: var(--fn-muted); }
.fn-resource-row > :last-child, .fn-resource > :last-child { margin-bottom: 0; }
.fn-query-entry { border-top: 1px solid var(--fn-line); padding-block: 28px; }
.fn-query-entry .wp-block-post-title { margin-top: 0; }
.fn-query-entry .wp-block-post-title a { text-decoration: none; }
.fn-query .wp-block-post-template { list-style: none; padding: 0; }
.fn-query .wp-block-post-template > li { margin-top: 0; }
.fn-query .wp-block-query-pagination { padding-top: 20px; border-top: 1px solid var(--fn-line); }

/* Public tools remain readable without a page-builder plugin. */
.wp-block-table { overflow-x: auto; }
.wp-block-table table, .fn-worksheet table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.wp-block-table th, .wp-block-table td, .fn-worksheet th, .fn-worksheet td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--fn-line);
  padding: 12px;
}
.wp-block-table th, .fn-worksheet th { background: var(--fn-light); font-weight: 700; }
.fn-worksheet input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.fn-worksheet select, .fn-worksheet textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #97aaa1;
  border-radius: 3px;
  background: #fff;
  color: var(--fn-ink);
  font: inherit;
}
.fn-worksheet textarea { min-height: 140px; resize: vertical; }
.fn-worksheet label { font-weight: 600; }
.fn-worksheet input[type="checkbox"], .fn-worksheet input[type="radio"] { accent-color: var(--fn-forest); }
.fn-worksheet button {
  border: 0;
  border-radius: 3px;
  background: var(--fn-forest);
  color: #fff;
  padding: 13px 21px;
  font: 600 1rem/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.fn-worksheet button:hover { background: #0d362b; }
.fn-worksheet button:disabled { opacity: 0.65; cursor: wait; }
.fn-print-only { display: none; }
.fn-review-note { color: var(--fn-muted); font-size: 0.86rem; border-left: 2px solid var(--fn-line); padding-left: 14px; }
.fn-source-list { font-size: 0.9rem; overflow-wrap: anywhere; }
.fn-source-list li { margin-bottom: 10px; }

.fn-site-footer { border-top: 1px solid var(--fn-line); padding-top: 40px; padding-bottom: 24px; }
.fn-footer-grid { gap: 40px; margin-bottom: 0; }
.fn-footer-navigation { gap: 10px; font-size: 0.9rem; font-weight: 400; }
.fn-footer-disclosure { max-width: 1120px !important; border-top: 1px solid var(--fn-line); padding-top: 20px; margin-top: 22px; font-size: 0.76rem; color: var(--fn-muted); }

@media (max-width: 800px) {
  .fn-masthead { padding-top: 22px; padding-bottom: 20px; }
  .fn-mast-note { display: none; }
  .fn-main-navigation { font-size: 0.82rem; }
  .fn-main-navigation .wp-block-navigation__container { gap: 12px 22px; }
  .fn-page-main { padding-top: 36px; padding-bottom: 40px; }
  .fn-hero { padding-top: 36px; padding-bottom: 40px; gap: 32px; }
  .fn-hero.wp-block-columns, .fn-hero > .wp-block-columns { flex-direction: column; align-items: stretch; gap: 32px; }
  .fn-landscape img, .fn-hero .wp-block-image img { height: 240px; }
  .fn-paths > .wp-block-columns { flex-direction: column; gap: 25px; }
  .fn-feature { padding-block: 40px; }
  .fn-feature > .wp-block-group { grid-template-columns: 1fr; gap: 10px; }
  .fn-footer-grid { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  header.wp-block-template-part, footer.wp-block-template-part, .fn-site-header,
  .fn-site-footer, .fn-no-print, .no-print, .fn-worksheet button, .skip-link { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .wp-site-blocks, .fn-page-main { padding: 0; }
  .wp-block-post-content, .fn-page-main > * { max-width: none !important; }
  h1, .wp-block-post-title { font-size: 26pt !important; }
  h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  tr { break-inside: avoid; }
  .wp-block-table { overflow: visible; }
  .wp-block-table table, .fn-worksheet table { table-layout: fixed; font-size: 9pt; }
  .wp-block-table td, .wp-block-table th, .fn-worksheet td, .fn-worksheet th { min-width: 0; padding: 7px; overflow-wrap: anywhere; }
  .fn-callout { background: none; border: 1px solid #aaa; }
  .fn-landscape img, .fn-hero .wp-block-image img { height: 200px; }
  .fn-paths { box-shadow: none; clip-path: none; background: #fff; color: #000; }
  .fn-paths h2, .fn-paths h3, .fn-paths p, .fn-paths a { color: #000 !important; }
  .fn-print-only { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
  a { color: #000; text-decoration: none; }
}
