:root{
      --ink:#24313a;
      --muted:#687781;
      --accent:#2d7180;
      --accent-dark:#205561;
      --cream:#f5f1e8;
      --paper:#fffdf8;
      --line:#d9d3c7;
      --shadow:0 14px 40px rgba(35,48,58,.12);
      --radius:18px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}

:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}
    body{
      margin:0;
      color:var(--ink);
      background:
        radial-gradient(circle at top left, rgba(45,113,128,.08), transparent 30rem),
        var(--cream);
      font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
      line-height:1.65;
    }
    a{color:var(--accent);font-weight:700}
    a:hover{color:var(--accent-dark)}
    .site{
      width:min(1100px,calc(100% - 32px));
      margin:24px auto;
    }
    .header{
      position:relative;
      overflow:hidden;
      border-radius:var(--radius);
      min-height:190px;
      display:flex;
      align-items:flex-end;
      background:#24313a url("../images/montarge.webp") center/cover no-repeat;
      box-shadow:var(--shadow);
    }
    .header::before{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(90deg,rgba(20,31,38,.35),rgba(20,31,38,.10));
    }
    .brand{
      position:relative;
      z-index:1;
      padding:34px;
      color:white;
    }
    .eyebrow{
      margin:0 0 4px;
      text-transform:uppercase;
      letter-spacing:.14em;
      font-size:.78rem;
      font-weight:800;
      opacity:.82;
    }
    h1{
      margin:0;
      font-family:Georgia,"Times New Roman",serif;
      font-size:clamp(2rem,5vw,3.5rem);
      line-height:1.05;
    }
    .tagline{
      margin:.65rem 0 0;
      max-width:680px;
      color:rgba(255,255,255,.9);
      font-size:1rem;
    }
    .nav{
      display:grid;
      grid-template-columns:repeat(6,1fr);
      gap:8px;
      margin:14px 0;
    }
    .nav a,
    .nav a:visited{
      display:block;
      padding:12px 8px;
      text-align:center;
      text-decoration:none;
      color:#24313a !important;
      background:#fffdf8;
      border:1px solid #d9d3c7;
      border-radius:12px;
      transition:none;
    }
    .nav a:hover,
    .nav a:focus-visible,
    .nav a:active,
    .nav a[aria-current="page"],
    .nav a[aria-current="page"]:visited{
      color:#ffffff !important;
      background:#2d7180 !important;
      border-color:#2d7180 !important;
      transform:none;
    }
    main{
      background:var(--paper);
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      overflow:hidden;
    }
    .content{
      padding:clamp(24px,5vw,52px);
      max-width:900px;
      margin:auto;
    }
    .kicker{
      margin:0 0 8px;
      color:var(--accent);
      font-size:.82rem;
      text-transform:uppercase;
      letter-spacing:.13em;
      font-weight:800;
    }
    h2{
      margin:0 0 22px;
      font-family:Georgia,"Times New Roman",serif;
      font-size:clamp(2rem,4vw,3rem);
      line-height:1.1; color: #2d7180;
    }
    .intro{
      font-size:1.1rem;
      color:#42515a;
    }
    .story p{margin:0 0 1.2rem}
    .story p:first-of-type::first-letter{
      float:left;
      font:700 3.6rem/2.8rem Georgia,"Times New Roman",serif;
      color:var(--accent);
      padding-right:8px;
    }
    .divider{
      width:90px;
      height:3px;
      margin:30px auto;
      background:var(--accent);
      border:0;
      border-radius:99px;
    }

    .photo-nav{
      display:flex;
      justify-content:center;
      align-items:center;
      gap:8px;
      margin:18px 0;
    }
    .photo-nav a,
    .photo-nav a:visited,
    .start-here-button,
    .start-here-button:visited{
      display:inline-block;
      padding:12px 18px;
      text-align:center;
      text-decoration:none;
      color:#ffffff !important;
      background:#2d7180 !important;
      border:1px solid #2d7180 !important;
      border-radius:12px;
      font-weight:700;
      font-size:.9rem;
      line-height:1.2;
      transition:none;
      transform:none !important;
    }
    .photo-nav a:hover,
    .photo-nav a:focus,
    .photo-nav a:active,
    .start-here-button:hover,
    .start-here-button:focus,
    .start-here-button:active{
      color:#24313a !important;
      background:#fffdf8 !important;
      border-color:#d9d3c7 !important;
      transform:none !important;
    }
    .photo-nav a:hover:visited,
    .photo-nav a:focus:visited,
    .photo-nav a:active:visited,
    .start-here-button:hover:visited,
    .start-here-button:focus:visited,
    .start-here-button:active:visited{
      color:#24313a !important;
      background:#fffdf8 !important;
      border-color:#d9d3c7 !important;
    }

    .updated{
      margin:0;
      text-align:center;
      color:var(--muted);
      font-size:.85rem;
    }
    footer{
      padding:22px 8px 8px;
      text-align:center;
      color:var(--muted);
      font-size:.85rem;
    }
    @media (max-width:760px){
      .site{width:min(100% - 20px,1100px);margin:10px auto}
      .header{min-height:175px}
      .brand{padding:26px}
      .nav{grid-template-columns:repeat(2,1fr)}
      .content{padding:28px 22px}
    }
    @media (max-width:430px){
      .nav{grid-template-columns:1fr}
      .header{min-height:165px}
      .brand{padding:22px}
      .tagline{font-size:.92rem}
    }
    h5{
      margin:0 0 0px;
      font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size:.8rem;
      line-height:1.1; color: #000000;
    }


