/*
 * Curvy Editorial typography system
 * The single source of truth for type families, scale, rhythm and contrast.
 * Loaded after style.css on the front end and in the block editor.
 */
:root {
  --ce-font-display: "Cormorant Garamond", Georgia, serif;
  --ce-font-body: "Lora", Georgia, serif;
  --ce-font-ui: "Manrope", Arial, sans-serif;
  --ce-font-display-italic: "Cormorant Garamond", Georgia, serif;

  --ce-type-page-title: clamp(3rem, 3.55vw, 3.5rem);
  --ce-type-section: clamp(2.25rem, 2.8vw, 2.625rem);
  --ce-type-h2: 2.125rem;
  --ce-type-h3: 1.625rem;
  --ce-type-h4: 1.4375rem;
  --ce-type-card-large: clamp(2rem, 2.5vw, 2.25rem);
  --ce-type-card: clamp(1.625rem, 2vw, 1.875rem);
  --ce-type-body: 1.3125rem;
  --ce-type-page-copy: 1.3125rem;
  --ce-type-excerpt: 1.125rem;
  --ce-type-quote: 1.5rem;
  --ce-type-widget-title: 1.6875rem;
  --ce-type-widget-copy: 1.0625rem;
  --ce-type-category: 1.0625rem;
  --ce-type-ui: 1rem;
  --ce-type-caption: .9375rem;
  --ce-type-meta: .90625rem;
  --ce-line-copy: 1.75;
  --ce-line-heading: 1.12;
  --ce-line-ui: 1.5;
  --ce-tracking-heading: -.018em;
  --ce-tracking-label: .025em;
  --ce-copy: 68ch;
  --ce-text-main: #071E36;
  --ce-text-secondary: #34475A;
  --ce-text-muted-aa: #526171;
  --ce-text-accent: #721D35;
  --ce-text-on-dark: #FAF5ED;
  --ce-text-gold-on-dark: #D5A354;
}

