/* Inner pages share a fluid canvas. Home keeps its existing scroll composition. */
:is(.editorial-page, .contact-page, .legacy-page) {
  --page-max: clamp(1280px, calc(100vw - 320px), 1920px);
  --wide-copy: clamp(16px, .8vw, 20px);
  --wide-label: clamp(12px, .6vw, 15px);
  --wide-control: clamp(14px, .7vw, 18px);
}

:is(.editorial-page, .contact-page) :is(.page-container, .contact-container) {
  max-width: var(--page-max);
}

:is(.editorial-page, .contact-page, .legacy-page) .site-header {
  width: 100%;
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2));
}

:is(.editorial-page, .contact-page, .legacy-page) :is(.footer-top, .footer-bottom) {
  max-width: var(--page-max);
}

/* Reading columns stay narrower than the surrounding marketing pages. */
.blog-detail-page .article-detail {
  max-width: clamp(980px, calc(100vw - 620px), 1320px);
}

/* A continuous paper background prevents boxed strips around the story artwork. */
.legacy-page { --ivory: #f8f7ef; background: var(--ivory); }
.legacy-intro { max-width: none; background: var(--ivory); }
.legacy-finale { background: var(--ivory); }
.road-marker > span { background: var(--ivory); }

@media (min-width: 1600px) {
  /* Header and footer align to the same edges as the page content. */
  :is(.editorial-page, .contact-page, .legacy-page) .site-header .brand {
    width: clamp(136px, 7vw, 176px);
  }
  :is(.editorial-page, .contact-page, .legacy-page) .site-header .desktop-nav {
    gap: clamp(28px, 1.7vw, 44px);
    font-size: clamp(12px, .65vw, 16px);
  }
  :is(.editorial-page, .contact-page, .legacy-page) .site-footer .footer-top {
    gap: clamp(40px, 3vw, 76px);
  }
  :is(.editorial-page, .contact-page, .legacy-page) .site-footer :is(p, .text-link, input, button, label) {
    font-size: var(--wide-control);
  }
  :is(.editorial-page, .contact-page, .legacy-page) .site-footer :is(h2, .newsletter-hint, .footer-bottom, .certifications-grid strong) {
    font-size: var(--wide-label);
  }
  :is(.editorial-page, .contact-page, .legacy-page) .site-footer .certifications-grid span {
    font-size: clamp(11px, .55vw, 14px);
  }
  .editorial-page :is(.page-eyebrow, .page-breadcrumb),
  .contact-page :is(.contact-eyebrow, .contact-breadcrumb),
  .legacy-page .legacy-eyebrow {
    font-size: var(--wide-label);
  }
  .editorial-page :is(.page-button, .page-text-link, .newsletter-form input, .newsletter-form button, .newsletter-form label),
  .contact-page :is(.contact-button, .contact-text-link, .partner-button) {
    font-size: var(--wide-control);
  }

  /* Scale two-column introductions together instead of stretching only images. */
  .company-hero, .pantry-hero, .process-hero, .journal-hero, .connect-hero {
    gap: 6%;
    padding-block: clamp(40px, 3vw, 72px);
  }
  .company-page h1 { font-size: clamp(110px, 5.4vw, 138px); }
  .faq-hero h1 { font-size: clamp(100px, 5vw, 128px); }
  .catalog-page h1 { font-size: clamp(105px, 5.5vw, 144px); }
  .process-intro h1 { font-size: clamp(128px, 6vw, 156px); }
  .journal-intro h1 { font-size: clamp(112px, 5.5vw, 144px); }
  .connect-copy h1 { font-size: clamp(144px, 6.5vw, 168px); }
  .editorial-page :is(.company-lead, .pantry-lead, .process-intro-copy, .journal-lead),
  .contact-page .connect-lead {
    font-size: var(--wide-copy);
    max-width: 44ch;
  }
  .editorial-page :is(.hero-origin, .hero-image-note, .pantry-hero-foot, .process-hero-note, .journal-edition),
  .contact-page :is(.hero-footnote, .landscape-note p) {
    font-size: var(--wide-label);
  }
  .company-landscape { height: clamp(520px, 26vw, 660px); }
  .faq-hero .company-landscape { height: clamp(410px, 23vw, 580px); }
  .contact-landscape { height: clamp(520px, 27vw, 680px); }
  .pantry-showcase { height: clamp(530px, 26vw, 660px); }
  .pantry-hero { min-height: 0; }
  .company-page .company-landscape figcaption,
  .contact-landscape figcaption, .paddy-photo figcaption {
    font-size: var(--wide-label);
  }

  /* About, corporate strategy and FAQ. */
  .company-page :is(.company-intro p:not(.page-eyebrow), .value-card p, .values-note,
    .about-company-copy > p:not(.page-eyebrow), .trust-panel p, .company-checklist,
    .leadership-quote blockquote, .purpose-section p:not(.page-eyebrow), .quality-intro,
    .quality-factors p:not(.page-eyebrow), .strategy-article > p:not(.page-eyebrow),
    .technology-list li, .distribution-note p, .responsibility-card p, .responsibility-card li,
    .strategy-partner p:not(.page-eyebrow), .questions-intro > p:not(.page-eyebrow),
    .company-faq-answer p, .faq-contact p:not(.page-eyebrow), .company-section-heading > p) {
    font-size: var(--wide-copy);
  }
  .company-section-heading > p { max-width: 36ch; }
  .company-page :is(.company-tabs a, .company-stats > div > span, .factor-tags span,
    .strategy-index nav a, .partnership-tags li, .faq-image-label > span, .faq-source) {
    font-size: var(--wide-control);
  }
  .company-faq summary h3 { font-size: var(--wide-copy); }
  .company-page :is(.value-card h3, .responsibility-card h3) { font-size: clamp(28px, 1.4vw, 36px); }
  .company-stats strong { font-size: clamp(68px, 3.4vw, 88px); }
  .rice-hands { height: clamp(430px, 25vw, 640px); }
  .strategy-landscape { height: clamp(460px, 25vw, 640px); }
  .strategy-body { grid-template-columns: clamp(260px, 16vw, 360px) minmax(0, 1fr); gap: 7%; }
  .strategy-facility { height: clamp(290px, 20vw, 500px); }
  .strategy-articles { max-width: 1100px; }

  /* Product collection and details. */
  .catalog-layout { grid-template-columns: clamp(215px, 13vw, 300px) minmax(0, 1fr); gap: clamp(36px, 3vw, 64px); }
  .product-grid { gap: clamp(18px, 1.4vw, 32px); }
  .product-visual .pack-stage { max-height: clamp(275px, 15vw, 360px); }
  .product-copy { padding: clamp(20px, 1.3vw, 32px); }
  .product-copy h3 { font-size: clamp(24px, 1.3vw, 32px); }
  .catalog-page :is(.pantry-intro > p, .category-description, .product-description, .pantry-enquiry p:not(.page-eyebrow)) {
    font-size: var(--wide-copy);
  }
  .pantry-intro > p, .pantry-enquiry p:not(.page-eyebrow) { max-width: 48ch; }
  .catalog-page :is(.catalog-categories > a, .catalog-sidebar h3, .product-search input,
    .search-go, .product-enquiry, .product-details, .catalog-status-row > p, .auto-load-control) {
    font-size: var(--wide-control);
  }
  .catalog-page :is(.pantry-promise, .catalog-preview-tip, .product-card-top, .group-count,
    .catalog-categories small, .product-hover-note, .pantry-hero-foot) {
    font-size: var(--wide-label);
  }

  /* Process and journal. */
  .process-page :is(.quality-commitment p:not(.page-eyebrow), .process-expertise p:not(.page-eyebrow),
    .stage-description, .stage-copy p, .stage-detail p, .expertise-copy p:not(.page-eyebrow),
    .process-faq p, .process-faq-answer, .responsible-card p) {
    font-size: var(--wide-copy);
  }
  .library-layout { grid-template-columns: clamp(180px, 13vw, 280px) minmax(0, 1fr); gap: clamp(36px, 3vw, 64px); }
  .journal-feature { padding: clamp(20px, 1.4vw, 32px); margin-top: 0; }
  .journal-feature h2 { max-width: none; font-size: clamp(34px, 1.8vw, 46px) !important; }
  .journal-lead, .journal-edition { max-width: 48ch; }
  .blog-page :is(.article-copy > p, .journal-subscribe > div > p:last-child) { font-size: var(--wide-copy); }
  .article-copy { padding: clamp(20px, 1.4vw, 32px); }
  .article-copy h3 { font-size: clamp(24px, 1.4vw, 36px); }
  .blog-page :is(.category-listing > button, .article-read, .article-search input, .search-submit,
    .journal-sort select, .saved-filter, .article-pagination > button) { font-size: var(--wide-control); }
  .blog-page :is(.feature-topline, .feature-meta, .feature-meta > time, .article-meta > span,
    .article-meta > time, .results-topline > p, .journal-categories h3, .category-listing > button > small) {
    font-size: var(--wide-label);
  }

  /* Contact details and form fields should grow with their columns. */
  .contact-page :is(.quick-contact > p, .message-heading > p:last-child, .detail-item strong,
    .location-copy > p:not(.contact-eyebrow), .partner-content > p:not(.contact-eyebrow),
    .newsletter-heading p:last-child, .quick-contact strong) { font-size: var(--wide-copy); }
  .contact-page :is(.contact-field input, .contact-field textarea, .contact-field > label,
    .topic-options span, .enquiry-topics legend, .newsletter-form input, .newsletter-form button,
    .newsletter-form label) { font-size: var(--wide-control); }
  .contact-page :is(.contact-field input::placeholder, .contact-field textarea::placeholder,
    .contact-field label > small, .detail-item small, .careers-note, .form-bottom > p,
    .field-error, .quick-contact small, .newsletter-hint) { font-size: var(--wide-label); }
  .contact-details h2 { font-size: clamp(31px, 1.7vw, 42px); }
  .contact-location { min-height: clamp(370px, 20vw, 500px); }

  /* Article and policy text keeps a readable line length on a wider canvas. */
  .blog-detail-page :is(.detail-heading, .detail-intro, .detail-body) { margin-inline: auto; }
  .detail-heading { max-width: 1180px; }
  .detail-heading h1 { font-size: clamp(60px, 3vw, 76px); }
  .detail-intro, .detail-body { max-width: 76ch; font-size: var(--wide-copy); }
  .detail-faq-item p { font-size: inherit; }
  .detail-faq-item h3 { font-size: clamp(18px, .95vw, 24px); }
  .blog-detail-page .detail-copy-section h2 { font-size: clamp(28px, 1.6vw, 40px); line-height: 1.2; }
  .blog-detail-page :is(.detail-back, .detail-category, .detail-heading time, .detail-related-category) { font-size: var(--wide-label); }
  .detail-related-copy h3 { font-size: var(--wide-copy); }
  .privacy-heading, .privacy-content { max-width: clamp(850px, 43vw, 1100px); }
  .privacy-document :is(.privacy-lead, .privacy-section > p:not(.privacy-index), .privacy-section ul,
    .privacy-notice, .privacy-note, .privacy-contact p:not(.page-eyebrow)) { font-size: var(--wide-copy); }
  .privacy-lead { max-width: 65ch; }
  .privacy-document .privacy-index { font-size: var(--wide-label); }

  /* Story illustrations, copy and road use the same responsive composition. */
  .legacy-intro { padding: 48px var(--gutter) 40px; }
  .legacy-intro h1 { font-size: clamp(78px, 4vw, 104px); }
  .legacy-intro-copy { font-size: var(--wide-copy); }
  .origin-illustration { width: 100%; max-width: 1480px; padding-inline: 140px; }
  .field-illustration { height: clamp(340px, 45svh, 580px); aspect-ratio: auto; }
  .legacy-intention p, .legacy-scroll { font-size: var(--wide-label); }
  .legacy-journey { max-width: var(--page-max); padding-inline: 0; }
  .legacy-chapter { min-height: clamp(520px, 29vw, 720px); }
  .chapter-art { max-width: 680px; }
  .chapter-copy { max-width: 620px; }
  .chapter-copy h2 { font-size: clamp(52px, 2.7vw, 68px); }
  .chapter-copy > p:not(.legacy-eyebrow) { max-width: 44ch; font-size: var(--wide-copy); }
  .chapter-copy .legacy-eyebrow, .chapter-art figcaption, .chapter-stats dt, .legacy-scale dt { font-size: var(--wide-label); }
  .chapter-stats dd { font-size: clamp(32px, 1.8vw, 46px); }
  .finale-art { width: min(1100px, 70%); }
  .finale-intro, .finale-copy { font-size: var(--wide-copy); }
  .finale-copy { max-width: 68ch; }
  .legacy-scale, .legacy-cta { max-width: 1100px; }
  .legacy-cta .button, .legacy-scale dd > span { font-size: var(--wide-control); }
}