/* ================================================================
   TOWNS TIMES PAGE-SPECIFIC COMPONENTS
   ================================================================ */

/* Home page */
.welcome-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}
.welcome-feature-copy, .welcome-feature-image { min-width: 0; }
.copy h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 600;
}
.copy p { margin: 0 0 18px; font-size: 1.02rem; }
.welcome-image {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(35,48,58,.12);
}
.signature {
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
}
.explore { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
.explore h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  padding: 18px; border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255,255,255,.62); text-decoration: none; color: var(--ink);
}
.card strong { display: block; margin-bottom: 4px; color: var(--accent-dark); }
.card span { color: var(--muted); font-size: .9rem; }
.start-here-wrap { display:flex; justify-content:center; margin:12px 12px; }

/* Photo index */
.page-heading { max-width: 850px; margin-bottom: 38px; }
.page-heading h2 {
  margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; font-weight: 600; color: #2d7180;
}
.page-heading p { margin: 0 0 15px; font-size: 1.02rem; }
.notice { margin-top:22px; padding:18px 20px; border-left:4px solid var(--accent); background:#f1f6f5; border-radius:0 12px 12px 0; }
.trip { margin-top:42px; padding-top:30px; border-top:1px solid var(--line); }
.trip h3 { margin:0 0 17px; font-family:Georgia,"Times New Roman",serif; font-size:1.7rem; font-weight:600; }
.photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.photo-card {
  display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:62px;
  padding:13px 16px; border:1px solid var(--line); border-radius:12px;
  background:rgba(255,255,255,.7); color:var(--ink); text-decoration:none;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.photo-card:hover { color:var(--accent-dark); border-color:#a9c3c8; transform:translateY(-2px); box-shadow:0 7px 18px rgba(35,48,58,.08); }
.photo-card span:first-child { font-weight:650; }
.arrow { flex:0 0 auto; color:var(--accent); font-size:1.15rem; }
.more { margin-top:42px; padding:22px; border-radius:14px; background:#eee9df; text-align:center; }
.more p { margin:0; }

/* Route */
.jump-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.jump-links a { display:inline-block; padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:white; text-decoration:none; font-size:.9rem; }
.journey { margin-top:42px; padding-top:32px; border-top:1px solid var(--line); }
.journey h3 { margin:0 0 5px; font-family:Georgia,"Times New Roman",serif; font-size:1.8rem; font-weight:600; }
.journey .date { margin:0 0 22px; color:var(--muted); font-size:.92rem; }
.map-section { margin:28px 0 40px; }
.map-section h4 { margin:0 0 14px; font-size:1.05rem; font-weight:750; }
.map-frame { overflow-x:auto; padding:8px; border:1px solid var(--line); border-radius:14px; background:#f3efe7; margin-left:-4px; margin-right:-4px; }
.map-image { display:block; width:540px; height:auto; max-width:none; margin:0 auto; }
.map-note { margin:0 0 14px; color:var(--accent); font-size:1.08rem; font-weight:700; text-align:center; }
.back-top { display:inline-block; margin-top:4px; font-size:.88rem; }

/* Newsletters */
.contact-box { margin-top:24px; padding:20px 22px; border-left:4px solid var(--accent); background:#f1f6f5; border-radius:0 12px 12px 0; }
.contact-box p { margin:0 0 8px; }
.contact-box p:last-child { margin-bottom:0; }
.archive { margin-top:42px; padding-top:32px; border-top:1px solid var(--line); }
.archive h3 { margin:0 0 8px; font-family:Georgia,"Times New Roman",serif; font-size:1.8rem; font-weight:600; }
.archive-intro { margin:0 0 24px; color:var(--muted); }
.edition-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.edition-card {
  display:flex; align-items:center; gap:20px; padding:18px; border:1px solid var(--line);
  border-radius:15px; background:rgba(255,255,255,.72); color:var(--ink); text-decoration:none;
  box-shadow:0 5px 16px rgba(35,48,58,.05);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.edition-card:hover { color:var(--ink); border-color:#a9c3c8; transform:translateY(-2px); box-shadow:0 9px 22px rgba(35,48,58,.1); }
.edition-card img { width:130px; height:auto; max-height:182px; object-fit:contain; flex:0 0 auto; border:1px solid var(--line); background:white; border-radius:6px; }
.edition-info { display:flex; flex-direction:column; gap:3px; min-width:0; }
.edition-info strong { margin-bottom:5px; color:var(--accent-dark); font-size:1.08rem; }
.edition-info span:not(.open-link) { color:var(--muted); font-size:.9rem; }
.open-link { margin-top:10px; font-weight:750; color:var(--accent-dark); font-size:.9rem; }

/* Legacy photo navigation brought into the same component system */
.legacy-photo-nav {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:10px; margin:18px 0;
}
.legacy-photo-nav a {
  display:inline-block; padding:10px 18px; text-decoration:none; color:white;
  background:var(--accent); border:1px solid var(--accent); border-radius:12px;
  font-weight:700; font-size:.9rem; line-height:1.2; transition:.2s ease;
}
.legacy-photo-nav a:hover, .legacy-photo-nav a:focus-visible { color:white; background:#2d7180; border-color:#2d7180; transform:none; }
.legacy-photo-nav .separator { color:var(--muted); font-weight:700; }
.legacy-photo-nav .plain { padding:10px 8px; color:var(--muted); font-weight:700; }

/* Keep old photo pages responsive without changing their content dimensions on desktop. */
main img { max-width:100%; height:auto; }
/* Image-map coordinates must remain aligned with the fixed-size map image. */
main img.map-image { max-width:none; }

@media (max-width:760px){
  .welcome-feature { grid-template-columns:1fr; }
  .welcome-image { max-width:600px; margin:12px auto; }
  .cards { grid-template-columns:1fr 1fr; }
  .photo-grid { grid-template-columns:repeat(2,1fr); }
  .edition-grid { grid-template-columns:1fr; }
  .edition-card { align-items:flex-start; flex-direction:column; }
  .edition-card img { width:150px; align-self:center; }
}
@media (max-width:430px){
  .cards, .photo-grid { grid-template-columns:1fr; }
  .photo-card, .edition-card { transition:none; }
}


/* Preserve the original general page background/link treatment of the four main pages. */
body.main-page {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 34rem),
    var(--cream);
}
body.main-page a { color: var(--accent-dark); font-weight: 650; }
body.main-page a:hover { color: var(--accent); }


/* Contact form */
.contact-form {
  margin-top: 28px;
  padding-top: 6px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 700;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}
.form-field textarea {
  min-height: 170px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(45,113,128,.25);
  outline-offset: 2px;
  border-color: var(--accent);
}
.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.form-submit .start-here-button {
  cursor: pointer;
  font-family: inherit;
}
.form-note {
  margin-top: 24px !important;
  color: var(--muted);
  font-size: .9rem;
}
.form-status {
  margin: 0 0 22px !important;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.form-status.success {
  background: #e9f3ef;
  border: 1px solid #b9d5c9;
  color: #245847;
}
.form-status.error {
  background: #f8ece8;
  border: 1px solid #dfbdb4;
  color: #704138;
}
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Accessible, semantic presentation for the historical photo archive */
.travel-photo{
  margin:28px auto;
  text-align:center;
}
.travel-photo img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:0 auto;
  border-radius:10px;
}
.travel-photo figcaption{
  margin-top:9px;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.45;
}
.legacy-centered{text-align:center}
.legacy-justified{text-align:left}
.legacy-green{color:#087a18}
/* James's Game source listing: compact, readable and scrollable. */
.code-panel{
  margin:32px 0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f7f8f8;
  box-shadow:0 5px 18px rgba(35,48,58,.06);
}
.code-heading{
  margin:0;
  padding:14px 20px;
  color:#fff;
  background:var(--accent-dark);
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.2rem;
  line-height:1.3;
  letter-spacing:.04em;
  text-transform:uppercase;
}
pre.code-section{
  display:block;
  box-sizing:border-box;
  overflow:auto;
  max-width:100%;
  margin:0;
  padding:18px 22px;
  color:#24313a;
  background:#f7f8f8;
  font:13px/1.35 "Courier New",Courier,monospace;
  white-space:pre;
  tab-size:4;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
pre.code-section code{
  display:block;
  margin:0;
  padding:0;
  font:inherit;
  line-height:inherit;
  white-space:inherit;
}
@media(max-width:600px){
  pre.code-section{padding:14px 12px;font-size:12px;line-height:1.35}
}
.legacy-movie{
  margin:28px auto;
  text-align:center;
}
.legacy-movie video{
  display:block;
  width:min(75%,480px);
  height:auto;
  margin:0 auto;
  border-radius:12px;
  border:1px solid var(--line);
  background:#000;
}
