/* Shared type scale for the active boutique and management screens.
   Load last. Brand artwork and the original homepage wordmark keep their identity. */
@font-face {
  font-family: Noto;
  src: url('/assets/fonts/NotoSans-Regular.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: "Capullo Serif";
  src: url('/assets/fonts/NotoSerif-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --type-sans: Noto, Arial, sans-serif;
  --type-serif: "Capullo Serif", Georgia, serif;
  --type-body: 1rem;
  --type-small: .875rem;
  --type-caption: .75rem;
  --type-lead: 1.125rem;
  --type-card: 1.25rem;
  --type-panel: 1.5rem;
  --type-section: 2rem;
  --type-page: 3rem;
  --type-workspace: 2.25rem;
  --type-price: 1.25rem;
  --type-total: 1.75rem;
  --type-metric: 2.25rem;
  --leading-body: 1.65;
  --leading-heading: 1.3;
  --leading-control: 1.5;
}
html { font-size: 100%; }
body.type-system {
  font-family: var(--type-sans);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}
.type-system :is(button, input, select, textarea) { font-family: var(--type-sans); }
.type-system :is(h1, h2, h3) { font-family: var(--type-serif); font-weight: 400; line-height: var(--leading-heading); }
.type-system h2 { font-size: var(--type-section); letter-spacing: -.7px; }
.type-system h3 { font-size: var(--type-panel); letter-spacing: -.35px; }
.type-system p { line-height: var(--leading-body); }

/* Page headings share one scale. The large original home wordmark is intentional. */
.type-system :is(.directory-intro, .season-hero, .journal-intro, .contact-page-hero, .visual-heading) h1 {
  font-family: var(--type-serif); font-size: var(--type-page); line-height: 1.2; letter-spacing: -1.2px;
}
.type-system .simple-hero h1 { font-family: Arial, Helvetica, sans-serif; line-height: 1.1; }
.type-system :is(.directory-intro, .season-hero, .journal-intro, .contact-page-hero) > p,
.type-system .contact-page-hero .wrap > p { font-size: var(--type-lead); }
.type-system .season-hero-copy > p { font-size: var(--type-lead); }
.type-system .simple-hero p { line-height: 1.6; }
.type-system :is(.simple-section-head, .directory-section, .season-heading, .season-materials, .season-closing, .contact-form-intro, .journal-article) h2 {
  font-size: var(--type-section); line-height: var(--leading-heading); letter-spacing: -.7px;
}
.type-system .season-feature h2 { font-size: var(--type-page); line-height: 1.2; }
.type-system .contact-picture h2 { font-family: var(--type-serif); font-size: var(--type-section); letter-spacing: -.7px; }
.type-system :is(.dalia-invitation h2, .idea-summary h2, .idea-stage form > h2) { font-size: var(--type-panel); }
.type-system :is(.contact-success h2, .idea-success h2, .empty-state h3) { font-size: var(--type-section); }

/* Continuous reading: descriptions and paragraph text. */
.type-system :is(.simple-section-head p, .directory-section > p, .season-feature p, .season-heading > p,
  .season-materials p, .season-closing > p, .season-care p, .contact-form-intro p, .contact-success p,
  .dalia-invitation p, .visual-heading p, .visual-preview p, .idea-summary p, .idea-stage form > p,
  .idea-success p, .journal-article p, .empty-state p, .detail-copy > p, .detail-facts p,
  .product-components, .season-detail-description, .season-detail-facts p, .checkout-lead,
  .checkout-product p, .dalia-success p, .info-dialog p, .info-dialog ul) {
  font-size: var(--type-body); line-height: var(--leading-body);
}
.type-system .journal-article .quote { font-size: var(--type-card); font-family: var(--type-serif); }
.type-system .detail-copy .detail-meaning { font-size: var(--type-body); }
.type-system .contact-picture p { font-size: var(--type-body); }

/* Navigation, buttons and form controls stay readable on every viewport. */
.type-system :is(.simple-header nav a, .journal-header nav a, .directory-link,
  .button, .text-link, .card-detail, .season-card-link, .season-filters button,
  .contact-form-bottom > a, .contact-success .text-link, .back-to-shop,
  .simple-help summary, .season-care summary, .season-detail-facts summary,
  .choice, .visual-controls legend) {
  font-family: var(--type-sans); font-size: var(--type-body); line-height: var(--leading-control);
}
.type-system :is(.button, .btn, .card-detail, .season-card-link, .season-filters button) { min-height: 46px; }
.type-system :is(.field, .contact-form label, .checkline, .editor-occasions legend) { font-size: var(--type-small); line-height: var(--leading-control); }
.type-system :is(.field input, .field select, .field textarea, .contact-form input,
  .contact-form select, .contact-form textarea, .simple-filters input, .simple-filters select,
  .idea-stage input, .idea-stage select, .idea-stage textarea) {
  font-size: var(--type-body); line-height: var(--leading-control);
}
.type-system :is(.form-error, .contact-error, .toast) { font-size: var(--type-small); line-height: var(--leading-body); }

/* Product names use the same sans serif in both collections. */
.type-system :is(.product-meta button, .season-card h3) {
  font-family: var(--type-sans); font-size: var(--type-card); font-weight: 400;
  line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere;
}
.type-system :is(.product-card > p, .season-card-description) { font-size: var(--type-small); line-height: var(--leading-body); }
.type-system :is(.simple-price, .season-price, .checkout-product strong) {
  font-family: var(--type-sans); font-size: var(--type-price); font-weight: 400; line-height: 1.4;
}
.type-system :is(.detail-price, .season-detail-copy .season-price) { font-family: var(--type-sans); font-size: var(--type-total); }
.type-system :is(.detail-copy h2, .season-detail-copy h2, .info-dialog h2, .checkout-dialog h2) {
  font-family: var(--type-serif); font-size: var(--type-section); line-height: var(--leading-heading);
}
.type-system :is(.checkout-product h3, .info-dialog h3) { font-size: var(--type-panel); }
.type-system .checkout-totals > div { font-size: var(--type-body); }
.type-system .checkout-totals .total { font-size: var(--type-price); }
.type-system .product-meta { flex-wrap: wrap; gap: 6px 14px; }

/* Secondary copy has a consistent minimum of 14px; short labels use 12px. */
.type-system :is(.delivery-line, .more-products small, .selection-info button, .season-result,
  .season-hero-photo figcaption, .season-table-link, .season-quote-note, .season-contact-selection a,
  .contact-form label small, .contact-timing, .contact-demo-note, .detail-copy > small,
  .detail-price small, .detail-note, .checkout-product small, .payment-placeholder p,
  .payment-placeholder small, .control-note, .no-pressure, .real-reference, .real-reference small,
  .visual-preview small, .idea-stage .field span, .demo-explanation, .idea-success small,
  .journal-article figcaption, .journal-note, .boutique-footer-brand > span,
  .boutique-footer-bottom > span, .boutique-footer-bottom a, .prototype-access, .prototype-access a,
  .whatsapp-label, .visual-option, .color-option) {
  font-size: var(--type-small); line-height: var(--leading-body);
}
.type-system #result-count { font-size: var(--type-small); }
.type-system :is(.eyebrow, .season-eyebrow, .season-card-kind, .season-detail-code,
  .preview-label, .checkout-progress span, .season-filters button span, .visual-controls legend > span) {
  font-size: var(--type-caption); line-height: var(--leading-control); letter-spacing: .08em;
}
.type-system .season-contact-selection strong, .type-system .real-reference strong { font-size: var(--type-body); }
.type-system .boutique-footer h2 { font-family: var(--type-serif); font-size: var(--type-card); line-height: var(--leading-heading); }
.type-system .boutique-footer-top :is(a, p) { font-size: var(--type-body); line-height: var(--leading-body); }
.type-system .store-demo-bar { font-size: var(--type-small); line-height: var(--leading-body); }

/* Management uses the same reading and control scale, with compact panel headings. */
.type-system.management h1 { font-size: var(--type-workspace); }
.type-system.management :is(.panel-head h2, .dalia-card h2, .agenda h2, .flow-panel h2,
  .calendar-nav h2, .calendar-detail h2, .campaign-edit h2, .care-card h2,
  .drawer-section h3, .editor-photo-section h3, .groups-list-title) { font-size: var(--type-panel); }
.type-system.management :is(.catalog-info h2, .drawer-product h3, .editor-preview > h3) {
  font-family: var(--type-sans); font-size: var(--type-card); line-height: 1.4; letter-spacing: 0;
}
.type-system.management :is(.drawer-head h2, .catalog-editor-head h2, .campaign-preview-copy h2) { font-size: var(--type-section); }
.type-system.management :is(#admin-modal h2, #catalog-groups h2, #campaign-preview-empty h2) { font-size: var(--type-section); }
.type-system.management :is(.sidebar nav button, .btn, .text-button, .tabs button, .search,
  .page-title p, td, .dalia-card p, .dalia-card button, .agenda-item p, .flow-line p,
  .catalog-info p, .catalog-info button, .catalog-banner, .care-card p, .care-card li,
  .care-card summary, .care-card details p, .detail-grid dd, .drawer-section > p,
  .drawer-product p, .campaign-products label, .campaign-preview-copy p,
  .campaign-plan > summary, .product-group-list span, .catalog-card-actions button,
  .catalog-card-actions a, .catalog-card-actions > span, .editor-new-group) {
  font-size: var(--type-body); line-height: var(--leading-body);
}
.type-system.management :is(#admin-modal p, #catalog-groups .groups-intro, #campaign-preview-empty p) { font-size: var(--type-body); line-height: var(--leading-body); }
.type-system.management :is(.sidebar-bottom > a, .owner small, .admin-top b, .top-actions a,
  .admin-top span, .top-actions span, .demo-notice, .demo-notice button, .metric > span,
  .metric small, th, .order-cell small, td > small, .panel-head small, .panel-head button,
  .panel-bottom, .agenda-item p small, .flow-line small, .hint, .section-note, .error,
  .catalog-info small, .weekday, .calendar-legend, .admin-footer, .detail-grid dt,
  .timeline li, .payment-method, .back-link, .empty, .quote-note, .campaign-help,
  .campaign-save-state, .campaign-live-preview > p, .campaign-menu-sample,
  .catalog-count, .catalog-category, .editor-help, .editor-preview > p,
  .editor-occasions label, .editor-photo-section input[type=file], .editor-photo > span,
  .editor-photo button, .catalog-editor-actions small, .product-group-list small) {
  font-size: var(--type-small); line-height: var(--leading-body);
}
.type-system.management :is(#photo-progress, #group-error, #group-success) { font-size: var(--type-small); }
.type-system.management :is(.workspace-label, .workspace-label span, .sidebar nav button b,
  .badge, .agenda-date small, .flow-line span, .day small) { font-size: var(--type-caption); line-height: 1.4; }
.type-system.management :is(.owner, .day) { font-size: var(--type-body); }
.type-system.management .metric strong { font-family: var(--type-serif); font-size: var(--type-metric); line-height: 1.3; overflow-wrap: anywhere; }
.type-system.management .agenda-date { font-family: var(--type-serif); font-size: var(--type-card); }
.type-system.management :is(.catalog-info .catalog-row strong, .drawer-product strong, .editor-preview > strong, .payment-amount) {
  font-family: var(--type-sans); font-size: var(--type-price); font-weight: 400;
}
.type-system.management .dalia-card h2 { max-width: calc(100% - 65px); }
.type-system.management .btn { white-space: normal; text-align: center; }
.type-system.management .catalog-card-actions { flex-wrap: wrap; }
.type-system.management .weekday { padding-inline: 0; }

/* Internal design review and brand guidance use the same reading scale. */
.type-system :is(.ux-review, .study-hero) h1 { font-size: var(--type-page); line-height: 1.2; letter-spacing: -1px; }
.type-system :is(.ux-review, .brand-reference) :is(p, li) { font-size: var(--type-body); line-height: var(--leading-body); }
.type-system.brand-reference p { font-size: var(--type-body); line-height: var(--leading-body); }
.type-system.brand-reference :is(.study-head nav, .comparison-controls button, .solid, .outline) { font-size: var(--type-body); }
.type-system.brand-reference :is(h2, .readability h2) { font-size: var(--type-section); }
.type-system.brand-reference :is(.core-palette h3, .social-notes h3) { font-size: var(--type-panel); }
.type-system.brand-reference :is(.signature, .hero-reference figcaption, .ref-grid figcaption,
  .fine, .core-palette p, .support-palette p, .support-palette code, .palette-foot,
  .social-section figcaption, .social-notes small, .contrast-list b,
  .contrast-list p, .study-footer small, .study-footer p) { font-size: var(--type-small); line-height: var(--leading-body); }
.type-system.brand-reference :is(.vertical-note, .core-palette article > span, .logo-versions figcaption, .mini-nav span) { font-size: var(--type-caption); }
.type-system.design-review > header { flex-wrap: wrap; }
.type-system.design-review { display: flex; flex-direction: column; height: 100dvh; }
.type-system.design-review > header { flex: 0 0 auto; }
.type-system.design-review > main { flex: 1; min-height: 0; height: auto; }
.type-system.design-review > header strong { font-family: var(--type-serif); font-size: var(--type-card); }
.type-system.design-review > header small { font-family: var(--type-sans); font-size: var(--type-caption); }
.type-system.design-review :is(button, a) { font-family: var(--type-sans); font-size: var(--type-small); line-height: 1.5; }
.type-system.design-review nav { flex-wrap: wrap; }

@media (max-width: 1050px) {
  .type-system .simple-header nav a { font-size: var(--type-body); }
}
@media (max-width: 800px) {
  :root { --type-workspace: 1.875rem; --type-metric: 1.875rem; }
  .type-system.management .metrics { grid-template-columns: 1fr; }
  .type-system.management .metric > span { max-width: calc(100% - 24px); }
}
@media (max-width: 700px) {
  :root { --type-page: 2.25rem; --type-section: 1.75rem; --type-panel: 1.375rem; }
  .type-system .simple-header nav { overflow-y: auto; max-height: calc(100dvh - 130px); }
  .type-system .season-feature h2 { font-size: var(--type-page); }
  .type-system .product-meta { display: block; }
  .type-system .simple-price { margin-top: 6px; }
  .type-system .product-grid { grid-template-columns: 1fr; }
  .type-system .product-picture { aspect-ratio: 1.12; }
  .type-system .visual-preview { grid-template-columns: 95px minmax(0, 1fr); }
  .type-system .visual-preview svg { height: 120px; }
  .type-system .palette-options, .type-system .format-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-system .visual-option { padding-inline: 6px; }
  .type-system .journal-header nav a { font-size: var(--type-body); }
  .type-system.management .calendar { overflow-x: auto; }
  .type-system.management .calendar-grid { min-width: 350px; }
  .type-system.management .day small { white-space: normal; overflow-wrap: anywhere; }
}

/* Short name meanings sit under the floral product name, never on the photograph. */
.type-system.simple-store .product-card > .product-meaning,
.type-system .detail-copy .detail-meaning,
.type-system.management #editor-preview-meaning {
  color: var(--wine, #613a43);
  font-size: var(--type-body);
  font-style: italic;
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
}
.type-system.simple-store .product-card > .product-meaning { margin-top: 6px; max-width: none; }
.type-system.management #editor-preview-meaning { margin: 6px 0 14px; }
