/* cloudrecipeslot.com - subpage styles (shares tokens, header and footer from home.css) */

main > section.page-hero {
  padding: 0;
}

/* Page hero: ruled notebook page with a plum margin line */
.page-hero {
  position: relative;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 0 calc(var(--gutter) + 18px), var(--margin) calc(var(--gutter) + 18px) calc(var(--gutter) + 19px), transparent calc(var(--gutter) + 19px)),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
  border-bottom: 1px solid rgba(42, 30, 36, 0.1);
}

.page-hero .wrap {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 0.35em;
}

.page-hero .lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
}

.page-hero .updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 4px 12px;
  background: var(--cobalt-soft);
  border-radius: 14px;
  color: var(--cobalt-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-hero .updated .ico {
  width: 16px;
  height: 16px;
}

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

main > section.page-body .wrap::before {
  display: none;
}


.page-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  justify-content: center;
  gap: 56px;
  align-items: start;
}

.page-single {
  max-width: 720px;
  margin: 0 auto;
}

/* Sticky contents list styled as an index card */
.toc {
  position: sticky;
  top: 24px;
  padding: 18px 18px 14px;
  background: var(--card);
  border-top: 6px solid var(--cobalt);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.toc-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.toc li {
  counter-increment: toc;
  border-top: 1px dashed rgba(42, 30, 36, 0.14);
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  min-height: 40px;
  align-items: center;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--plum);
}

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

/* Prose */
.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  font-weight: 600;
  margin: 1.8em 0 0.5em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-soft);
  scroll-margin-top: 20px;
}

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

.prose h3 {
  font-size: 1.2rem;
  margin: 1.4em 0 0.4em;
}

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

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

.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 2px;
}

.prose a {
  color: var(--cobalt);
  font-weight: 600;
}

.note-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--plum-soft);
  border-left: 5px solid var(--plum);
  border-radius: 0 6px 6px 0;
}

.note-card .ico {
  margin-top: 3px;
  color: var(--plum);
}

.note-card p {
  margin: 0;
}

/* About: principle cards */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 1.4em 0 2em;
  padding: 0;
  list-style: none;
}

.principles li {
  position: relative;
  margin: 0;
  padding: 20px 20px 18px;
  background: var(--card);
  border: 1px solid rgba(42, 30, 36, 0.1);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.prose .principles li {
  padding-left: 20px;
}

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

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

.principles li:nth-child(2) .ico {
  color: var(--cobalt);
}

.principles li:nth-child(3) .ico {
  color: var(--plum);
}

.principles strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.principles span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact */
.mail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: center;
  margin: 0 0 40px;
  padding: 26px 28px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--green-dark);
}

.mail-card .mail-ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card);
  color: var(--green);
}

.mail-card .mail-ico .ico {
  width: 28px;
  height: 28px;
}

.mail-card p {
  margin: 0;
  color: #fff;
}

.mail-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.prose .topic-cards li {
  margin: 0;
  padding: 20px 18px;
  background: var(--card);
  border-top: 5px solid var(--cobalt);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.prose .topic-cards li:nth-child(2) {
  border-top-color: var(--green);
}

.prose .topic-cards li:nth-child(3) {
  border-top-color: var(--plum);
}

.prose .topic-cards li::before {
  display: none;
}

.topic-cards .ico {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  color: var(--ink);
}

.topic-cards strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.topic-cards span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-hero-inner {
    padding-left: 22px;
  }

  .toc ol,
  .principles {
    grid-template-columns: 1fr;
  }

  .mail-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

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