/* netjourneypebble.com — subpages */
: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);
}

/* ---------- Page hero ---------- */
.page-hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}

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

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.page-hero p {
  margin: 12px 0 0;
  max-width: 34em;
  color: var(--muted);
}

.page-hero .updated {
  margin-top: 16px;
  font-size: 13px;
}

/* ---------- Reading column ---------- */
.single {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
}

.legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px var(--gutter) 88px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px 20px;
  background: var(--tile);
}

.toc-title {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  font-size: 15px;
  line-height: 1.7;
}

.toc li + li {
  margin-top: 8px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  color: var(--lagoon);
  text-decoration: underline;
}

.prose {
  max-width: 38em;
}

.prose section {
  scroll-margin-top: 20px;
}

.prose section + section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

.single .prose h2:not(:first-child) {
  margin-top: 48px;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--lagoon);
  text-underline-offset: 3px;
}

/* ---------- 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);
}

/* ---------- Contact form ---------- */
:root {
  --cf-accent: var(--ink);
  --cf-on: #FFFFFF;
}

/* ---------- Contact form ---------- */
.cform {
  color: var(--ink);
  padding: 0 var(--gutter, 20px);
  margin: clamp(40px, 6vw, 72px) 0 88px;
}

.cform-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-top: 4px solid var(--cf-accent);
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.cform-inner h2 {
  margin: 0 0 8px;
}

.cform-intro {
  margin: 0 0 24px;
  opacity: 0.85;
}

.cform-form {
  display: grid;
  gap: 18px;
}

.cform-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cform-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 10px;
}

.cform textarea {
  resize: vertical;
  min-height: 150px;
}

.cform option {
  color: #111111;
  background: #FFFFFF;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus,
.cform-btn:focus-visible {
  outline: 3px solid var(--cf-accent);
  outline-offset: 2px;
}

.cform-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.cform-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cf-accent);
}

.cform-consent a {
  color: inherit;
  text-decoration: underline;
}

.cform-btn {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  color: var(--cf-on);
  background: var(--cf-accent);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.cform-btn:hover {
  filter: brightness(1.08);
}

.cform-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform-status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.cform-status:target {
  display: block;
}

.cform-ok {
  background: color-mix(in srgb, var(--cf-accent) 18%, transparent);
  border: 1px solid var(--cf-accent);
}

.cform-err {
  background: color-mix(in srgb, #C0392B 14%, transparent);
  border: 1px solid #C0392B;
}

@media (min-width: 720px) {
  .cform-form {
    grid-template-columns: 1fr 1fr;
  }

  .cform-wide,
  .cform-btn {
    grid-column: 1 / -1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }
}

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

  .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;
  }

  .cform-btn {
    width: 100%;
  }

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

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

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