/* PRP Portland Oregon — warm editorial: cream, burgundy, gold */
:root {
  color-scheme: only light;
  --cream: #f7f2e9;
  --cream-2: #efe7d8;
  --burgundy: #6e1423;
  --burgundy-2: #521019;
  --gold: #b98a2f;        /* decorative only: rules, borders, underlines, fills */
  --gold-text: #7f5c12;   /* text-safe antique gold: 5.47:1 on cream, 4.97:1 on cream-2 */
  --gold-hover: #d9ad55;  /* lifted gold fill for hover on the burgundy plate */
  --ink: #2b2118;
  --soft: #6b5c4b;
  --rule: #ddd2bf;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.7; overflow-wrap: break-word; }
.col { max-width: 960px; margin: 0 auto; padding: 0 1.4rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
a { color: var(--burgundy); }
p { margin-bottom: 1rem; }

/* skip link — off-canvas until focused, never display:none */
.skip-link {
  position: fixed; top: .6rem; left: .6rem; z-index: 999;
  background: var(--burgundy); color: var(--cream);
  padding: .75rem 1.25rem; font-weight: 600; font-size: .95rem;
  text-decoration: none; border-radius: 2px;
  box-shadow: 0 2px 10px rgba(43, 33, 24, .35);
  transform: translateY(calc(-100% - 1.2rem));
}
.skip-link:focus { transform: none; }
.skip-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* focus-visible — burgundy ring (10.5:1 on cream), cream ring on burgundy panels */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.post-card:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 2px;
}
.cta-plate a:focus-visible { outline-color: var(--cream); }
.faq summary:focus-visible { outline-offset: 2px; }

/* masthead */
.mast { border-bottom: 3px double var(--rule); background: var(--cream); }
.mast .col { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.3rem; padding-bottom: 1.1rem; }
.nameplate, .nameplate-foot { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--burgundy); text-decoration: none; }
.nameplate span, .nameplate-foot span { font-style: italic; font-weight: 500; color: var(--gold-text); }
.mast nav { display: flex; gap: .4rem 1.5rem; align-items: baseline; flex-wrap: wrap; }
.mast nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.mast nav a:hover { color: var(--burgundy); }
.mast-link { color: var(--burgundy) !important; font-weight: 600 !important; border-bottom: 2px solid var(--gold); }

/* hero */
.hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--rule); }
.hero .overline { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; color: var(--gold-text); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); max-width: 800px; margin-bottom: 1.2rem; }
.hero .lede { font-size: 1.18rem; color: var(--soft); max-width: 660px; margin-bottom: 2rem; }
.hero .lede em { font-family: var(--serif); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: .75rem 1.6rem; font-size: .95rem; border-radius: 2px; }
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-2); }
.btn-secondary { border: 1.5px solid var(--burgundy); color: var(--burgundy); }
.btn-secondary:hover { background: var(--cream-2); }

/* sections */
section { padding: 3rem 0; }
.deck { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; color: var(--gold-text); margin-bottom: .5rem; }
section h2 { font-size: 2rem; margin-bottom: 1.1rem; }
.mag-cols { columns: 2; column-gap: 2.8rem; column-rule: 1px solid var(--rule); }
.mag-cols p:first-child::first-letter { font-family: var(--serif); font-size: 3.3rem; float: left; line-height: .85; padding: .15rem .5rem 0 0; color: var(--burgundy); }

.numbered { list-style: none; counter-reset: n; margin-top: 1.4rem; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.numbered li::before { content: counter(n); font-family: var(--serif); font-size: 2rem; color: var(--gold-text); line-height: 1; }
.numbered h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.numbered p { margin: 0; color: var(--soft); font-size: .96rem; }

.evidence { background: var(--cream-2); border: 1px solid var(--rule); border-left: 4px solid var(--gold); padding: 2rem; margin-top: 1.4rem; }
.evidence blockquote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--burgundy); margin-bottom: .8rem; }
.evidence cite { font-size: .88rem; color: var(--soft); font-style: normal; }
.evidence-note { margin: 0; font-size: 1.02rem; color: var(--ink); }
.evidence-note::before {
  content: "Note";
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 600;
  color: var(--gold-text);
  margin-right: .7rem;
  transform: translateY(-.08em);
}
.evidence-note a { font-weight: 600; }

