@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
  img, svg { display: block; max-width: 100%; height: auto; }
  input, select, textarea, button { font: inherit; color: inherit; }
}

@layer base {
  :root {
    --ftp-ink: #1C1F0F;
    --ftp-paper: #F9F9F3;
    --ftp-moss: #606534;
    --ftp-moss-deep: #4a4e27;
    --ftp-lichen: #E9EAD9;
    --ftp-clay: #BF5652;
    --ftp-white: #FFFFFF;
    --ftp-rule: #cfd0b8;
    --ftp-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --ftp-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  body { background: var(--ftp-paper); color: var(--ftp-ink); font-family: var(--ftp-sans); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
  h1, h2, h3 { font-family: var(--ftp-serif); font-weight: 400; line-height: 1.15; }
  h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
  h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  h3 { font-size: 1.25rem; margin-bottom: .35rem; }
  p + p { margin-top: .85rem; }
  a { color: var(--ftp-moss-deep); text-underline-offset: 3px; }
  a:hover { color: var(--ftp-clay); }
  strong { font-weight: 600; }
  :focus-visible { outline: 3px solid var(--ftp-clay); outline-offset: 2px; }
}

@layer layout {
  .ftp-grove { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
  .ftp-ridge-wrap { position: sticky; top: .75rem; z-index: 20; padding: .75rem .75rem 0; }
  .ftp-field { padding: 3.25rem 0; }
  .ftp-field-tint { background: var(--ftp-lichen); }
  .ftp-knoll { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: stretch; padding: 2.5rem 0 3rem; }
  .ftp-knoll-text { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .ftp-knoll-photo { flex: 1 1 260px; min-width: 0; max-width: 400px; }
  .ftp-creek { display: flex; flex-wrap: wrap; margin: 1.5rem -1rem 0; }
  .ftp-creek > .ftp-pebble { flex: 1 1 250px; min-width: 0; padding: .25rem 1rem 1.25rem; border-left: 1px solid var(--ftp-rule); }
  .ftp-creek-tight > .ftp-pebble { flex-basis: 230px; }
  .ftp-glade { display: flex; flex-wrap: wrap; gap: 2.5rem; }
  .ftp-glade-main { flex: 3 1 520px; min-width: 0; }
  .ftp-glade-side { flex: 1 1 260px; min-width: 0; }
  .ftp-bluff { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
  .ftp-bluff > * { flex: 1 1 340px; min-width: 0; }
}

@layer components {
  .ftp-skip { position: absolute; left: -999px; top: 0; }
  .ftp-skip:focus { left: 1rem; top: 1rem; background: var(--ftp-white); padding: .5rem 1rem; z-index: 50; }
  .ftp-ridge { max-width: 1200px; margin: 0 auto; background: var(--ftp-white); border: 1px solid var(--ftp-rule); border-radius: 18px; box-shadow: 0 8px 24px rgba(28,31,15,.08); padding: .65rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
  .ftp-mark { font-family: var(--ftp-serif); font-size: 1.3rem; color: var(--ftp-ink); text-decoration: none; margin-right: auto; line-height: 1.1; }
  .ftp-trails { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }
  .ftp-trails a { text-decoration: none; color: var(--ftp-ink); padding: .2rem 0; }
  .ftp-trails a:hover, .ftp-trails a[aria-current] { color: var(--ftp-moss-deep); box-shadow: inset 0 -2px 0 var(--ftp-clay); }
  .ftp-ridge-call { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
  .ftp-ridge-call a { font-weight: 600; text-decoration: none; white-space: nowrap; }
  .ftp-ridge-call small { font-size: .78rem; color: #4b4e3a; }
  .ftp-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--ftp-moss); background: var(--ftp-moss); color: var(--ftp-white); line-height: 1.2; }
  .ftp-btn:hover { background: var(--ftp-moss-deep); border-color: var(--ftp-moss-deep); color: var(--ftp-white); }
  .ftp-btn-ghost { background: transparent; color: var(--ftp-moss-deep); }
  .ftp-btn-ghost:hover { background: var(--ftp-moss); color: var(--ftp-white); }
  .ftp-btn-clay { background: var(--ftp-clay); border-color: var(--ftp-clay); }
  .ftp-btn-clay:hover { background: #a3423f; border-color: #a3423f; }
  .ftp-btn .ftp-ico { width: 1.2rem; height: 1.2rem; }
  .ftp-btn-sm { padding: .5rem 1rem; font-size: .92rem; }
  .ftp-ico { width: 1.5rem; height: 1.5rem; flex: none; color: var(--ftp-clay); }
  .ftp-btn .ftp-ico { color: currentColor; }
  .ftp-knoll h1 { margin-bottom: 1rem; }
  .ftp-knoll-line { font-size: 1.2rem; max-width: 40rem; }
  .ftp-knoll-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
  .ftp-hours { margin-top: .9rem; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
  .ftp-micro { font-size: .93rem; color: #3d402c; margin-top: .4rem; }
  .ftp-reassure { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--ftp-rule); font-style: italic; max-width: 36rem; }
  .ftp-frame { border: 1px solid var(--ftp-moss); padding: 6px; background: var(--ftp-white); }
  .ftp-knoll-photo .ftp-frame { height: 100%; }
  .ftp-knoll-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
  .ftp-head { display: flex; align-items: baseline; gap: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ftp-ink); margin-bottom: 1rem; }
  .ftp-num { font-family: var(--ftp-sans); font-size: .95rem; font-weight: 600; color: var(--ftp-clay); letter-spacing: .08em; flex: none; }
  .ftp-lede { max-width: 52rem; font-size: 1.08rem; }
  .ftp-stone { margin-top: 1.25rem; border-top: 1px solid var(--ftp-rule); }
  .ftp-stone-row { display: flex; flex-wrap: wrap; gap: .25rem 2rem; padding: .9rem 0; border-bottom: 1px solid var(--ftp-rule); }
  .ftp-stone-row dt { flex: 0 1 15rem; font-weight: 600; min-width: 0; }
  .ftp-stone-row dd { flex: 1 1 22rem; min-width: 0; }
  .ftp-stone-wide .ftp-stone-row dt { flex-basis: 8rem; font-family: var(--ftp-serif); font-weight: 400; font-size: 1.35rem; }
  .ftp-trail { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0; margin-left: -1rem; margin-right: -1rem; }
  .ftp-trail li { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: .5rem; padding: .25rem 1rem 1rem; border-left: 1px solid var(--ftp-rule); }
  .ftp-steps { padding-left: 1.4rem; margin-top: 1rem; }
  .ftp-steps li { padding: .35rem 0 .35rem .25rem; }
  .ftp-steps li::marker { color: var(--ftp-clay); font-weight: 600; }
  .ftp-inlet { background: var(--ftp-moss); color: var(--ftp-white); }
  .ftp-inlet .ftp-head { border-bottom-color: var(--ftp-white); }
  .ftp-inlet .ftp-num { color: #f3d5d3; }
  .ftp-inlet-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
  .ftp-pick { flex: 1 1 250px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; color: var(--ftp-white); text-decoration: none; font-weight: 500; }
  .ftp-pick:hover { background: var(--ftp-white); color: var(--ftp-ink); }
  .ftp-pick .ftp-ico { color: currentColor; width: 1.1rem; height: 1.1rem; }
  .ftp-cove { background: var(--ftp-ink); color: var(--ftp-paper); }
  .ftp-cove .ftp-head { border-bottom-color: var(--ftp-paper); }
  .ftp-cove a:not(.ftp-btn) { color: var(--ftp-lichen); }
  .ftp-cove .ftp-micro { color: #d9dac6; }
  .ftp-cove-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; margin: 1.25rem -1rem 1.5rem; counter-reset: cove; }
  .ftp-cove-steps li { flex: 1 1 210px; min-width: 0; padding: .25rem 1rem 1rem; border-left: 1px solid #4d5137; counter-increment: cove; }
  .ftp-cove-steps li::before { content: counter(cove, decimal-leading-zero); display: block; font-weight: 600; color: #e79a97; letter-spacing: .08em; }
  .ftp-cove-steps strong { display: block; font-family: var(--ftp-serif); font-weight: 400; font-size: 1.2rem; }
  .ftp-cove .ftp-btn-ghost { color: var(--ftp-paper); border-color: var(--ftp-paper); }
  .ftp-meadow { text-align: center; padding: 2.75rem 0 2rem; border-top: 1px solid var(--ftp-rule); font-size: .9rem; }
  .ftp-meadow-name { font-family: var(--ftp-serif); font-size: 1.5rem; }
  .ftp-meadow-phone { display: inline-block; margin-top: .35rem; font-size: 1.15rem; font-weight: 600; }
  .ftp-meadow-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem; margin: 1rem 0; }
  .ftp-meadow p { max-width: 44rem; margin-left: auto; margin-right: auto; }
  .ftp-meadow p + p { margin-top: .5rem; }
  .ftp-marsh { display: none; }
  .ftp-page-top { padding-top: 2.25rem; padding-bottom: 1.25rem; }
  .ftp-page-top p { max-width: 46rem; margin-top: .9rem; font-size: 1.1rem; }
  .ftp-figure { margin-top: 1.5rem; }
  .ftp-figure figcaption { font-size: .92rem; margin-top: .5rem; color: #3d402c; }
  .ftp-alert { border-left: 4px solid var(--ftp-clay); background: var(--ftp-white); padding: 1rem 1.25rem; }
  .ftp-brook { margin-top: 1rem; border-top: 1px solid var(--ftp-rule); }
  .ftp-brook details { border-bottom: 1px solid var(--ftp-rule); padding: .85rem 0; }
  .ftp-brook summary { cursor: pointer; font-weight: 600; }
  .ftp-brook details p { margin-top: .5rem; }
  .ftp-aside-box { border: 1px solid var(--ftp-rule); background: var(--ftp-white); padding: 1.25rem; }
  .ftp-aside-box + .ftp-aside-box { margin-top: 1.25rem; }
  .ftp-aside-box ul { padding-left: 1.1rem; margin-top: .5rem; }
  .ftp-form { display: flex; flex-wrap: wrap; gap: 1rem; background: var(--ftp-white); border: 1px solid var(--ftp-rule); padding: 1.5rem; }
  .ftp-form label { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .95rem; }
  .ftp-form label.ftp-full { flex-basis: 100%; }
  .ftp-form input, .ftp-form select, .ftp-form textarea { border: 1px solid #a9ab8e; border-radius: 8px; padding: .65rem .75rem; background: var(--ftp-paper); width: 100%; }
  .ftp-form textarea { min-height: 8rem; resize: vertical; }
  .ftp-form button { border: 0; cursor: pointer; }
  .ftp-consent { font-size: .88rem; margin-top: .75rem; }
  .ftp-towns { margin-top: 1.25rem; }
  .ftp-guide-list { list-style: none; padding: 0; margin-top: 1.5rem; }
  .ftp-guide-list li { padding: 1rem 0; border-top: 1px solid var(--ftp-rule); }
  .ftp-related { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--ftp-ink); }
  .ftp-related ul { padding-left: 1.1rem; margin-top: .5rem; }
}

@layer utilities {
  .ftp-mt { margin-top: 1.25rem; }
  .ftp-center { text-align: center; }
  @media (max-width: 767px) {
    body { padding-bottom: 4.5rem; font-size: 1rem; }
    .ftp-ridge-wrap { top: .35rem; padding: .35rem .5rem 0; }
    .ftp-ridge { border-radius: 14px; padding: .5rem .75rem; }
    .ftp-mark { font-size: 1.1rem; }
    .ftp-ridge-call small, .ftp-ridge-cta { display: none; }
    .ftp-trails { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 1rem; font-size: .9rem; padding-bottom: .15rem; }
    .ftp-trails a { white-space: nowrap; }
    .ftp-knoll { padding-top: 1.5rem; gap: 1.5rem; }
    .ftp-knoll-photo { max-width: none; }
    .ftp-knoll-photo img { min-height: 0; max-height: 360px; }
    .ftp-field { padding: 2.25rem 0; }
    .ftp-creek, .ftp-trail, .ftp-cove-steps { margin-left: 0; margin-right: 0; }
    .ftp-creek > .ftp-pebble, .ftp-trail li, .ftp-cove-steps li { border-left: 0; border-top: 1px solid var(--ftp-rule); padding: .9rem 0; }
    .ftp-cove-steps li { border-top-color: #4d5137; }
    .ftp-marsh { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ftp-ink); padding: .5rem; gap: .5rem; }
    .ftp-marsh a { flex: 1 1 0; min-width: 0; text-align: center; font-size: .92rem; padding: .7rem .35rem; border-radius: 10px; font-weight: 600; text-decoration: none; color: var(--ftp-white); background: var(--ftp-moss); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ftp-marsh a:first-child { flex-grow: 1.5; }
    .ftp-marsh a + a { background: var(--ftp-clay); }
  }
}
