@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Variable.woff') format('woff');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f4ea;
  --white: #fffdf7;
  --forest: #173c2b;
  --deep: #102d22;
  --green-text: #3a5548;
  --wash: #e8ede3;
  --line: #d6ddd0;
  --amber: #f1c57c;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--forest); background: var(--paper); font: 500 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.8rem, 5.2vw, 4.9rem); line-height: .99; letter-spacing: -.025em; }
:focus-visible { outline: 3px solid #ad6927; outline-offset: 5px; }
.wrap { width: min(100% - 112px, 1248px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 5; top: .75rem; left: .75rem; background: var(--white); color: var(--deep); padding: .6rem 1rem; }
.header { background: var(--paper); position: relative; z-index: 2; }
.header-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: block; width: clamp(145px, 14vw, 186px); }
.brand img { width: 100%; height: auto; }
.navigation, .header-actions, .hero-actions { display: flex; align-items: center; }
.navigation { gap: clamp(1.25rem, 3vw, 3rem); }
.navigation a, .footer a { text-decoration: none; }
.navigation a { font-size: .9rem; font-weight: 800; white-space: nowrap; }
.navigation a:hover, .footer a:hover, .hero-secondary:hover { text-decoration: underline; text-underline-offset: .35em; }
.header-actions { justify-self: end; gap: .5rem; }
.your-trip, .menu { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; color: var(--forest); background: transparent; border: 1px solid #bac9ba; padding: .54rem .87rem; border-radius: 5px; font-size: .84rem; font-weight: 800; }
.your-trip:hover, .menu:hover { background: var(--wash); }
.count { background: var(--forest); color: var(--white); padding: 0 .35rem; min-width: 1.2rem; border-radius: 20px; font-size: .7rem; }
.menu { display: none; }
.save-icon { display: inline-block; width: 13px; height: 17px; background: currentColor; clip-path: polygon(0 0,100% 0,100% 100%,50% 74%,0 100%,0 0,15% 13%,15% 76%,50% 58%,85% 76%,85% 13%,15% 13%); }
[aria-pressed="true"] .save-icon { clip-path: polygon(0 0,100% 0,100% 100%,50% 74%,0 100%); }
.hero { position: relative; z-index: 0; isolation: isolate; display: grid; align-items: center; min-height: clamp(510px, 44vw, 640px); overflow: hidden; color: var(--white); background: #24463a; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 50% 55%; }
.hero::after { content: ''; background: linear-gradient(90deg, rgba(10,30,24,.87), rgba(10,30,24,.70) 27%, rgba(10,30,24,.24) 62%, transparent 91%), linear-gradient(0deg,rgba(10,28,23,.58),transparent 42%); }
.hero-content { padding-block: 74px 78px; }
.overline { display: flex; align-items: center; gap: .65rem; color: #f6dda9; font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.overline span { width: 28px; border-top: 1px solid currentColor; }
.hero h1 { margin: 1.25rem 0 1.35rem; font-size: clamp(5.4rem, 9.8vw, 9.8rem); line-height: .82; letter-spacing: -.035em; }
.hero h1 em, .feature h2 em { font-weight: 400; color: #f5d799; }
.hero-copy { max-width: 420px; color: #fff9eb; font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.55; }
.hero-actions { flex-wrap: wrap; gap: 1.35rem; margin-top: 1.6rem; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: .8rem; padding: .72rem 1rem; color: var(--deep); border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 800; font-size: .85rem; transition: background .18s ease; }
.button span, .hero-secondary span { font-size: 1.05em; }
.amber { background: var(--amber); }
.amber:hover { background: #ffdc9c; }
.hero-secondary { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 800; text-decoration: none; }
.hero-caption { position: absolute; right: max(26px, calc((100vw - 1248px) / 2)); bottom: 22px; font-size: .74rem; color: var(--white); }
.hero-caption span { margin-right: .3em; }
.section { padding-block: clamp(55px, 7vw, 94px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.55rem; margin-bottom: 1.6rem; }
.section-head p { color: var(--green-text); margin-top: .55rem; font-size: .98rem; }
.search { min-width: min(265px, 100%); min-height: 47px; display: flex; align-items: center; gap: .7rem; border: 1px solid #bdcbbc; border-radius: 4px; padding: .5rem .75rem; background: var(--white); color: var(--forest); }
.search:focus-within { outline: 2px solid var(--forest); outline-offset: 3px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .88rem; color: var(--deep); }
.search input::placeholder { color: #4e6558; opacity: 1; }
.search-icon { flex: 0 0 14px; width: 14px; height: 14px; border: 1.5px solid; border-radius: 50%; position: relative; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -4px; bottom: -2px; transform: rotate(45deg); }
.categories { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.45rem; }
.categories button { border: 1px solid #c2cfbf; border-radius: 100px; padding: .46rem .83rem; background: transparent; color: var(--forest); font-size: .81rem; font-weight: 800; }
.categories button:hover { background: var(--wash); }
.categories button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; scroll-margin-top: 1.5rem; }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); overflow: hidden; border-radius: 7px; display: flex; flex-direction: column; }
.card-image { position: relative; aspect-ratio: 1.57; overflow: hidden; background: var(--wash); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .36s ease; }
.card:hover .card-image img { transform: scale(1.045); }
.card-body { padding: 1rem 1.1rem 1.13rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; font: 800 .69rem/1.35 var(--sans); letter-spacing: .095em; text-transform: uppercase; color: #456656; }
.card-meta span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.card h3 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: .98; margin: .54rem 0 .4rem; }
.card-body > p:not(.card-meta) { color: var(--green-text); font-size: .88rem; max-width: 32ch; margin-bottom: .65rem; }
.card-body a { margin-top: auto; font-size: .8rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid #b0bfae; transition: border-color .18s; }
.card-body a:hover { border-color: var(--forest); }
.save { display: grid; place-items: center; position: absolute; right: .65rem; top: .65rem; width: 39px; height: 39px; background: var(--white); color: var(--forest); border: 0; border-radius: 50%; }
.save:hover, .save[aria-pressed="true"] { background: var(--amber); }
.outline { background: transparent; border-color: #abbcac; color: var(--forest); }
.outline:hover { background: var(--wash); }
#show-all, .empty { margin-top: 1.3rem; }
.feature { min-height: 480px; background: var(--deep); color: var(--white); display: grid; grid-template-columns: 1fr 1fr; }
.feature-image { position: relative; min-height: 100%; background: #293b31; }
.feature-image img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: center 55%; }
.feature-inner { padding: clamp(38px, 6.2vw, 95px); align-self: center; }
.feature h2 { font-size: clamp(4.2rem, 7.2vw, 7rem); line-height: .85; margin: 1rem 0; }
.feature-inner > p:not(.overline) { color: #f8f3e5; max-width: 395px; }
.feature .button { margin: 1.22rem 0 .9rem; }
.feature-note { font-size: .73rem; }
.trip-list { border-top: 1px solid #b7c7b8; }
.trip-list details { border-bottom: 1px solid #b7c7b8; }
.trip-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; cursor: pointer; list-style: none; }
.trip-list summary::-webkit-details-marker { display: none; }
.trip-list summary:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.trip-list summary strong { display: block; font: 400 clamp(1.85rem, 4vw, 2.8rem)/1 var(--serif); margin-top: .3rem; }
.plus { position: relative; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; border: 1px solid #a9bcae; border-radius: 50%; }
.plus::before, .plus::after { content: ''; width: 12px; height: 1px; background: var(--forest); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.plus::after { transform: translate(-50%,-50%) rotate(90deg); }
details[open] .plus::after { display: none; }
.itinerary-body { padding: 0 1.3rem 1.1rem; }
.itinerary-body ol { margin: 0; padding-left: 1.1rem; }
.itinerary-body li + li { margin-top: .38rem; }
.itinerary-body a { font-weight: 800; text-underline-offset: .18em; }
.footer { color: #fbf7e9; background: var(--deep); }
.footer-inner, .footer-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.footer-inner { border-bottom: 1px solid #537263; }
.footer-brand { font-weight: 800; font-size: 1.6rem; letter-spacing: -.06em; }
.footer-brand span { color: #f5d799; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .83rem; font-weight: 800; }
.footer-note { justify-content: flex-end; font-size: .77rem; }
dialog { color: var(--deep); background: var(--paper); border: 1px solid var(--line); padding: 1.2rem 1.35rem 1.35rem; width: min(100% - 2rem, 440px); max-height: min(85vh, 520px); border-radius: 7px; }
dialog::backdrop { background: #0a221ba8; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.dialog-head h2 { font-size: 3.15rem; }
.close, .remove { border: 1px solid #bac9ba; background: transparent; color: var(--forest); border-radius: 4px; padding: .22rem .53rem; }
.close { font-size: 1.25rem; }
.close:hover, .remove:hover { background: var(--wash); }
#saved-places { list-style: none; padding: 0; margin: 0; }
#saved-places li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--line); padding: .6rem 0; }
.remove { font-size: .76rem; }
.storage-note { font-size: .8rem; color: var(--green-text); margin-top: .9rem; }
@media (max-width: 960px) {
  .wrap { width: min(100% - 64px, 1248px); }
  .hero-caption { right: 32px; }
  .section-head { align-items: flex-start; }
  .search { min-width: min(220px, 100%); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 66px; grid-template-columns: 1fr auto; gap: .6rem; }
  .brand { width: 145px; }
  .menu { display: inline-flex; }
  .navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .35rem 17px .75rem; background: var(--paper); border-block: 1px solid var(--line); }
  .navigation.open { display: flex; }
  .navigation a { padding: .64rem .4rem; }
  .hero { min-height: 490px; }
  .hero-content { padding-block: 50px 65px; }
  .hero h1 { font-size: clamp(4.7rem, 13vw, 7.1rem); }
  .hero::after { background: linear-gradient(90deg,rgba(10,30,24,.85),rgba(10,30,24,.54) 62%,rgba(10,30,24,.16)),linear-gradient(0deg,rgba(10,28,23,.62),transparent 44%); }
  .hero-caption { bottom: 12px; right: 17px; font-size: .65rem; }
  .section-head { flex-direction: column; gap: .85rem; align-items: stretch; }
  .search { max-width: 420px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .card-body { padding: .8rem; }
  .feature { grid-template-columns: 1fr; }
  .feature-image { height: clamp(235px,55vw,360px); min-height: 0; }
  .feature-inner { padding: 37px 17px 43px; }
}
@media (max-width: 445px) {
  .cards { grid-template-columns: 1fr; }
  .card-image { aspect-ratio: 1.7; }
  .hero-actions { gap: .9rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* VisitingCT guides */
.home-guides + .trips { padding-top: 0; }
.itinerary-guide-link { margin-top: .8rem; }
.home-guides .section-head .button, .related-guides .section-head .button { flex-shrink: 0; align-self: flex-start; }
.guide-card-link { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.guide-card-link:focus-visible { outline-offset: -5px; }
.guide-card-link:hover h3 { text-decoration: underline; text-underline-offset: .13em; }
.guide-card .card-body > p:not(.card-meta) { max-width: 37ch; }
.guide-card-cta { margin-top: auto; padding-top: .1rem; font-size: .8rem; font-weight: 800; }
.guide-header { border-bottom: 1px solid var(--line); }
.guide-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.guide-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.7rem; }
.guide-navigation a, .guide-back { font-size: .86rem; font-weight: 800; text-decoration: none; }
.guide-navigation a:hover, .guide-navigation a[aria-current], .guide-back:hover { text-decoration: underline; text-underline-offset: .35em; }
.guide-index h1, .guide-article h1 { font-size: clamp(3.7rem, 7.7vw, 7.5rem); line-height: .91; letter-spacing: -.03em; }
.guide-index-intro { max-width: 780px; }
.guide-index-intro p, .guide-article-deck { color: var(--green-text); font-size: clamp(1rem, 1.7vw, 1.26rem); margin-top: 1rem; max-width: 60ch; }
.guide-lead { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; margin: 2.1rem 0 1.15rem; overflow: hidden; border-radius: 7px; background: var(--deep); color: var(--white); }
.guide-lead-image img { object-fit: cover; height: 100%; width: 100%; }
.guide-lead-body { align-self: center; padding: clamp(1.6rem, 4vw, 4rem); }
.guide-lead-body .card-meta { color: #f5d799; }
.guide-lead-body h2 { margin: .5rem 0 .75rem; }
.guide-lead-body .button { margin-top: 1.15rem; }
.guide-index-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.guide-index-cards .card-image { aspect-ratio: 2; }
.guide-article { padding-top: clamp(2.7rem, 5.3vw, 5.2rem); }
.guide-article-header { max-width: 840px; }
.guide-article-header .guide-back { display: block; width: fit-content; margin-bottom: 1.4rem; }
.guide-article-header h1 { margin-top: .45rem; }
.guide-article-image { margin-block: 2rem; overflow: hidden; border-radius: 7px; aspect-ratio: 2.3; background: var(--wash); }
.guide-article-image img { width: 100%; height: 100%; object-fit: cover; }
.guide-prose { max-width: 710px; margin-inline: auto; color: var(--green-text); font-size: 1.03rem; }
.guide-prose p + p { margin-top: .8rem; }
.guide-prose h2 { color: var(--forest); font-size: clamp(1.95rem, 4vw, 3.05rem); margin: 1.65rem 0 .5rem; }
.guide-prose a { color: var(--forest); font-weight: 800; text-underline-offset: .23em; }
.guide-disclosure { font-size: .83rem; }
.guide-tip { margin-top: 1.8rem; padding: 1rem 1.18rem; background: var(--wash); border-left: 4px solid var(--forest); }
.guide-tip p { margin-top: .24rem; }
.ranked-places { padding-left: 1.55rem; }
.ranked-places > li { padding-left: .36rem; margin-top: 1.6rem; }
.ranked-places > li::marker { font-family: var(--sans); color: var(--forest); font-weight: 800; }
.ranked-places h2 { margin-top: 0; }
.ranked-places > li > a { display: inline-block; margin-top: .4rem; }
.related-guides .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.related-guides .card-image { aspect-ratio: 2.2; }
@media (max-width: 900px) {
  .header .navigation { gap: 1.25rem; }
}
@media (max-width: 720px) {
  .header .navigation { gap: 0; }
  .guide-header-inner { min-height: 66px; }
  .guide-lead { grid-template-columns: 1fr; }
  .guide-lead-image { max-height: 300px; }
  .guide-article-image { aspect-ratio: 1.6; }
}
@media (max-width: 445px) {
  .guide-header-inner { flex-wrap: wrap; padding-block: .7rem .6rem; gap: .4rem 1rem; }
  .guide-navigation { gap: .9rem; }
  .guide-navigation a { font-size: .77rem; }
  .guide-index-cards, .related-guides .cards { grid-template-columns: 1fr; }
  .guide-prose { font-size: .98rem; }
}

/* Connecticut history and visitor highlights */
.why-visit, .history-chronology { background: var(--wash); }
.why-visit .section-head p { max-width: 61ch; }
.why-visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3.8vw, 3.6rem); }
.why-visit-grid article { border-top: 1px solid #a3b7a6; padding-top: .95rem; }
.why-visit-grid h3, .history-stop-grid h3 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1; }
.why-visit-grid p, .history-stop-grid p:not(.card-meta) { margin: .6rem 0 .78rem; color: var(--green-text); }
.why-visit-grid a, .history-stop-grid a, .history-timeline a { font-size: .86rem; font-weight: 800; text-underline-offset: .22em; }
.history-intro { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .75fr); align-items: end; gap: clamp(1.5rem, 5.7vw, 5.5rem); padding-block: clamp(54px, 8.5vw, 114px); }
.history-title h1 { font-size: clamp(4.1rem, 7.9vw, 8rem); line-height: .86; letter-spacing: -.032em; margin-block: .7rem 1rem; }
.history-title h1 em { color: #5c7257; }
.history-title > p:last-child { color: var(--green-text); max-width: 58ch; font-size: clamp(1rem, 1.7vw, 1.24rem); }
.history-menu { background: var(--deep); color: var(--white); padding: clamp(1.2rem, 3vw, 2.15rem); border-radius: 6px; }
.history-menu h2 { font-size: 2.65rem; color: #f5d799; margin-bottom: .6rem; }
.history-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-top: 1px solid #698677; text-decoration: none; font-weight: 800; font-size: .88rem; }
.history-menu a:hover { text-decoration: underline; text-underline-offset: .25em; }
.history-menu a:last-child { padding-bottom: 0; }
.history-timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid #a3b7a6; }
.history-timeline > li { display: grid; grid-template-columns: minmax(140px, .32fr) minmax(0, 1fr); gap: 1.3rem; padding-block: 1.5rem; border-bottom: 1px solid #a3b7a6; }
.history-timeline > li > p { align-self: start; padding-top: .45rem; }
.history-timeline h3 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; margin-bottom: .45rem; }
.history-timeline div > p { max-width: 66ch; color: var(--green-text); }
.history-timeline a { display: inline-block; margin: .5rem .85rem 0 0; }
.history-stop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.history-stop-grid article { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; }
.history-stop-grid h3 { margin-top: .5rem; }
.history-stop-grid a { margin-top: auto; }
@media (min-width: 721px) and (max-width: 980px) {
  .header-inner { gap: .85rem; }
  .header .navigation { gap: .85rem; }
  .navigation a { font-size: .83rem; }
}
@media (max-width: 720px) {
  .history-intro { grid-template-columns: 1fr; }
  .history-menu { max-width: 540px; }
  .why-visit-grid, .history-stop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .why-visit-grid, .history-stop-grid, .history-timeline > li { grid-template-columns: 1fr; }
  .history-timeline > li { gap: .48rem; padding-block: 1.15rem; }
  .history-timeline > li > p { padding-top: 0; }
  .history-title h1 { font-size: clamp(3.55rem, 14vw, 4.5rem); }
}
