/*
Theme Name: Portico 7950 Archive
Theme URI: https://www.portico7950.uk/
Author: Reconstructed from public Wayback captures
Description: Maintainable reconstruction of the public Portico Lodge 7950 website captured in 2023.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portico7950-archive
*/

:root {
  --portico-navy: #071a2e;
  --portico-blue: #123a5a;
  --portico-blue-soft: #e8eef3;
  --portico-gold: #c5a05a;
  --portico-gold-dark: #8b6a31;
  --portico-ink: #202832;
  --portico-muted: #66717d;
  --portico-paper: #fbfaf7;
  --portico-white: #ffffff;
  --portico-border: #d9dee3;
  --portico-success: #236843;
  --portico-error: #912f2f;
  --portico-shadow: 0 14px 36px rgba(7, 26, 46, .12);
  --portico-radius: 4px;
  --portico-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--portico-ink);
  background: var(--portico-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--portico-blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover, a:focus { color: var(--portico-gold-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 10000;
  padding: .65rem 1rem;
  color: var(--portico-white);
  background: var(--portico-navy);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(7, 26, 46, .12);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  width: min(var(--portico-width), calc(100% - 2rem));
  min-height: 106px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-brand { display: inline-flex; flex-direction: column; color: var(--portico-navy); text-decoration: none; }
.site-brand__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .015em;
}
.site-brand__tagline {
  margin-top: .45rem;
  color: var(--portico-muted);
  font-size: .79rem;
  letter-spacing: .09em;
  line-height: 1.25;
  text-transform: uppercase;
}
.site-brand::after { content: ""; width: 58px; height: 3px; margin-top: .65rem; background: var(--portico-gold); }

.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .78rem;
  border-radius: 3px;
  color: var(--portico-navy);
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { color: var(--portico-white); background: var(--portico-navy); }
.site-nav .site-nav__account { margin-left: .35rem; border: 1px solid var(--portico-gold); color: var(--portico-navy); }
.nav-toggle { display: none; border: 1px solid var(--portico-border); padding: .55rem .75rem; color: var(--portico-navy); background: var(--portico-white); }

.site-main { min-height: 58vh; }
.content-shell { width: min(850px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 6.25rem) 0; }
.content-shell--wide { width: min(var(--portico-width), calc(100% - 2rem)); }
.page-header { margin-bottom: 2.3rem; }
.page-kicker { margin: 0 0 .55rem; color: var(--portico-gold-dark); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.entry-title, .hero-title {
  margin: 0;
  color: var(--portico-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
}
.entry-title { font-size: clamp(2.35rem, 7vw, 4.8rem); }
.page-header::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 1.4rem; background: var(--portico-gold); }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5 {
  color: var(--portico-navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.24;
}
.entry-content h2 { margin: 3.2rem 0 1.15rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.entry-content h3 { margin: 2.9rem 0 1rem; font-size: 1.42rem; letter-spacing: .015em; }
.entry-content h4 { margin: 2.15rem 0 .85rem; font-size: 1.18rem; }
.entry-content h5 { margin: 1.7rem 0 .7rem; font-size: 1.02rem; }
.entry-content p { margin: 0 0 1.28rem; }
.entry-content ul, .entry-content ol { padding-left: 1.45rem; }
.entry-content li { margin-bottom: .65rem; }
.portico-lede { color: var(--portico-navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.35; }

.home-hero { padding: clamp(3rem, 7vw, 6.6rem) 0 0; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f5f1e8 100%); }
.home-hero__inner { width: min(var(--portico-width), calc(100% - 2rem)); margin: 0 auto; }
.hero-title { font-size: clamp(3.2rem, 11vw, 8.2rem); letter-spacing: -.035em; text-transform: lowercase; }
.hero-subtitle { max-width: 920px; margin: 1.25rem 0 2.6rem; color: var(--portico-blue); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 3.4vw, 2.5rem); line-height: 1.26; }
.hero-frame { position: relative; margin: 0; overflow: hidden; border: 10px solid var(--portico-white); border-bottom: 0; box-shadow: var(--portico-shadow); background: var(--portico-navy); }
.hero-frame img { display: block; width: 100%; aspect-ratio: 1024 / 521; object-fit: cover; }
.hero-frame figcaption { position: absolute; right: .8rem; bottom: .65rem; padding: .25rem .5rem; color: rgba(255,255,255,.86); background: rgba(7,26,46,.72); font-size: .68rem; }
.meeting-band { color: var(--portico-white); background: var(--portico-navy); }
.meeting-band__inner { width: min(var(--portico-width), calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.7rem, 4vw, 2.7rem) 0; display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start; }
.meeting-band__label { color: var(--portico-gold); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.meeting-band p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 2.1vw, 1.52rem); line-height: 1.55; }
.home-copy { width: min(820px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3.2rem, 7vw, 6.3rem) 0; }
.home-copy .entry-content > p:first-child { color: var(--portico-navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.42; }

.portico-form { margin-top: 2.3rem; padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid var(--portico-border); border-top: 5px solid var(--portico-gold); background: var(--portico-white); box-shadow: 0 8px 24px rgba(7,26,46,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .4rem; color: var(--portico-navy); font-size: .89rem; font-weight: 750; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid #b9c2ca;
  border-radius: 2px;
  padding: .72rem .8rem;
  color: var(--portico-ink);
  background: var(--portico-white);
}
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(197,160,90,.24); border-color: var(--portico-gold-dark); }
.form-field textarea { min-height: 180px; resize: vertical; }
.form-help { margin: .4rem 0 0; color: var(--portico-muted); font-size: .82rem; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.portico-button, .portico-form button, .wp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--portico-navy);
  border-radius: 2px;
  padding: .7rem 1.25rem;
  color: var(--portico-white);
  background: var(--portico-navy);
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
.portico-button:hover, .portico-button:focus, .portico-form button:hover, .portico-form button:focus, .wp-submit:hover, .wp-submit:focus { border-color: var(--portico-gold-dark); color: var(--portico-navy); background: var(--portico-gold); }
.portico-alert { margin: 1.25rem 0; border-left: 5px solid currentColor; padding: .85rem 1rem; background: var(--portico-white); }
.portico-alert--success { color: var(--portico-success); }
.portico-alert--error { color: var(--portico-error); }
.portico-account-card { padding: 1.5rem; border: 1px solid var(--portico-border); background: var(--portico-white); }

.site-footer { color: rgba(255,255,255,.83); background: var(--portico-navy); }
.site-footer__inner { width: min(var(--portico-width), calc(100% - 2rem)); margin: 0 auto; padding: 3.5rem 0 2rem; }
.footer-heading { margin: 0 0 1rem; color: var(--portico-gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem 2rem; margin: 0 0 2.8rem; padding: 0; list-style: none; }
.footer-links a { color: rgba(255,255,255,.88); font-size: .9rem; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { color: var(--portico-gold); text-decoration: underline; }
.footer-meta { display: flex; justify-content: space-between; gap: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.5rem; font-size: .8rem; }
.footer-meta a { color: var(--portico-white); }

.portico-modal[hidden] { display: none; }
.portico-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.portico-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 12, 23, .78); }
.portico-modal__panel { position: relative; width: min(470px, 100%); max-height: 92vh; overflow: auto; padding: 2rem; border-top: 6px solid var(--portico-gold); background: var(--portico-white); box-shadow: 0 24px 70px rgba(0,0,0,.36); }
.portico-modal__panel h2 { margin-top: 0; color: var(--portico-navy); font-family: Georgia, "Times New Roman", serif; }
.portico-modal__close { position: absolute; right: .7rem; top: .55rem; border: 0; padding: .35rem .55rem; color: var(--portico-navy); background: transparent; font-size: 1.45rem; cursor: pointer; }
.portico-modal .login-username label, .portico-modal .login-password label, .portico-modal .login-remember { display: block; font-size: .88rem; font-weight: 700; }
.portico-modal input[type="text"], .portico-modal input[type="password"] { width: 100%; margin-top: .3rem; border: 1px solid #b9c2ca; padding: .68rem .75rem; }
body.portico-modal-open { overflow: hidden; }

.error-404 { text-align: center; }
.error-404 .entry-title { font-size: clamp(4rem, 18vw, 10rem); }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 90px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem; border-bottom: 1px solid var(--portico-border); background: var(--portico-white); box-shadow: var(--portico-shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav .site-nav__account { margin-left: 0; }
  .meeting-band__inner { grid-template-columns: 1fr; gap: .55rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-brand__tagline { display: none; }
  .site-header__inner { width: min(100% - 1.25rem, var(--portico-width)); }
  .hero-frame { border-width: 5px; border-bottom: 0; }
  .form-grid, .footer-links { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
