/* Where2NextCR site starter: page layout. Components live in components.css, colours and scales in tokens.css. */
@font-face { font-family: 'Fraunces'; src: url(../fonts/Fraunces-Variable.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(../fonts/Fraunces-Italic-Variable.woff2) format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url(../fonts/Outfit-Variable.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 28px; background: var(--surface); color: var(--ink); }
img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 96px; }
.section { padding: 96px 0; }
.section-tint { background: var(--surface-tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-head p.lede { max-width: 420px; margin: 0; color: var(--ink-muted); }
.eyebrow { margin: 0 0 16px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.display-xl { margin: 0; font-family: var(--font-display); font-size: 64px; line-height: 68px; font-weight: 350; letter-spacing: -.01em; }
.display-l { margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 54px; font-weight: 350; letter-spacing: -.01em; }
.heading { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 400; }
.subheading { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 400; }
.body-l { font-size: 19px; line-height: 30px; font-weight: 300; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.w2n-card { max-width: none; height: 100%; }

/* header additions */
.w2n-header { position: sticky; top: 0; z-index: 10; }
.menu { display: none; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface-raised); border-bottom: 1px solid var(--line); padding: 8px 16px 24px; display: flex; flex-direction: column; }
.menu-panel a { padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* hero */
.hero { background: var(--surface-deep); color: var(--on-deep); }
.hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero .eyebrow { color: var(--on-deep-muted); margin-bottom: 24px; }
.hero .body-l { margin: 24px 0 0; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .tagline { margin: 40px 0 0; font-size: 14px; line-height: 22px; color: var(--on-deep-muted); }

/* image slots: replace the placeholder with <img class="photo"> */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.photo-slot { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-tint); display: flex; align-items: flex-end; padding: 32px; min-height: 520px; }
.hero .photo-slot { background: #1c4446; }
.photo-slot p { position: relative; margin: 0; font-size: 14px; color: var(--ink-muted); }
.hero .photo-slot p { color: var(--mint); }
.feathers i { position: absolute; right: -40px; height: 22px; border-radius: 999px; transform: rotate(-38deg); transform-origin: right center; }
.feathers i:nth-child(1) { top: 60px; width: 380px; background: #98d7c6; }
.feathers i:nth-child(2) { top: 100px; width: 300px; background: #2f7a74; }
.feathers i:nth-child(3) { top: 140px; width: 220px; background: #eab147; }
.feathers i:nth-child(4) { top: 180px; width: 140px; background: #b33d48; }

/* steps */
.step { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
.step .num { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 300; color: var(--teal); }
.step h3 { margin: 24px 0 8px; }
.step p { margin: 0; color: var(--ink-muted); }

/* newsletter */
.newsletter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.newsletter form { display: flex; gap: 12px; align-items: flex-end; }
.newsletter .w2n-field { flex: 1; max-width: none; }

/* town page */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-muted); margin-bottom: 24px; }
.town-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 32px 24px; display: flex; flex-direction: column; gap: 8px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; }
.facts .eyebrow { margin: 0; }
.facts strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 32px; }
.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.article .prose { grid-column: span 7; }
.article .prose h2 { margin: 40px 0 16px; }
.article .prose h2:first-child { margin-top: 0; }
.article aside { grid-column: 9 / span 4; align-self: start; position: sticky; top: 96px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.article aside p { margin: 0; }

/* footer */
.site-footer { background: var(--surface-deep); color: var(--on-deep); padding: 80px 0 48px; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { color: var(--on-deep-muted); }
.foot-top { display: flex; justify-content: space-between; gap: 64px; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 96px; }
.foot-cols div { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-cols span { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-deep-muted); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(243,237,227,.2); font-size: 14px; color: var(--on-deep-muted); }

/* tablet */
@media (max-width: 1100px) {
  .wrap { padding: 0 48px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
/* phone */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .display-xl { font-size: 42px; line-height: 46px; }
  .display-l { font-size: 32px; line-height: 38px; }
  .hero .wrap, .newsletter, .town-intro { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  .hero .actions { flex-direction: column; }
  .photo-slot { min-height: 260px !important; padding: 16px; }
  .feathers i { height: 14px; right: -30px; }
  .feathers i:nth-child(1) { top: 24px; width: 200px; }
  .feathers i:nth-child(2) { top: 50px; width: 150px; }
  .feathers i:nth-child(3) { top: 76px; width: 100px; }
  .feathers i:nth-child(4) { top: 102px; width: 60px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .newsletter form { flex-direction: column; align-items: stretch; }
  .menu { display: block; }
  .w2n-header > .w2n-btn { display: none; }
  .w2n-cta { padding: 48px 24px; }
  .w2n-cta-title { font-size: 34px; line-height: 40px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .article .prose, .article aside { grid-column: 1 / -1; position: static; }
  .foot-cols { gap: 48px; }
}