html { font-size: 100%; }
body {
  color: var(--ce-text-main);
  font-family: var(--ce-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* The display family is used for headings; no handwritten face is used. */
h1, h2, h3, h4, h5, h6,
.ce-page-title, .ce-story-title, .ce-section-title,
.ce-card-title, .ce-widget-title, .ce-drawer-title,
.ce-404-title, .ce-404-search h2, .ce-comments .comment-reply-title, .ce-tag-cloud__title {
  font-family: var(--ce-font-display);
  font-weight: 600;
  line-height: var(--ce-line-heading);
  letter-spacing: var(--ce-tracking-heading);
  text-wrap: pretty;
}
h1 { font-size: var(--ce-type-page-title); }
h2 { font-size: var(--ce-type-h2); }
h3 { font-size: var(--ce-type-h3); }
h4 { font-size: var(--ce-type-h4); }

.ce-page-title, .ce-story-title, .ce-404-title {
  font-size: var(--ce-type-page-title);
  line-height: 1.04;
  font-weight: 600;
}
.ce-story-header .ce-page-title, .ce-story-header .ce-story-title {
  font-size: var(--ce-type-page-title);
  line-height: 1.04;
}
.ce-story-header .ce-card-meta { font-size: var(--ce-type-meta); line-height: 1.5; }
.ce-story-title__print { font-family: var(--ce-font-display); font-weight: 700; }
.ce-story-title__accent {
  font-family: var(--ce-font-display-italic);
  font-style: italic;
  font-weight: 600;
}
.ce-section-title {
  font-size: var(--ce-type-section);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
}
.ce-drawer-section > .ce-section-title {
  font-size: var(--ce-type-section);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
}
.ce-prose h2 { font-size: var(--ce-type-h2); line-height: 1.12; }
.ce-prose h3 { font-size: var(--ce-type-h3); line-height: 1.16; }
.ce-prose h4 { font-size: var(--ce-type-h4); line-height: 1.2; }

/* Long-form and authored copy. */
.ce-prose, .ce-story-body {
  max-width: var(--ce-copy);
  color: var(--ce-text-main);
  font-family: var(--ce-font-body);
  font-size: var(--ce-type-page-copy);
  line-height: var(--ce-line-copy);
  letter-spacing: 0;
}
.ce-story-body { font-size: var(--ce-type-body); }
.ce-prose p, .ce-prose li, .ce-story-body p, .ce-story-body li { line-height: inherit; }
.ce-prose p, .ce-story-body p { margin-block: 0 1.15em; }
.ce-prose blockquote, .ce-prose .wp-block-quote.is-style-ce-editorial,
.ce-prose .wp-block-pullquote.is-style-ce-editorial {
  font-family: var(--ce-font-body);
  font-size: var(--ce-type-quote);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
}
.ce-prose blockquote cite, .ce-prose .wp-block-quote.is-style-ce-editorial cite { font-family: var(--ce-font-ui); }
.ce-comments>h2 { font-size: var(--ce-type-h2); line-height: 1.12; }
.ce-comments .comment-reply-title { font-size: var(--ce-type-h3); line-height: 1.16; }
.ce-prose p.is-style-ce-accent-card, .ce-prose p.has-background { line-height: 1.7; }
.ce-prose em, .ce-story-body em { color: var(--ce-text-accent); }

/* Cards, drawer excerpts, archive summaries and captions. */
.ce-card-title { font-size: var(--ce-type-card); line-height: 1.12; }
.ce-card-featured .ce-card-title { font-size: var(--ce-type-card-large); }
.ce-excerpt, .ce-drawer-summary, .ce-drawer-fragment {
  font-family: var(--ce-font-body);
  font-size: var(--ce-type-excerpt);
  line-height: 1.65;
}
.ce-drawer-quote, .ce-drawer-excerpt-text {
  font-family: var(--ce-font-body);
  font-size: var(--ce-type-quote);
  line-height: 1.5;
}
.ce-drawer-photo-title { font-family: var(--ce-font-display); }
.ce-prose figcaption, .ce-story-body figcaption, .wp-caption-text {
  color: var(--ce-text-secondary);
  font-family: var(--ce-font-ui);
  font-size: var(--ce-type-caption);
  line-height: 1.5;
}

/* Interface text, widget system, forms and metadata. */
.ce-nav, .ce-menu, .ce-menu-fallback,
.ce-menu a, .ce-menu-fallback a, .ce-search-toggle,
.ce-button, button, input, textarea, select,
.ce-read-more, .ce-archive-tools, .ce-archive-tools select,
.ce-footer, .ce-comments input, .ce-comments textarea,
.ce-404-search .search-form, .ce-share,
.ce-subscribe-dialog, .ce-mailpoet-widget {
  font-family: var(--ce-font-ui);
}
.ce-nav, .ce-menu a, .ce-menu-fallback a { font-size: var(--ce-type-ui); }
.ce-button, button, input[type="submit"], .ce-read-more,
.ce-footer-contact .wpcf7-submit,
.ce-mailpoet-widget #mailpoet_form_1 .mailpoet_submit {
  font-size: var(--ce-type-ui);
  line-height: var(--ce-line-ui);
}
input:not([type="checkbox"]), textarea, select,
.ce-footer-contact input:not([type="checkbox"]):not([type="submit"]),
.ce-footer-contact textarea, .ce-mailpoet-widget #mailpoet_form_1 .mailpoet_text,
.ce-comments input:not([type="submit"]), .ce-comments textarea {
  font-family: var(--ce-font-ui);
  font-size: var(--ce-type-ui);
  line-height: 1.5;
}
.ce-widget-title, .ce-footer h2, .ce-related>.ce-widget-title {
  font-family: var(--ce-font-display);
  font-size: var(--ce-type-widget-title);
  line-height: 1.12;
  font-style: normal;
  font-weight: 600;
}
.ce-tag-cloud__title { font-size: var(--ce-type-widget-title); line-height: 1.08; text-align: center; }
.ce-tag-cloud__title em { font-family: var(--ce-font-display-italic); font-style: italic; }
.ce-tag-cloud__list a { font-family: var(--ce-font-body); }
.ce-author-card .ce-widget-title, .ce-professional .ce-widget-title,
.ce-mailpoet-widget .ce-widget-title { font-size: var(--ce-type-widget-title); }
.ce-author-card .ce-author-description {
  font-family: var(--ce-font-ui);
  font-size: var(--ce-type-widget-copy);
  line-height: 1.4;
}
.ce-professional h2 { font-size: var(--ce-type-widget-title); line-height: 1.12; }
.ce-widget, .ce-widget p, .ce-author-description, .ce-memory p,
.ce-professional, .ce-professional-feed-label, .ce-footer-brand p,
.ce-footer-legal a, .ce-footer-bottom {
  font-size: var(--ce-type-widget-copy);
  line-height: 1.6;
}
.ce-category-list a { font-family: var(--ce-font-ui); font-size: var(--ce-type-category); line-height: 1.5; }
.ce-card-meta, .ce-archive-kicker, .ce-breadcrumb,
.ce-footer-contact .wpcf7-acceptance, .ce-mailpoet-widget .ce-mailpoet-intro,
.ce-mailpoet-widget #mailpoet_form_1 .mailpoet_form_paragraph,
.ce-drawer-meta, .ce-drawer-excerpt-source,
.ce-drawer-status, .ce-memory-values small {
  font-family: var(--ce-font-ui);
  font-size: var(--ce-type-meta);
  line-height: 1.5;
}
.ce-card-meta, .ce-archive-kicker, .ce-breadcrumb { color: var(--ce-text-accent); }
.ce-footer { font-size: var(--ce-type-ui); }
.ce-footer, .ce-footer p, .ce-footer li, .ce-footer-bottom { color: var(--ce-text-on-dark); }
.ce-footer h2, .ce-footer .ce-cookie-settings { color: var(--ce-text-gold-on-dark); }
.ce-footer a:not(.ce-button) { color: var(--ce-text-on-dark); }
.ce-footer-brand>a { color: var(--ce-text-gold-on-dark); }
.ce-footer-brand>a { font-size: var(--ce-type-ui); }
.ce-footer-legal .ce-cookie-settings { color: var(--ce-text-gold-on-dark); }
.ce-professional-kicker { color: #F3CC89; }
.ce-professional .ce-button { font-size: var(--ce-type-ui); }
.ce-mailpoet-widget #mailpoet_form_1 .mailpoet_text,
.ce-mailpoet-widget #mailpoet_form_1 .mailpoet_submit { font-size: var(--ce-type-ui) !important; }
.ce-footer-legal a, .ce-footer-brand p, .ce-footer-bottom { font-size: var(--ce-type-ui); }
.ce-caption { font-size: var(--ce-type-caption); }

/* Keep gold decorative; small text on the light surface uses ink or wine. */
.ce-prose a, .ce-page-copy .ce-prose a { color: var(--ce-text-accent); text-decoration-color: var(--ce-gold); }
.ce-prose strong, .ce-page-copy .ce-prose strong { color: var(--ce-text-main); }
.ce-section-title, .ce-archive-kicker, .ce-card-meta, .ce-breadcrumb,
.ce-memory-values strong, .ce-memory-days { color: var(--ce-text-accent); }

@media (max-width: 640px) {
  :root {
    --ce-type-page-title: clamp(2.125rem, 8.8vw, 2.375rem);
    --ce-type-section: clamp(1.75rem, 7vw, 2rem);
    --ce-type-h2: 1.75rem;
    --ce-type-h3: 1.4375rem;
    --ce-type-h4: 1.3125rem;
    --ce-type-card-large: clamp(1.6875rem, 7vw, 1.875rem);
    --ce-type-card: clamp(1.5rem, 6vw, 1.6875rem);
    --ce-type-body: 1.1875rem;
    --ce-type-page-copy: 1.1875rem;
    --ce-type-excerpt: 1.0625rem;
    --ce-type-quote: 1.3125rem;
    --ce-type-widget-title: 1.5625rem;
    --ce-type-widget-copy: 1rem;
    --ce-type-category: 1rem;
    --ce-type-ui: 1rem;
    --ce-type-caption: .9375rem;
    --ce-type-meta: .90625rem;
  }
  body { font-size: 1rem; line-height: 1.65; }
  .ce-page-title, .ce-story-title, .ce-404-title { line-height: 1.08; }
  .ce-story-header .ce-story-title, .ce-story-header .ce-page-title { font-size: var(--ce-type-page-title); line-height: 1.08; }
  .ce-card-featured .ce-card-title { font-size: var(--ce-type-card-large); }
  .ce-section-title { text-transform: none; letter-spacing: -.01em; }
  .ce-category-list a { padding-block: .6rem; }
  .ce-footer, .ce-footer p, .ce-footer li, .ce-footer a:not(.ce-button),
  .ce-footer-legal a, .ce-footer-bottom { font-size: var(--ce-type-ui); }
}

@media (min-width: 641px) and (max-width: 850px) {
  :root {
    --ce-type-page-title: clamp(3rem, 5.5vw, 3.5rem);
    --ce-type-section: clamp(2.25rem, 4vw, 2.625rem);
    --ce-type-body: 1.3125rem;
    --ce-type-page-copy: 1.3125rem;
  }
}