.faq details { border-bottom: 1px solid var(--rule); padding: 1.05rem 0; }
.faq summary { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.faq details p { margin: .7rem 0 0; color: var(--soft); }

.cta-plate { background: var(--burgundy); color: var(--cream); padding: 3rem 2.5rem; margin: 2rem 0 3.5rem; text-align: center; }
.cta-plate h2 { color: var(--cream); }
.cta-plate p { color: #e8cfa9; max-width: 560px; margin: 0 auto 1.5rem; }
.cta-plate .btn-primary { background: var(--gold); color: var(--burgundy-2); }
.cta-plate .btn-primary:hover { background: var(--gold-hover); color: var(--burgundy-2); }

/* articles */
.articles-hero { padding: 3.2rem 0 1rem; max-width: 720px; }
.articles-hero h1 { font-size: 2.5rem; margin-bottom: .8rem; }
.articles-hero p { color: var(--soft); font-size: 1.05rem; }
.post-grid { padding-bottom: 3.5rem; border-top: 3px double var(--rule); }
.post-card { display: block; text-decoration: none; color: inherit; padding: 1.7rem .3rem; border-bottom: 1px solid var(--rule); }
.post-card:hover h2 { color: var(--burgundy); }
.post-date { text-transform: uppercase; letter-spacing: .15em; font-size: .74rem; font-weight: 600; color: var(--gold-text); margin-bottom: .35rem; }
.post-card h2 { font-size: 1.5rem; margin-bottom: .45rem; transition: color .15s; }
.post-teaser { color: var(--soft); font-size: .97rem; max-width: 700px; margin-bottom: .5rem; }
.post-more { font-weight: 600; color: var(--burgundy); font-size: .9rem; border-bottom: 1.5px solid var(--gold); justify-self: start; width: fit-content; }

/* article page */
.article-page { max-width: 700px; margin: 0 auto; padding: 3.2rem 0; }
.article-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600; color: var(--gold-text); }
.article-page h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: .5rem 0; }
.article-date { color: var(--soft); font-size: .9rem; margin-bottom: 2rem; font-style: italic; }
.article-date time { font: inherit; color: inherit; white-space: nowrap; }

/* the excerpt is a <blockquote>: reset UA margin/indent, read as quoted long-form */
.article-body {
  margin: 0;
  padding: .2rem 0 .2rem 1.6rem;
  border-left: 3px solid var(--gold);
  font-size: 1.08rem;
  quotes: none;
}
.article-body p { font-size: 1em; }
.article-body p:last-child { margin-bottom: 0; }
.article-body p:first-child::first-letter { font-family: var(--serif); font-size: 3.2rem; float: left; line-height: .85; padding: .15rem .5rem 0 0; color: var(--burgundy); }

.read-full { background: var(--cream-2); border: 1px solid var(--rule); padding: 1.8rem; margin-top: 2.2rem; }
.read-full p { color: var(--soft); font-size: .95rem; }
.read-full .btn { margin: .3rem .6rem .3rem 0; }
.source-link { margin: .9rem 0 0; font-size: .95rem; font-weight: 600; }
.source-link a { color: var(--burgundy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.source-link a:hover { color: var(--burgundy-2); text-decoration-color: var(--burgundy-2); }
.back-link { margin-top: 2rem; }
.back-link a { text-decoration: none; font-weight: 600; }

.about-page, .notfound { max-width: 700px; margin: 0 auto; padding: 3.5rem 0; }
.about-page h1, .notfound h1 { font-size: 2.3rem; margin-bottom: 1.2rem; }

/* colophon */
.colophon { border-top: 3px double var(--rule); padding: 3rem 0 2rem; margin-top: 2rem; font-size: .94rem; color: var(--soft); }
.colophon a { color: var(--burgundy); }
.nameplate-foot { margin-bottom: .5rem; }
.small-print { font-size: .78rem; margin-top: 1.2rem; }

/* ---- responsive ---- */
/* intermediate tablet step: tighten multi-column rhythm before anything collapses */
/* original site-authored commentary under the quoted excerpt */
.commentary { margin: 2rem 0 0; }
.commentary h2 { font-size: 1.4rem; margin: 1.7rem 0 .6rem; font-family: var(--serif); }
.commentary p { color: var(--ink); }


/* ---- featured / related / hub pages ---- */
.featured { padding: 3rem 0; border-top: 1px solid var(--rule); }
.featured h2 { font-size: 2rem; margin-bottom: 1rem; }
.featured-more { margin-top: 1rem; }
.featured-more a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); }

