/* voyagenetcanvas.com: subpages (about, contact, disclaimer, privacy, terms). Shared tokens, header and footer live in home.css */

/* Page hero: quiet title block on the paper ground */
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 0;
}

.page-hero-in {
  max-width: 760px;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--hair);
}

.crumbs {
  margin: 0 0 18px;
  font-size: .92rem;
  color: var(--ink-soft);
}

.crumbs a {
  color: var(--ink-soft);
}

.crumbs a:hover {
  color: var(--ink);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: .3em;
}

.page-lede {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  color: var(--ink-soft);
}

.updated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: .9rem;
  color: var(--ink-soft);
}

.updated .ico {
  width: 16px;
  height: 16px;
  color: var(--leaf);
}

/* Body layout */
.page-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.page-grid {
  display: grid;
  gap: 32px;
}

.prose {
  max-width: 720px;
  min-width: 0;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 1.8em 0 .5em;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  scroll-margin-top: 20px;
}

.prose > h2:first-child,
.prose > section:first-child h2 {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.4em 0 .4em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .45em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}

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

.prose a:hover {
  color: var(--green);
}

.lead-in {
  font-family: var(--f-body);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink) !important;
  margin-bottom: 1.2em;
}

/* Note box */
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 1.6em 0;
  padding: 18px 20px;
  background: var(--tint);
  border-left: 4px solid var(--orange);
  border-radius: 0 4px 4px 0;
}

.note .ico {
  width: 24px;
  height: 24px;
  color: var(--orange-deep);
  margin-top: 2px;
}

.note p {
  margin: 0;
  color: var(--ink);
}

/* Sticky contents list (legal pages) */
.toc {
  padding: 20px 22px;
  background: var(--tile);
  border-radius: 4px;
  border-top: 0;
}

.toc-title {
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 40px;
  padding: 8px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .97rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--hair);
}

.toc li:last-child a {
  border-bottom: 0;
}

.toc a::before {
  content: counter(toc, decimal);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--orange-deep);
}

.toc a:hover {
  color: var(--green);
}

@media (min-width: 980px) {
  .page-grid.has-toc {
    grid-template-columns: 260px minmax(0, 720px);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
  .toc {
    position: sticky;
    top: 24px;
  }
}

/* About: principle tiles */
.principles {
  display: grid;
  gap: 14px;
  margin: 1.4em 0 2em;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 20px 20px 18px !important;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 4px;
  margin: 0 !important;
}

.principles li::before {
  display: none;
}

.principles .ico {
  width: 28px;
  height: 28px;
  color: var(--leaf);
  margin-bottom: 10px;
}

.principles strong {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.principles span {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 700px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Contact */
.mail-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 6px;
  margin-bottom: 36px;
}

.mail-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.mail-card p {
  margin: 0;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  overflow-wrap: anywhere;
  transition: background-color .2s ease;
}

.mail-btn:hover {
  background: var(--orange-deep);
}

.mail-btn .ico {
  width: 20px;
  height: 20px;
}

@media (min-width: 760px) {
  .mail-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.topic-grid {
  display: grid;
  gap: 14px;
  margin: 0 0 2em;
}

.topic {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--tile);
  border-radius: 4px;
  overflow: hidden;
}

.topic .ico-bg {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 96px;
  height: 96px;
  fill: none;
  stroke: var(--leaf);
  stroke-width: 1;
  opacity: .14;
}

.topic .ico {
  width: 26px;
  height: 26px;
  color: var(--orange-deep);
  margin-bottom: 10px;
}

.topic h3 {
  margin: 0 0 6px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.05rem;
}

.topic p {
  position: relative;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 700px) {
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prose-wide {
  max-width: 980px;
}

.prose-wide > .prose-col {
  max-width: 720px;
}

@media (max-width: 520px) {
  .mail-btn {
    width: 100%;
    padding: 0 12px;
    gap: 8px;
    font-size: .95rem;
  }
  .prose h2 {
    margin-top: 1.5em;
  }
}

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

.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: 18px;
  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: 999px;
  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;
  }
}
