.studio { padding-block: clamp(32px, 5vw, 82px); }
.studio h1 { font-size: clamp(2.7rem, 5vw, 5.8rem); }
#studio-controls:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr auto;
  align-items: end;
  gap: 16px;
  border-block: 1px solid var(--color-border);
  padding-block: 20px;
  margin-block: 24px 36px;
}
#studio-controls label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
#studio-controls input { width: 100%; min-width: 0; min-height: 46px; }
.studio-tier { scroll-margin-top: 90px; border-top: 1px solid var(--color-border); margin-top: 42px; padding-top: 32px; }
.studio-brand-controls { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 10px 0 0; border: 0; }
.studio-brand-controls legend { font-weight: 700; padding: 0; }
.studio-brand-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 22px; }
.studio-brand-row label { max-width: 100%; min-width: 0; }
#studio-controls input[type=color] { width: 80px; padding: 4px; cursor: pointer; }
.studio-brand-controls p { margin: 8px 0 0; }
.studio-brand-controls p:empty { display: none; }
.brand-preview-logo:not([hidden]) { display: inline-block; width: auto; height: 34px; max-width: min(110px, 35%); object-fit: contain; vertical-align: middle; margin-right: .55em; }
.wordmark .brand-preview-logo:not([hidden]) { height: 46px; max-width: min(150px, 35vw); }
.studio-card.branded .concept-hero, .full-concept.branded { color: var(--read-ink); }
.studio-card.branded .concept-brand, .full-concept.branded .business-mast,
.full-concept.branded .business-visit, .full-concept.branded .concept-foot,
.full-concept.branded.theme-coffee .business-hero, .full-concept.branded.theme-classes .business-story {
  background: var(--ink); color: var(--on-brand);
}
.full-concept.branded .concept-link { color: var(--on-brand) !important; }
.full-concept.branded.theme-interiors .business-story, .full-concept.branded.theme-venues .business-story,
.full-concept.branded.theme-ceramics .business-collection { background: var(--paper); }
.studio-tier > h2 { margin-bottom: 8px; }
.studio-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.studio-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; border: 1px solid var(--color-border); border-radius: 9px; overflow: hidden; }
.studio-card:hover { border-color: var(--color-border-strong); }
.studio-caption, .demo-tools, .concept-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.studio-caption { padding: 14px; background: var(--color-surface); margin-top: auto; }
.studio-caption span { font-size: .78rem; color: var(--color-text-muted); }
.studio-card, .full-concept { --paper: #f4eedf; --ink: #263e30; overflow-wrap: anywhere; }
.theme-bakery, .theme-coffee { --paper: #faecd9; --ink: #682d21; }
.theme-atelier, .theme-classes { --paper: #f4e0bd; --ink: #333531; }
.theme-interiors, .theme-ceramics { --paper: #e9e5da; --ink: #46412e; }
.theme-florist { --paper: #f4dcd4; --ink: #713855; }
.theme-trails, .theme-journal { --paper: #e6ede8; --ink: #253c44; }
.theme-venues { --paper: #ede6f0; --ink: #482e46; }
.concept-hero, .full-concept { background: var(--paper); color: var(--ink); }
.concept-brand { padding: 12px 6%; font: bold 1.2rem/1.1 Georgia, serif; }
.concept-cover { position: relative; display: grid; align-items: center; min-height: 210px; }
.concept-cover img { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.concept-head { position: relative; padding: 6%; min-width: 0; }
.studio-location { font: 600 .73rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.concept-head :is(h1,h3) { font: normal clamp(1.8rem, 2.8vw, 3.6rem)/1 Georgia, serif; letter-spacing: -.045em; margin: 0; }
.landscape .concept-brand { background: var(--ink); color: var(--paper); }
.landscape .concept-cover { align-items: end; isolation: isolate; color: white; }
.landscape .concept-cover img, .landscape .concept-cover::after { position: absolute; inset: 0; z-index: -1; }
.landscape .concept-cover::after { content: ''; background: linear-gradient(0deg, #101d17ed, #101d1730); }
.arch .concept-brand { text-align: center; font-style: italic; border-bottom: 1px solid currentColor; margin-inline: 5%; }
.arch .concept-cover { grid-template-columns: 1.1fr 1fr; padding: 5%; gap: 4%; }
.arch .concept-cover img { grid-column: 2; grid-row: 1; border-radius: 48% 48% 3px 3px; max-height: 165px; }
.arch .concept-head { grid-column: 1; grid-row: 1; padding: 0; }
.arch .concept-head :is(h1,h3) { font-style: italic; }
.editorial .concept-cover { grid-template-columns: 43% 57%; }
.editorial .concept-brand { border-bottom: 2px solid currentColor; text-transform: uppercase; letter-spacing: .08em; font: 700 1rem/1.25 var(--font-mono); }
.editorial .concept-head :is(h1,h3) { font-family: var(--font); font-weight: 750; }
.editorial .concept-cover img { position: absolute; inset: 0; width: 43%; }
.editorial .concept-head { grid-column: 2; padding: 9%; }
.demo-tools { padding: 14px var(--gutter); font-size: .9rem; }
.demo-tools span { color: var(--color-text-muted); }
.full-concept { color-scheme: light; }
.full-concept a { color: inherit; }
.full-concept :focus-visible { outline-color: var(--ink); }
.full-concept .concept-brand { padding-block: 22px; font-size: clamp(1.2rem, 3vw, 2.5rem); }
.full-concept .concept-cover { min-height: clamp(340px, 52vw, 600px); }
.full-concept .concept-head :is(h1,h3) { font-size: clamp(2.6rem, 7vw, 7.5rem); max-width: 16ch; }
.full-concept.arch img { height: clamp(220px, 32vw, 430px); max-height: none; }
.concept-section, .guide-head { padding: clamp(32px, 6vw, 90px) 7%; }
.guide-head { border-bottom: 1px solid currentColor; }
.concept-section h2 { font: normal clamp(2rem, 4vw, 4rem)/1.1 Georgia, serif; }
.concept-intro { font-size: 1.16rem; }
.concept-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px; margin-top: 28px; }
.concept-item, .concept-editor { border-top: 1px solid currentColor; padding-top: 16px; }
.concept-item h3 { font-size: 1.4rem; }
.concept-foot { padding: 20px 7%; background: var(--ink); color: var(--paper); }
.concept-link { display: inline-block; background: var(--ink); color: var(--paper) !important; padding: 10px 16px; border: 0; border-radius: 4px; font: inherit; text-decoration: none; cursor: pointer; }
.concept-editor { margin-top: 28px; }
.concept-editor summary { cursor: pointer; font-weight: 700; }
.concept-editor p { margin-top: 12px; }
.concept-picker, .concept-editor label { font-weight: 650; }
.concept-picker select, .concept-editor input { display: block; margin: 6px 0 12px; max-width: 100%; background: white; color: #222; border: 1px solid var(--ink); }
@media (max-width: 960px) { .studio-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { #studio-controls:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .studio-gallery, #studio-controls:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  #studio-reset { justify-self: start; }
  .demo-tools span { order: 1; flex-basis: 100%; }
  .full-concept.arch .concept-cover { grid-template-columns: 1fr; }
  .full-concept.arch .concept-head, .full-concept.arch img { grid-column: 1; grid-row: auto; }
  .full-concept.arch img { border-radius: 90px 90px 3px 3px; }
}
