/* Study — calm, thoughtful independent professional site.
   Restrained serif headings, humanist sans body, margin annotations, definition lists,
   and quiet, generous whitespace. Every selector is strictly scoped under .tpl-study.
   All colors derived purely from --ink, --paper, --accent, and --accent-ink. */

.tpl-study {
  --st-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --st-body: "Gill Sans", "Gill Sans MT", Optima, "Segoe UI", system-ui, -apple-system, sans-serif;
  --st-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  --st-rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --st-rule-light: color-mix(in srgb, var(--ink) 8%, transparent);
  --st-muted: color-mix(in srgb, var(--ink) 68%, transparent);
  --st-faint: color-mix(in srgb, var(--ink) 45%, transparent);
  --st-bg-subtle: color-mix(in srgb, var(--ink) 3%, var(--paper));
  --st-bg-card: color-mix(in srgb, var(--ink) 2%, var(--paper));

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.05rem/1.65 var(--st-body);
  letter-spacing: 0.01em;
  -webkit-text-size-adjust: 100%;
}

.tpl-study a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.tpl-study a:hover {
  text-decoration-color: var(--accent);
}

.tpl-study :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tpl-study h1,
.tpl-study h2,
.tpl-study h3 {
  font-family: var(--st-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

.tpl-study p {
  margin: 0;
}

.tpl-study figure {
  margin: 0;
  overflow: hidden;
}

.tpl-study figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpl-study .img-pending {
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--ink) 5%, var(--paper));
  border: 1px solid var(--st-rule);
  font-size: 0.8rem;
  color: var(--st-muted);
}

.tpl-study .img-pending figcaption {
  margin: 0;
}

/* Header — minimal: name left, single text link right */
.tpl-study .st-head {
  border-bottom: 1px solid var(--st-rule);
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
}

.tpl-study .st-head-inner {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.tpl-study .st-name {
  font-family: var(--st-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tpl-study .st-call-link {
  font-family: var(--st-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  color: var(--ink);
  white-space: nowrap;
}

.tpl-study .st-call-link:hover {
  color: var(--accent);
}

/* Main reading layout */
.tpl-study .st-main {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) 5rem;
}

.tpl-study .st-section {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.tpl-study .st-section-main {
  max-width: 38rem;
}

.tpl-study .st-main-col {
  max-width: 38rem;
}

.tpl-study .st-margin-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Two-column layout on desktop: ~38rem text column + margin column */
.tpl-study .st-row {
  display: grid;
  grid-template-columns: minmax(0, 38rem) minmax(13rem, 17rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* Intro block */
.tpl-study .st-eyebrow {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.75rem;
}

.tpl-study .st-title {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  max-width: 26ch;
}

.tpl-study .st-lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink) 90%, transparent);
}

/* Images in margin above fold */
.tpl-study .st-portrait {
  width: 100%;
  max-width: 15rem;
  border: 1px solid var(--st-rule);
}

.tpl-study .st-hero-reduced {
  width: 100%;
  max-height: 12rem;
  border: 1px solid var(--st-rule);
}

.tpl-study .st-hero-reduced img {
  max-height: 12rem;
  object-fit: cover;
}

/* Annotations: facts and hours in margin */
.tpl-study .st-annotation {
  font-size: 0.88rem;
  line-height: 1.5;
  border-left: 2px solid var(--st-rule);
  padding-left: 1rem;
}

.tpl-study .st-anno-heading {
  font-family: var(--st-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.65rem;
  border: 0;
  padding: 0;
}

.tpl-study .st-facts-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.tpl-study .st-fact-entry dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--st-faint);
}

.tpl-study .st-fact-entry dd {
  margin: 0.1rem 0 0;
  color: var(--ink);
}

.tpl-study .st-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.tpl-study .st-hours-table th,
.tpl-study .st-hours-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--st-rule-light);
  font-weight: 400;
  text-align: left;
}

.tpl-study .st-hours-table td {
  text-align: right;
  color: var(--st-muted);
}

/* Headings for standard sections */
.tpl-study .st-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--st-rule);
  margin-bottom: 1.5rem;
}

/* Offer: definition list with fixed-fee wording */
.tpl-study .st-offer-header {
  margin-bottom: 1.5rem;
}

.tpl-study .st-offer-intro {
  color: var(--st-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.tpl-study .st-offer-dl {
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.tpl-study .st-offer-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--st-rule-light);
}

.tpl-study .st-offer-term {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--st-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tpl-study .st-offer-name {
  color: var(--ink);
}

.tpl-study .st-offer-price {
  font-family: var(--st-body);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.tpl-study .st-fixed-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-right: 0.35rem;
}

.tpl-study .st-offer-detail {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--st-muted);
}

.tpl-study .st-offer-dur {
  font-family: var(--st-mono);
  font-size: 0.85rem;
  color: var(--ink);
}

.tpl-study .st-offer-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--st-muted);
}

/* People / Practitioner */
.tpl-study .st-people-list {
  display: grid;
  gap: 1.75rem;
}