.related { margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 3px double var(--rule); }
.related h2 { font-size: 1.3rem; margin-bottom: .7rem; }
.related ul { list-style: none; display: grid; gap: .6rem; }
.related li a { text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); }
.related li a:hover { border-bottom-color: var(--burgundy); }

.hub { max-width: 740px; margin: 0 auto; padding: 3.2rem 0; }
.hub h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 1rem; }
.hub .hub-lede { font-size: 1.18rem; color: var(--soft); margin-bottom: 2rem; }
.hub h2 { font-size: 1.7rem; margin: 2.4rem 0 .8rem; }
.hub h3 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.hub ul, .hub ol { margin: 0 0 1.2rem 1.3rem; }
.hub li { margin-bottom: .5rem; }
.hub table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; font-size: .95rem; }
.hub th, .hub td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hub th { font-family: var(--serif); font-weight: 700; }
.hub dl { margin-bottom: 1.4rem; }
.hub dt { font-family: var(--serif); font-weight: 700; margin-top: 1rem; }
.hub dd { margin-left: 0; color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .mag-cols { column-gap: 2rem; }
  .mast nav { gap: .4rem 1.1rem; }
  .cta-plate { padding: 2.6rem 1.8rem; }
  .hero { padding: 3.4rem 0 2.6rem; }
  .article-page { padding: 2.6rem 0; }
}
/* magazine columns go single before the column measure gets cramped */
@media (max-width: 820px) {
  .mag-cols { columns: 1; column-rule: none; }
}
@media (max-width: 700px) {
  .mast .col { flex-direction: column; align-items: flex-start; }
  .cta-plate { padding: 2.2rem 1.2rem; }
  .numbered li { grid-template-columns: 2.4rem 1fr; gap: .8rem; }
  .numbered li::before { font-size: 1.7rem; }
  .article-body { padding-left: 1.1rem; }
  .read-full { padding: 1.4rem; }
}
@media (max-width: 400px) {
  .mast nav { gap: .35rem .9rem; }
  .btn { padding: .7rem 1.15rem; }
}

/* ---- print ---- */

/* ---- featured images ---- */
.article-figure { margin: 0 0 2.2rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.4rem; }
.article-figure img { width: 100%; height: auto; display: block; }
.post-card { display: grid; grid-template-columns: 1fr 240px; gap: 0 2rem; align-items: start; }
.post-card .post-thumb { grid-column: 2; grid-row: 1 / span 4; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--rule); padding: 4px; background: #fff; }
.post-card > :not(.post-thumb) { grid-column: 1; }
.featured .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; border-top: none; }
.featured .post-card { display: block; padding: 0; border-bottom: none; }
.featured .post-card .post-thumb { aspect-ratio: 16 / 10; margin-bottom: .9rem; }
@media (max-width: 700px) {
  .post-card { grid-template-columns: minmax(0, 1fr); }
  .post-card .post-thumb { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 9; margin-bottom: .8rem; }
  .post-card > :not(.post-thumb) { grid-column: 1; }
  .featured .post-grid { grid-template-columns: minmax(0, 1fr); }
}


