/* Pacific index template, from the 2014 to 2017 Squarespace site on pieterboekhoff.com.
   PT Serif + Source Sans Pro. Full-bleed photo chapters. Gapped white title frames.
   Square solid buttons. No ghost outlines, no service cards, no copper chrome. */

:root {
  --paper: #ffffff;
  --ink: #222222;
  --ink-soft: #444444;
  --muted: #6a6a6a;
  --rule: #dddddd;
  --footer: #171717;
  --overlay: rgba(0, 0, 0, 0.18);
  --serif: "PT Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans Pro", "Source Sans 3", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #000; }

/* Header: transparent over the first banner, then a white bar. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  color: #fff;
}

.site-header.is-solid {
  position: fixed;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}

.logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
}

.site-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-header nav a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a:hover { opacity: 0.65; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Right-side chapter dots, Pacific parallax nav. */
.index-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.index-nav a {
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.index-nav a.is-active { background: #fff; }

.index-nav a span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.index-nav a:hover span { opacity: 1; }

/* Full-bleed photo chapters. */
.banner {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  isolation: isolate;
}

.banner.two-thirds { min-height: 68vh; }

.banner.page-banner { min-height: 58vh; }

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 0;
}

.banner.cover-title::after {
  background: rgba(8, 8, 10, 0.72);
}

.banner > * { position: relative; z-index: 1; }

.banner-intro { background-image: url("img/intro.jpg"); background-position: center center; }
.banner-thought { background-image: url("img/thought.jpg"); }
.banner-news { background-image: url("img/news.jpg"); }
.banner-portfolio { background-image: url("img/portfolio.jpg"); }
.banner-now { background-image: url("img/blog.jpg"); }

/* Gapped white frame: the 2017 title treatment, rebuilt in CSS so titles can change. */
.frame {
  display: inline-block;
  padding: 32px 46px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(#fff, #fff) top left / 36% 1px no-repeat,
    linear-gradient(#fff, #fff) top right / 36% 1px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 36% 1px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 36% 1px no-repeat,
    linear-gradient(#fff, #fff) top left / 1px 34% no-repeat,
    linear-gradient(#fff, #fff) top right / 1px 34% no-repeat,
    linear-gradient(#fff, #fff) bottom left / 1px 34% no-repeat,
    linear-gradient(#fff, #fff) bottom right / 1px 34% no-repeat;
}

.frame p,
.frame h1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.frame .stack { display: grid; gap: 6px; }

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-down:hover { color: #fff; opacity: 0.7; }

.scroll-down::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 10px auto 0;
  background: #fff;
}

/* White content bands under each chapter image. */
.band {
  background: var(--paper);
  padding: 88px 8vw 96px;
}

.band-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.band-inner.left { text-align: left; }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 36px;
}

.titles {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 28px;
}

.band p {
  margin-bottom: 1.15em;
  color: var(--ink-soft);
}

.band p strong { color: var(--ink); font-weight: 700; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  width: min(100%, 520px);
  margin: 36px auto;
}

/* Square solid buttons. Not ghost, not rounded, not copper. */
.btn {
  display: inline-block;
  background: #222;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 8px 6px 0;
}

.btn:hover {
  background: #000;
  color: #fff;
}

.btn-row { margin-top: 28px; }

/* News: stacked editorial, not a card grid. */
.news-item {
  padding: 8px 0 56px;
}

.news-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.25;
  margin-bottom: 18px;
  text-transform: none;
}

.news-item img {
  width: min(100%, 420px);
  height: 280px;
  object-fit: cover;
  margin: 0 auto 24px;
}

.news-item p { text-align: left; }

/* Portfolio: image + caption. Not boxed service tiles. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}

.gallery figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery figcaption {
  padding-top: 12px;
  font-size: 15px;
}

.gallery figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--ink);
}

.gallery figcaption span { color: var(--muted); }

/* Inner pages. */
.page {
  padding: 48px 8vw 96px;
  max-width: 760px;
  margin: 0 auto;
}

.page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 24px;
}

.page p { margin-bottom: 1.1em; color: var(--ink-soft); }

.page img.portrait {
  width: min(100%, 320px);
  height: 380px;
  object-fit: cover;
  object-position: center 18%;
  margin: 0 0 32px;
}

.work-stack { list-style: none; margin-top: 12px; }
.work-stack li {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.work-stack h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

/* Footer. */
.site-footer {
  background: var(--footer);
  color: #cfcfcf;
  padding: 48px 8vw;
  font-size: 14px;
}

.site-footer a { color: #fff; }
.site-footer .foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
}

.credit { font-size: 12px; color: #8a8a8a; margin-top: 8px; }

/* Styleguide extras. */
.guide {
  padding: 72px 8vw;
  background: #f6f6f4;
  border-top: 1px solid var(--rule);
}

.guide h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.guide p { max-width: 720px; margin-bottom: 16px; color: var(--ink-soft); }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 32px; }
.swatch {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: end start;
  padding: 8px;
  font-size: 11px;
  color: #fff;
}
.swatch.light { color: #222; border: 1px solid #ddd; }

.frame-demo {
  margin-top: 28px;
  background: #111;
  padding: 72px 24px;
  display: grid;
  place-items: center;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.banner .frame { animation: rise 0.9s ease both; }

@media (max-width: 860px) {
  .site-header { padding: 14px 18px; }
  .logo img { height: 42px; }
  .menu-btn { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #111;
    color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 28px;
    gap: 16px;
  }
  .site-header.is-solid nav { background: #fff; color: var(--ink); }
  .site-header nav.open { display: flex; }
  .index-nav { display: none; }
  .banner,
  .banner.two-thirds { background-attachment: scroll; min-height: 70vh; }
  .banner.page-banner { min-height: 36vh; }
  .gallery { grid-template-columns: 1fr; }
  .frame { padding: 24px 22px; }
  .band { padding: 56px 6vw 64px; }
  .news-item p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner .frame { animation: none; }
}
