/* User-supplied portrait, biography, studio plans and links; no account, model or Ark styles. */
@font-face {
  font-family: StudioAboutPoem;
  src: url('fonts/studio-about-poem.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.about-portrait { margin: 0; min-width: 0; }
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--s-line);
  border-radius: 13px;
}
.about-verse > span { display: block; }

html[data-site-theme] .about-feature {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(26px, 3.3vw, 52px);
  align-items: center;
  padding: 22px 26px;
}
html[data-site-theme] .about-poem { padding: 0; }
html[data-site-theme] .about-poem .section-kicker { margin: 0 0 14px; }
html[data-site-theme] .about-poem h2,
html[data-site-theme] .about-poem > p.about-verse {
  font: 400 clamp(23px, 1.85vw, 29px)/1.55 StudioAboutPoem, "KaiTi", "STKaiti", serif;
  letter-spacing: .06em;
  margin: 0;
}
html[data-site-theme] .about-poem h2 { color: var(--s-ink); }
html[data-site-theme] .about-poem > p.about-verse { color: var(--s-green-dark); }
html[data-site-theme] .about-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
html[data-site-theme] .teacher-profile { padding: 20px 22px; }
html[data-site-theme] .teacher-profile > .teacher-bio { font-size: 13px; line-height: 1.85; margin-bottom: 10px; }
html[data-site-theme] .teacher-profile > .teacher-belief {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--s-green-dark);
  border-left: 2px solid var(--s-green);
  padding-left: 12px;
  margin-bottom: 15px;
}
.teacher-timeline { list-style: none; padding: 0; margin: 0; }
.teacher-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 12px;
  margin-left: 4px;
  padding: 6px 0 6px 16px;
  border-left: 1px solid var(--s-line);
  font: 400 13px/1.6 var(--s-sans);
  color: var(--s-ink);
}
.teacher-timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--s-green);
  box-shadow: 0 0 0 3px var(--s-paper);
}
.timeline-period { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--s-muted); }
.about-purpose-group { padding: 16px 0; border-top: 1px solid var(--s-line); }
.about-purpose-group:last-child { padding-bottom: 0; }
.about-purpose-group h3 { margin: 0 0 9px; color: var(--s-green-dark); font: 600 14px/1.7 var(--s-sans); }
.about-purpose-list { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.about-purpose-list li { position: relative; padding-left: 13px; color: var(--s-muted); font: 400 13px/1.8 var(--s-sans); overflow-wrap: break-word; }
.about-purpose-list li::before { content: ""; position: absolute; top: 10px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--s-green); }
.about-connections { container: studio-connections / inline-size; }
.about-social-links, .about-feedback { margin: 0; }
.about-social-links > div, .about-feedback > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; gap: 6px; font-size: 13px; line-height: 1.8; }
.about-social-links dt, .about-feedback dt { color: var(--s-muted); }
.about-social-links dd, .about-feedback dd { min-width: 0; margin: 0; }
.about-connection-link { display: inline-block; padding: 6px 0; color: var(--s-green-dark); text-decoration: underline; text-decoration-color: var(--s-line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.about-connection-link:hover { color: var(--s-green); text-decoration-color: currentColor; }
.about-connection-link:focus-visible { outline: 2px solid var(--s-green); outline-offset: 3px; border-radius: 3px; }
.about-qr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; padding: 18px 0; border-block: 1px solid var(--s-line); }
.about-qr-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0; gap: 10px; }
.about-qr-card figcaption { color: var(--s-ink); font: 600 13px/1.7 var(--s-sans); }
.about-qr-frame { display: grid; place-items: center; box-sizing: border-box; width: min(100%, 185px); aspect-ratio: 1; padding: 6px; border-radius: 8px; background: #fff; }
.about-qr-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: none; transform: none; border-radius: 0; }
.about-qr-frame.about-qr-pending { border: 1px dashed var(--s-line); background: var(--t-soft); color: var(--s-muted); font-size: 11px; text-align: center; line-height: 1.8; }
.about-qr-card > p { margin: 0; color: var(--s-muted); font-size: 11px; line-height: 1.7; }
@container studio-connections (max-width: 280px) {
  .about-qr-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 1350px) and (min-width: 821px) {
  html[data-site-theme] .about-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html[data-site-theme] .about-card { padding: 18px; }
  html[data-site-theme] .about-card h2 { font-size: 17px; }
  .about-connection-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; }
  .about-social-links { grid-column: 1; }
  .about-feedback { grid-column: 1; border-top: 1px solid var(--s-line); padding-top: 10px; align-self: end; }
  .about-qr-list { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 0; border: 0; }
}
@media (max-width: 820px) {
  html[data-site-theme] .about-feature { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px; }
  html[data-site-theme] .about-poem h2,
  html[data-site-theme] .about-poem > p.about-verse { font-size: 22px; letter-spacing: .02em; }
  html[data-site-theme] .about-columns { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  html[data-site-theme] .about-feature { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px 18px; }
  .about-portrait { width: min(240px, 100%); justify-self: center; }
  html[data-site-theme] .about-poem { align-items: center; text-align: center; }
  html[data-site-theme] .about-poem h2,
  html[data-site-theme] .about-poem > p.about-verse { font-size: clamp(19px, 5.3vw, 23px); letter-spacing: .01em; }
  html[data-site-theme] .about-poem .section-kicker { font-size: 9px; letter-spacing: .12em; margin-bottom: 12px; }
  html[data-site-theme] .teacher-profile { padding: 20px 18px; }
  .teacher-timeline li { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
}