/* ---- narrow-screen safety ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0 1.8rem; }
.table-scroll table { margin: 0; min-width: 100%; }
.post-thumb, .article-figure img { max-width: 100%; min-width: 0; }
.post-card { min-width: 0; }


/* ---- nav submenu (keeps the bar on one line; no JS) ---- */
.submenu { position: relative; }
.submenu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.submenu > summary::-webkit-details-marker { display: none; }
.submenu > summary::after { content: "\25BE"; font-size: .7em; line-height: 1; transform: translateY(1px); }
.submenu[open] > summary::after { transform: rotate(180deg) translateY(-1px); }
.submenu-panel {
  position: absolute; top: calc(100% + .55rem); left: 0; z-index: 60;
  min-width: 15rem; display: grid; gap: .1rem; padding: .5rem;
  background:var(--cream);border:1px solid var(--rule);border-top:3px double var(--rule);box-shadow:0 12px 30px rgba(43,33,24,.18);
}
.submenu-panel a { display: block; padding: .5rem .7rem; white-space: nowrap; color:var(--ink);text-decoration:none;font-size:.93rem; }
.submenu-panel a:hover, .submenu-panel a:focus-visible { background:var(--cream-2);color:var(--burgundy); }
@media (max-width: 700px) {
  .submenu { width: 100%; }
  .submenu-panel { position: static; min-width: 0; width: 100%; margin-top: .4rem; }
  .submenu-panel a { white-space: normal; }
}


.mast .submenu > summary { color: var(--ink); font-size: .95rem; font-weight: 500; }
.mast .submenu > summary:hover, .mast .submenu[open] > summary { color: var(--burgundy); }
.mast .submenu-panel a:hover, .mast .submenu-panel a:focus-visible { background: var(--cream-2); color: var(--burgundy); }

@media print {
  body { background: #fff; color: #1a1a1a; font-size: 11pt; line-height: 1.5; }
  .skip-link, .mast nav, .mast-link, .hero-ctas, .cta-plate, .back-link, .read-full .btn { display: none !important; }
  .mast, .colophon, .evidence, .read-full, .cta-plate { background: #fff !important; color: #1a1a1a !important; }
  .mast, .colophon { border-color: #999 !important; }
  .evidence, .read-full { border: 1px solid #999 !important; }
  .nameplate, .nameplate-foot, .nameplate span, .nameplate-foot span,
  .deck, .post-date, .article-eyebrow, .hero .overline, .evidence-note::before,
  h1, h2, h3, .post-more, a { color: #000 !important; }
  .numbered li::before, .mag-cols p:first-child::first-letter,
  .article-body p:first-child::first-letter { color: #000 !important; }
  .hero .lede, .post-teaser, .article-date, .colophon, .read-full p,
  .numbered p, .faq details p, .evidence cite, .small-print { color: #333 !important; }
  .article-body { border-left: 2px solid #666; }
  .post-more { border-bottom: none; }
  a { text-decoration: underline; }
  .source-link a::after { content: " (" attr(href) ")"; font-weight: 400; font-size: .85em; word-break: break-all; }
  section, .article-page, .hero { padding: .8rem 0; }
  .mag-cols { columns: 2; column-rule: 1px solid #999; }
  h1, h2, h3 { page-break-after: avoid; }
  .faq details { page-break-inside: avoid; }
  .faq details p { display: block !important; }
}

/* Homepage row teasing the "What is PRP?" explainer */
.explainer-row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center;
  justify-content: space-between; margin: 2.6rem 0; padding: 1.6rem 1.8rem;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.explainer-copy { flex: 1 1 22rem; min-width: 0; }
.explainer-kicker { font-variant: small-caps; letter-spacing: .1em; font-size: .9rem;
  color: var(--soft); margin-bottom: .3rem; }
.explainer-row h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 .45rem; }
.explainer-row p { margin: 0; color: var(--soft); }
.explainer-more { white-space: nowrap; font-weight: 700; }
