/* canvasrecipemarket.com — subpage styles (about, contact, legal). Tokens come from home.css */

/* Page hero: dark teal band with a portrait strip fading in from the right */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(36px, 6vw, 72px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  color: var(--cream-dim);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--terra); }
.page-hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.06;
  max-width: 16ch;
  margin-bottom: 18px;
}
.page-lede {
  max-width: 56ch;
  font-size: 1.1875rem;
  color: var(--cream-dim);
  margin-bottom: 22px;
}
.page-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--magenta) 0 50%, var(--terra) 50% 100%);
}
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9375rem;
  color: var(--cream);
  background: var(--panel);
}
.page-meta .ico { width: 18px; height: 18px; color: var(--gold); }
.page-strip {
  display: none;
}
@media (min-width: 900px) {
  .page-strip {
    position: absolute;
    top: -40px;
    right: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
    bottom: -40px;
    display: grid;
    grid-template-columns: repeat(3, 150px);
    gap: 12px;
    opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0, #000 45%);
  }
  .page-strip img {
    width: 150px;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  .page-strip img:nth-child(2) { transform: translateY(36px); }
  .page-strip img:nth-child(3) { transform: translateY(-24px); }
}

/* Body layout: sticky contents rail + readable column */
.page-body {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 100px);
  background: var(--black);
}
.page-grid {
  display: grid;
  gap: 32px;
}
.toc {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.toc h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--gold);
  margin-bottom: 8px;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.3;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  width: 26px;
  font-family: var(--serif);
  font-size: .875rem;
  color: var(--terra);
}
.toc a:hover { color: var(--cream); }
@media (min-width: 1000px) {
  .page-grid.has-toc {
    grid-template-columns: 250px minmax(0, 740px);
    justify-content: center;
    gap: 64px;
    align-items: start;
  }
  .toc { position: sticky; top: 24px; }
}
.page-grid.no-toc { max-width: 740px; margin: 0 auto; }

/* Prose */
.prose {
  min-width: 0;
  color: var(--cream-dim);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose > section { scroll-margin-top: 24px; }
.prose > section + section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--cream-faint);
}
.prose h2 {
  font-size: var(--step-2);
  color: var(--cream);
  margin-bottom: 14px;
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--cream);
  margin: 22px 0 8px;
}
.prose ul.list {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.prose ul.list li {
  position: relative;
  padding-left: 26px;
}
.prose ul.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--magenta);
  transform: rotate(45deg);
}
.prose strong { color: var(--cream); }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--cream); }
.note {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--terra);
  border-radius: 0 10px 10px 0;
  background: var(--olive);
  color: var(--cream);
}
.note p:last-child { margin-bottom: 0; }

/* About: three pillars */
.pillars {
  display: grid;
  gap: 14px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}
.pillars li {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 22px 70px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--cream-faint);
}
.pillars .ico {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 30px;
  height: 30px;
  color: var(--magenta);
}
.pillars strong { display: block; font-size: 1.125rem; margin-bottom: 4px; }
@media (min-width: 720px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li:first-child { grid-column: 1 / -1; }
}

/* Contact cards */
.contact-main {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 18px;
  background: var(--cream);
  color: var(--teal);
}
.contact-main h2 { color: var(--teal); font-size: var(--step-2); margin: 0; }
.contact-main p { margin: 0; color: var(--teal); }
.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  max-width: 100%;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s ease;
}
.prose .mail-link,
.prose .mail-link:hover { color: #fff; }
.mail-link:hover { background: var(--ember-deep); }
.mail-link .ico { width: 20px; height: 20px; }
.topic-grid {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.topic-grid li {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border-top: 3px solid var(--terra);
}
.topic-grid .ico { width: 26px; height: 26px; color: var(--gold); margin-bottom: 10px; }
.topic-grid h3 { margin: 0 0 6px; }
.topic-grid p { margin: 0; font-size: 1rem; }
@media (min-width: 720px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) {
  .mail-link {
    justify-self: stretch;
    justify-content: center;
    padding: 12px 16px;
    font-size: .875rem;
    overflow-wrap: normal;
    word-break: break-all;
  }
}

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