/* netjourneypebble.com — homepage */
:root {
  --paper: #F7F5EE;
  --white: #FFFFFF;
  --stone: #E5E4F1;
  --stone-2: #D3D2E8;
  --tile: #F3F3F7;
  --ink: #17173F;
  --muted: #4D4D6E;
  --lagoon: #2E2E90;
  --lagoon-deep: #1A1A6B;
  --clay: #B5841F;
  --char: #15153A;
  --on-dark: #F5F2E7;
  --line: #DAD8E8;
  --head: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1280px;
  --gutter: 24px;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-break: strict;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--ink);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Utility bar + header ---------- */
.utility {
  margin: 0;
  padding: 6px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
  background: var(--stone);
}

.masthead {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.masthead-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: 0 1 auto;
  min-width: 0;
}

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

.masthead-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mainnav {
  display: flex;
  gap: 26px;
}

.mainnav a {
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 6px 0;
}

.mainnav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.head-cta,
.btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--ink);
  border-radius: 2px;
  text-decoration: none;
}

.head-cta:hover,
.btn:hover {
  background: var(--lagoon);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
}

.hero-img {
  width: 100%;
  height: clamp(460px, 76vh, 720px);
  object-fit: cover;
  object-position: 55% 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 63, 0.3);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  z-index: 1;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  right: var(--gutter);
  bottom: clamp(36px, 7vh, 64px);
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.35;
}

.hero-caption p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.9;
}

.hero-caption .btn {
  margin-top: 26px;
  min-width: 180px;
}

.hero-caption .btn:hover {
  background: var(--lagoon-deep);
}

/* ---------- Section headings ---------- */
.items h2,
.steps h2,
.faq h2,
.closing h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.lede {
  margin-top: 16px;
  max-width: 34em;
  color: var(--muted);
}

/* ---------- Category tiles (4 x 2) ---------- */
.items {
  padding: clamp(72px, 9vw, 112px) 0 clamp(56px, 7vw, 88px);
}

.tile-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  background: var(--tile);
  padding: 28px 28px 20px;
  text-align: center;
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tile span {
  display: block;
  margin-top: 18px;
  font-family: var(--head);
  font-size: 17px;
  letter-spacing: 0.1em;
}

/* ---------- Two wide photo cards ---------- */
.stories {
  padding-bottom: clamp(72px, 9vw, 112px);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story h2 {
  margin-top: 22px;
  font-size: clamp(26px, 2.8vw, 36px);
}

.story p {
  margin-top: 10px;
  max-width: 30em;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 0;
  font-weight: 700;
  font-size: 15px;
  text-underline-offset: 6px;
}

.text-link:hover {
  color: var(--lagoon);
}

/* ---------- Steps ---------- */
.steps {
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.steps-photo {
  margin: 0;
}

.steps-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  object-fit: cover;
}

.step-list {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  max-width: 36em;
}

.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.step-list li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--head);
  font-size: 28px;
  line-height: 1.2;
  color: var(--lagoon);
}

.step-list h3 {
  font-size: 20px;
}

.step-list p {
  margin-top: 4px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 40px;
  align-items: start;
}

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

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

.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.8;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq-list details p {
  padding: 0 0 22px;
  max-width: 36em;
  color: var(--muted);
}

/* ---------- Closing ---------- */
.closing {
  background: var(--tile);
  padding: clamp(64px, 8vw, 96px) 0;
}

.closing-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.closing p {
  margin-top: 14px;
  max-width: 30em;
  color: var(--muted);
}

.closing .btn {
  margin-top: 26px;
}

.closing .note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
}

.closing-grid > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.foot-in {
  padding-top: 52px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.foot-brand {
  max-width: 360px;
}

.foot-brand img {
  width: auto;
  height: 28px;
}

.foot-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 48px;
  align-content: start;
}

.foot-nav a {
  font-size: 14px;
  text-decoration: none;
  padding: 2px 0;
}

.foot-nav a:hover {
  text-decoration: underline;
}

.foot-base {
  padding-top: 16px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .pc {
    display: none;
  }

  .mainnav {
    display: none;
  }

  .masthead-in {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .brand img {
    height: auto;
    width: min(190px, 46vw);
  }

  .head-cta {
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .hero-img {
    height: 78vh;
    max-height: 620px;
    min-height: 460px;
    object-position: 58% 50%;
  }

  .tile-grid {
    gap: 10px;
    margin-top: 28px;
  }

  .tile {
    padding: 14px 14px 12px;
  }

  .tile span {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .story-grid,
  .steps-grid,
  .faq-grid,
  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-grid {
    gap: 48px;
  }

  .steps-photo img {
    aspect-ratio: 16 / 10;
  }

  .faq-grid {
    gap: 20px;
  }

  .closing .btn {
    width: 100%;
  }

  .foot-in {
    flex-direction: column;
    gap: 28px;
  }

  .foot-nav {
    gap: 8px 28px;
  }
}

.nw {
  display: inline-block;
}

@media (max-width: 400px) {
  .utility {
    font-size: 12px;
  }
}

/* ---------- Homepage blog notes ---------- */
.notes {
  padding: clamp(64px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.notes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.notes-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.notes-all {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 6px;
}

.notes-all:hover {
  color: var(--lagoon);
}

.notes-row {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.notes-row li + li {
  border-left: 1px solid var(--line);
}

.notes-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  padding: 24px 24px 24px 0;
  text-decoration: none;
}

.notes-row li + li .notes-item {
  padding-left: 24px;
}

.notes-fig img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.notes-body {
  display: flex;
  flex-direction: column;
}

.notes-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--clay);
}

.notes-title {
  margin-top: 4px;
  font-family: var(--head);
  font-size: 17px;
  line-height: 1.6;
}

.notes-item:hover .notes-title {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.notes-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .notes-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-row li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .notes-item,
  .notes-row li + li .notes-item {
    padding: 20px 0;
  }
}

@media (max-width: 760px) {
  .notes-head {
    flex-direction: column;
    gap: 6px;
  }
}

/* ---------- Blog link stays visible on small screens ---------- */
@media (max-width: 760px) {
  .mainnav {
    display: flex;
  }

  .mainnav a:not(.nav-blog) {
    display: none;
  }

  .mainnav a {
    font-size: 14px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .masthead-right {
    gap: 14px;
  }

  .brand img {
    width: min(170px, 40vw);
  }
}
