/* Powis Hughes - Field Notes design (PHW-R-002). Built from concept 6 (NWD-R-001), 2026-12-02. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.ph-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #000; color: #fff; padding: 8px 14px; }
.ph-skip:focus { left: 8px; }
.ph-icon { flex: none; vertical-align: middle; }
.ph-logo img, .logo img { width: auto; }

/* crossfading photo backgrounds */
.ph-slides { position: absolute; inset: 0; overflow: hidden; }
.ph-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.6s ease, transform 9s linear; transform: scale(1.06); }
.ph-slide.on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .ph-slide { transition: none; transform: none; } }

.ph-map iframe, .map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root { --paper: #fbf7ee; --ink: #2d2a24; --muted: #6a6153; --pen: #1d4f91; --ochre: #c58a2c; }
body { font-family: Karla, system-ui, sans-serif; color: var(--ink); background: #3b3328; line-height: 1.65; }
h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
a { text-decoration: none; }
.hand { font-family: Caveat, cursive; color: var(--pen); font-weight: 500; }

.top { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(16px, 4vw, 48px); }
.top .ph-logo img { height: 50px; }
.nav { display: flex; gap: 24px; }
.nav a { color: #fff; font-weight: 500; padding: 2px 4px; }
.nav a.on { background: var(--paper); color: var(--ink); transform: rotate(-2deg); display: inline-block; box-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.menu { display: none; background: var(--paper); border: 0; padding: 6px 14px; font: inherit; transform: rotate(-2deg); }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero .bg, .fixed { position: absolute; inset: 0; }
.fixed { position: fixed; }
.wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48,36,20,.85), rgba(48,36,20,.35) 65%, rgba(48,36,20,.15)); mix-blend-mode: multiply; }
.hero .bg { filter: sepia(.35) saturate(.85); }
.copy { position: relative; color: #fff; padding: 0 clamp(16px, 5vw, 72px) clamp(50px, 10vh, 100px); max-width: 720px; }
.copy h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.lede { font-size: 1.08rem; opacity: .92; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tl { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); padding: 10px 16px; font-weight: 700; box-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.tl:nth-child(2) { transform: rotate(1deg); }
.tl:first-child { transform: rotate(-1deg); }
.go { color: #f0d79a; font-weight: 700; border-bottom: 2px solid; }

.snap { background: #fff; padding: 10px 10px 4px; margin: 0; box-shadow: 0 8px 22px rgba(0,0,0,.3); width: 240px; position: relative; transform: rotate(3deg); }
.snap::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: rgba(240,215,154,.7); transform: rotate(-4deg); }
.snap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.snap figcaption { font-family: Caveat, cursive; font-size: 1.35rem; color: var(--pen); text-align: center; }
.home-snap { position: absolute; right: clamp(20px, 8vw, 140px); top: 26vh; width: 280px; }

.note { position: relative; max-width: 860px; margin: 130px auto 60px; background: var(--paper); padding: clamp(24px, 5vw, 60px); box-shadow: 0 20px 50px rgba(0,0,0,.4);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(29,79,145,.08) 31px 32px); }
.note::before { content: ""; position: absolute; left: clamp(12px, 3vw, 34px); top: 0; bottom: 0; border-left: 2px solid rgba(197,58,44,.25); }
.note h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.note .lede { opacity: 1; color: var(--muted); }
.svc { border-top: 1px dashed rgba(45,42,36,.3); padding: 22px 0 6px; }
.svc h2 { font-size: 1.5rem; }
.n { font-size: 2rem; margin-right: 4px; }
.svc p { color: var(--muted); }
.svc ul { padding-left: 20px; list-style: "\2013  "; color: var(--muted); font-size: .95rem; }
.big { font-size: 2.3rem; margin-top: 40px; }
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sectors .ph-icon { color: var(--ochre); }
.sectors h3 { font-size: 1.15rem; margin-top: 6px; }
.sectors p { color: var(--muted); font-size: .93rem; margin: 0; }
.float { float: right; margin: 10px 0 20px 30px; }

.team { display: grid; gap: 30px; clear: both; }
.pp { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: start; }
.pp .snap { width: 170px; }
.pp .snap img { aspect-ratio: 4/5; object-position: top; }
.t1 { transform: rotate(-3deg); } .t2 { transform: rotate(2deg); }
.role { font-family: Caveat, cursive; color: var(--pen); font-size: 1.4rem; margin: -10px 0 4px; }
.pp p { color: var(--muted); }
.check { list-style: none; padding: 0; }
.check li { padding: 6px 0 6px 30px; position: relative; color: var(--muted); }
.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--pen); font-family: Caveat; font-size: 1.5rem; top: -2px; }
.check b { font-family: "Libre Baskerville", serif; color: var(--ink); }

.biglinks { font-family: "Libre Baskerville", serif; font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.8; overflow-wrap: anywhere; }
.biglinks a { display: inline-flex; gap: 12px; align-items: center; border-bottom: 2px solid var(--ochre); }
.cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
.cols h2 { font-size: 1.3rem; }
address { font-style: normal; color: var(--muted); }
.note .go { color: var(--pen); }
.map-wrap { margin-top: 30px; position: relative; }
.map-wrap .hand { font-size: 1.7rem; }
.map { height: 320px; border: 8px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); transform: rotate(-.6deg); }

.foot { position: relative; text-align: center; color: #e8dcc4; padding: 30px 16px 40px; }
.foot small { font-size: .78rem; opacity: .8; }
body:has(.fn-home) .foot { background: #3b3328; }

@media (max-width: 820px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 80px; right: 16px; flex-direction: column; gap: 4px; background: var(--paper); padding: 14px 20px; box-shadow: 4px 4px 0 rgba(0,0,0,.3); }
  .nav a { color: var(--ink); }
  .menu-open .nav { display: flex; }
  .top .ph-logo img { height: 42px; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .hero .copy { margin-top: auto; padding-top: 10px; }
  .home-snap { position: relative; z-index: 2; order: -1; top: auto; right: auto; align-self: flex-end; width: 150px; margin: 96px 20px 18px 0; }
  .note { margin: 110px 12px 40px; }
  .float { float: none; margin: 16px auto 24px; }
  .sectors, .cols { grid-template-columns: 1fr; }
  .pp { grid-template-columns: 100px 1fr; gap: 16px; }
  .pp .snap { width: 100px; padding: 6px 6px 2px; }
  .pp .snap figcaption { font-size: 1rem; }
}

/* Site additions for the OpenForum pages */
.foot a { color: #f0d79a; }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); transform: rotate(-2deg); display: inline-block; box-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.map .map-link { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 280px; background: #e9e1cf; color: var(--pen); font-weight: 700; text-align: center; padding: 20px; }
