/* NewPlace v2. Centered column, one action color. Tokens stay in tokens.css. */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  color: var(--np-ink);
  background: var(--np-paper);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

h1, h2, h3 { color: var(--np-ink); text-wrap: balance; }

h2 { font: var(--fw-medium) var(--fs-h2) / 1.2 var(--font-head); }

h3 { font: var(--fw-medium) var(--fs-h3) / 1.3 var(--font-head); }

p, li { overflow-wrap: break-word; }

a { color: var(--np-ochre); text-underline-offset: 3px; }

a:hover { color: var(--np-ochre-hover); }

.np-btn,
.np-btn:hover { text-decoration: none; }

::selection { background: var(--np-sun); color: var(--np-ink); }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -4rem;
  z-index: 80;
  background: var(--np-paper);
  color: var(--np-ink);
  padding: 8px 16px;
  border-radius: var(--r-sm);
}

.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.col {
  width: min(640px, calc(100% - 40px));
  margin-inline: auto;
  text-align: center;
}

.section { padding-block: 80px; }

section[id],
article[id] { scroll-margin-top: 140px; }

.section--sand { background: var(--np-sand); }

.np-eyebrow { margin-bottom: 12px; }

.lede {
  margin-top: 20px;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--np-paper);
  border-bottom: 1px solid var(--np-line);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  padding-block: 14px;
}

.brand {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.brand img { height: 40px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 16px;
}

.site-nav a {
  color: var(--np-ink);
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font: var(--fw-medium) 1.05rem / 1 var(--font-head);
}

.site-nav a:hover { text-decoration: underline; color: var(--np-ink); }

.header-cta { min-height: 48px; }

/* Hero */

.hero-visual {
  width: min(720px, calc(100% - 40px));
  margin: 56px auto 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin-top: 28px;
}

.cta-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 52px;
  padding-inline: 4px;
  font: var(--fw-medium) 1.0625rem / 1.3 var(--font-head);
  white-space: nowrap;
}

.cta-note {
  margin-top: 12px;
  color: var(--np-stone);
  font: var(--fw-regular) var(--fs-small) / 1.5 var(--font-body);
}

/* Promises */

.promises,
.steps {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  display: grid;
  gap: 48px;
  width: min(640px, calc(100% - 40px));
}

.promise,
.step { text-align: center; }

.plate {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--np-paper);
}

.plate img { width: 76px; height: 76px; }

.promise h3,
.step h3 { margin-top: 4px; }

.promise p,
.step p { margin-top: 8px; }

.step-index {
  margin-bottom: 8px;
  color: var(--np-ochre);
  font: var(--fw-medium) var(--fs-eyebrow) / 1 var(--font-head);
}

.closing {
  width: min(640px, calc(100% - 40px));
  margin: 48px auto 0;
  text-align: center;
  font-size: var(--fs-body-l);
}

/* What we build */

.build-list {
  display: grid;
  gap: 80px;
  margin-top: 56px;
}

.service-art {
  width: min(420px, 100%);
  margin-inline: auto;
  background: var(--np-sand);
  border-radius: 28px;
  padding: 20px 16px 4px;
}

.service-art img { width: 100%; height: auto; }

.build-list h3 { margin-top: 24px; }

.build-list p { margin-top: 12px; }

/* About */

.portrait {
  width: min(380px, 100%);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 28px;
  margin: 36px auto 0;
  box-shadow: var(--sh-2);
  background: var(--np-sand);
}

.about .lede { margin-top: 28px; }

/* FAQ */

.faq .col { text-align: start; }

.faq h2 { text-align: center; }

.faq-list { margin-top: 36px; }

.faq-list details { border-bottom: 1px solid var(--np-line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
  font: var(--fw-medium) 1.2rem / 1.35 var(--font-head);
  color: var(--np-ink);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary > span:first-child { flex: 1; }

.chev {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform var(--dur-2) var(--ease);
}

details[open] .chev { transform: rotate(180deg); }

.faq-list details p {
  color: var(--np-stone);
  padding-bottom: 16px;
}

/* Final line */

.final .lede { margin-top: 16px; }

/* Footer */

.site-footer {
  background: var(--np-night);
  color: rgba(255, 255, 255, 0.86);
  padding-block: 80px;
  text-align: center;
}

.site-footer .col { text-align: center; }

.footer-logo {
  height: 52px;
  width: auto;
  margin-inline: auto;
}

.footer-tagline {
  margin-top: 20px;
  color: #fff;
  font-size: var(--fs-body-l);
}

.footer-place { margin-top: 16px; }

.site-footer h2 {
  color: #fff;
  margin-top: 40px;
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.7rem);
}

.footer-towns { margin-top: 12px; }

.site-footer a { color: #fff; }

.site-footer a:hover { color: var(--np-sun); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.legal-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

/* Legal pages */

.legal {
  padding-block: 80px 96px;
  text-align: start;
}

.legal h1 {
  font: var(--fw-medium) var(--fs-h1) / 1.15 var(--font-head);
  margin-bottom: 24px;
  text-align: center;
}

.legal p + p,
.legal li + li { margin-top: 16px; }

.legal .back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
}

@media (min-width: 800px) {
  .promises {
    width: min(960px, calc(100% - 48px));
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
  }
}

@media (min-width: 960px) {
  .section,
  .legal { padding-block: 144px; }

  .site-footer { padding-block: 120px; }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
    min-height: 88px;
    padding-block: 0;
  }

  .brand { flex-basis: auto; grid-column: 2; }

  .brand img { height: 44px; }

  .site-nav { grid-column: 1; justify-self: start; justify-content: flex-start; }

  .header-cta { grid-column: 3; justify-self: end; }

  .hero-visual { margin-top: 72px; }

  .build-list { gap: 112px; margin-top: 72px; }

  .steps {
    width: min(1040px, calc(100% - 48px));
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 64px;
  }

  .closing { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chev { transition: none; }
}