.tpl-study .st-person-entry {
  display: grid;
  gap: 0.35rem;
}

.tpl-study .st-person-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.tpl-study .st-person-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.tpl-study .st-person-role {
  font-size: 0.88rem;
  color: var(--st-muted);
  letter-spacing: 0.02em;
}

.tpl-study .st-person-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--st-muted);
}

/* Steps: plain prose sequence with small step labels in the margin */
.tpl-study .st-steps-sequence {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.tpl-study .st-step-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
}

.tpl-study .st-step-label {
  font-family: var(--st-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-faint);
  text-align: right;
  padding-top: 0.15rem;
}

.tpl-study .st-step-prose {
  margin: 0;
}

.tpl-study .st-step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tpl-study .st-step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--st-muted);
}

/* Notes: scope and boundaries */
.tpl-study .st-notes-sub {
  color: var(--st-muted);
  margin: -1rem 0 1.5rem;
  font-size: 0.95rem;
}

.tpl-study .st-notes-list {
  display: grid;
  gap: 1.5rem;
}

.tpl-study .st-note-entry {
  padding-left: 1.25rem;
  border-left: 2px solid var(--st-rule);
}

.tpl-study .st-note-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tpl-study .st-note-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--st-muted);
}

/* Area served */
.tpl-study .st-area-text {
  color: var(--st-muted);
  margin-bottom: 1rem;
}

.tpl-study .st-area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tpl-study .st-area-list li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--st-rule);
  font-family: var(--st-mono);
  font-size: 0.85rem;
  background: var(--st-bg-subtle);
}

/* Gallery */
.tpl-study .st-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
}

.tpl-study .st-work-photo {
  width: 100%;
  border: 1px solid var(--st-rule);
}

/* Contact & Location */
.tpl-study .st-contact-body {
  display: grid;
  gap: 1.25rem;
}

.tpl-study .st-address,
.tpl-study .st-phone,
.tpl-study .st-email {
  font-size: 0.95rem;
  line-height: 1.5;
}

.tpl-study .st-address strong,
.tpl-study .st-phone strong,
.tpl-study .st-email strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-faint);
  margin-bottom: 0.2rem;
}

.tpl-study .st-contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.tpl-study .st-place-img {
  width: 100%;
  border: 1px solid var(--st-rule);
  margin-top: 0.5rem;
}

/* FAQ: quiet details elements */
.tpl-study .st-faq-list {
  border-top: 1px solid var(--st-rule);
}

.tpl-study .st-faq-item {
  border-bottom: 1px solid var(--st-rule);
  padding: 0.85rem 0;
}

.tpl-study .st-faq-summary {
  font-family: var(--st-serif);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}

.tpl-study .st-faq-summary::-webkit-details-marker {
  display: none;
}

.tpl-study .st-faq-summary::after {
  content: "+";
  font-family: var(--st-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--st-faint);
  flex-shrink: 0;
}

.tpl-study .st-faq-item[open] .st-faq-summary::after {
  content: "–";
}

.tpl-study .st-faq-answer {
  padding-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--st-muted);
}

/* Conversion form & "What to have ready" */
.tpl-study .st-ready-block {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--st-bg-subtle);
  margin-bottom: 2rem;
}

.tpl-study .st-ready-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.tpl-study .st-ready-lead strong {
  font-family: var(--st-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--st-muted);
}

.tpl-study .st-form {
  border: 1px solid var(--st-rule);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--st-bg-card);
  display: grid;
  gap: 1.25rem;
}

.tpl-study .st-form .form-title {
  font-family: var(--st-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  border: 0;
}

.tpl-study .st-form .form-intro {
  margin: -0.5rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--st-muted);
  line-height: 1.5;
}

.tpl-study .st-form .field {
  display: grid;
  gap: 0.35rem;
}

.tpl-study .st-form label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.tpl-study .st-form .optional {
  font-weight: 400;
  color: var(--st-faint);
  font-size: 0.8rem;
}

.tpl-study .st-form .hint {
  font-size: 0.82rem;
  color: var(--st-muted);
}

.tpl-study .st-form input,
.tpl-study .st-form select,
.tpl-study .st-form textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  min-height: 2.75rem;
  box-sizing: border-box;
}

.tpl-study .st-form button {
  font-family: var(--st-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.5rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  justify-self: start;
}

.tpl-study .st-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.tpl-study .st-form .demo-result {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  border-left: 3px solid var(--accent);
}

/* Footer */
.tpl-study .st-foot {
  border-top: 1px solid var(--st-rule);
  padding: 2rem clamp(1rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--st-muted);
}

.tpl-study .st-foot p {
  max-width: 62rem;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .tpl-study .st-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .tpl-study .st-step-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .tpl-study .st-step-label {
    text-align: left;
  }
  .tpl-study .st-offer-term {
    flex-direction: column;
    gap: 0.2rem;
  }
  .tpl-study .st-contact-channels {
    flex-direction: column;
    gap: 1rem;
  }
  .tpl-study .st-form button {
    width: 100%;
  }
}
