/* (c) Daniel Stämmler, Intona Technology GmbH, 2026
   intona-enhanced (the About page): the story items in nested centred columns of 940, 800 and
   700px inside the middle of the tri-layout, laid out by their story_layout (lead, text,
   column, wide, statement), then the product index, "From the lab" and the contact band
   across the window. Every class starts with en-; the colours are the tokens on .en, with
   their dark scheme at the end (topnav's colour toggle rewrites that media rule as well). */

.en {
    --en-red: rgb(191,40,27);
    --en-ink: #1a1a1a;
    --en-text: #222;
    --en-text2: #444;
    --en-text3: #555;
    --en-muted: #666;
    --en-line: #e2e2e2;
    --en-soft: #f5f5f3;
    --en-soft-line: #dcdcd8;
}

.en a { text-decoration: none; }
.en .tri-layout-middle { padding-top: 0; }

/* the reset at the top of std.css gives these 13pt, here they take the size of their text */
.en strong, .en b, .en em, .en i { font-size: inherit; line-height: inherit; }

/* std.css makes every h1 to h3 bold with !important; the small uppercase labels stay medium */
.en h2.en-kicker, .en h3.en-group { font-weight: normal !important; }

.en-col { margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.en-col * { box-sizing: border-box; }
.en-940 { max-width: 972px; }
.en-800 { max-width: 832px; }
.en-700 { max-width: 732px; }
.en-kicker { font-family: 'Roboto-Medium', sans-serif; font-size: 10.5pt; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--en-red); margin: 0 0 14px; }
.en-link { font-family: 'Roboto-Medium', sans-serif; font-size: 12.5pt; color: var(--en-ink); border-bottom: 2px solid var(--en-red); padding-bottom: 1px; }
.en a.en-link:hover, .en a.en-link:focus { color: var(--en-red); }
.en-body p, .en-body li { font-size: 18px; line-height: 28px; color: var(--en-text); }
.en-body p { margin: 0 0 20px; }
.en-body ul, .en-body ol { margin: 0 0 20px; padding-left: 2em; }
.en-body a, .en-colitem a, .en-statement a, .en-titleblock a { color: var(--en-ink); border-bottom: 1px solid var(--en-red); }
.en-body a:hover, .en-colitem a:hover, .en-statement a:hover, .en-titleblock a:hover,
.en-body a:focus, .en-colitem a:focus, .en-statement a:focus, .en-titleblock a:focus { color: var(--en-red); }
.en-back { margin: 24px 0 0; }

/* layout: lead */
.en-lead { padding-top: 40px; }
.en .en-h1 { font-family: 'Roboto-Medium', sans-serif; font-size: 30pt; line-height: 1.2; color: var(--en-ink); margin: 0 0 14px; text-wrap: balance; }
.en-standfirst { font-size: 15pt; line-height: 1.5; color: var(--en-text2); margin: 0 0 32px; }
.en-fig { margin: 0 auto 32px; }
.en-fig img { width: 100%; height: auto; display: block; border-radius: 2px; }
.en-fig.en-fig-own img { width: auto; max-width: 100%; margin: 0 auto; }
.en-fig figcaption { font-size: 10.5pt; color: var(--en-muted); margin-top: 8px; }
.en-fig.en-fig-own figcaption { text-align: center; }

/* layout: text and wide, and title items */
.en-text, .en-titleblock { margin-top: 56px; }
.en-text h2, .en-titleblock h2 { font-family: 'Roboto-Medium', sans-serif; font-size: 21pt; line-height: 1.25; color: var(--en-ink); margin: 0 0 .5em; text-wrap: balance; }

/* layout: columns (consecutive column items form one row) */
.en-cols { display: grid; gap: 0; margin-top: 56px; border-top: 2px solid var(--en-ink); }
/* 2 or 4 items: two columns; 3, 5, 6 or more: three columns */
.en-cols-1 { grid-template-columns: 1fr; }
.en-cols-2 { grid-template-columns: repeat(2, 1fr); }
.en-cols-3 { grid-template-columns: repeat(3, 1fr); }
.en-colitem { padding: 24px 28px 14px; border-left: 1px solid var(--en-line); }
.en-cols-1 .en-colitem, .en-cols-2 .en-colitem:nth-child(2n+1), .en-cols-3 .en-colitem:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.en-cols-1 .en-colitem, .en-cols-2 .en-colitem:nth-child(2n), .en-cols-3 .en-colitem:nth-child(3n) { padding-right: 0; }
.en-cols-2 .en-colitem:nth-child(n+3), .en-cols-3 .en-colitem:nth-child(n+4) { border-top: 1px solid var(--en-line); }
.en-colitem h2 { font-family: 'Roboto-Medium', sans-serif; font-size: 21px; line-height: 1.3; color: var(--en-ink); margin: 0 0 10px; }
.en-colitem p, .en-colitem li { font-size: 13pt; line-height: 1.55; color: var(--en-text2); }
.en-colitem p { margin: 0 0 12px; }
.en-colfig { margin: 0 0 14px; }
.en-colfig img { width: 100%; height: auto; display: block; }

/* layout: statement */
.en-statement { margin-top: 88px; text-align: center; }
.en-statement .en-kicker { color: var(--en-muted); }
.en-big p { font-family: 'Roboto-Medium', sans-serif; font-size: 25px; line-height: 1.6; color: var(--en-ink); margin: 0; text-wrap: balance; }
.en-big p + p { margin-top: 12px; }
.en-sep { color: var(--en-red); padding: 0 .1em; }

/* automatic bottom: product index */
.en-auto { margin-top: 96px; }
.en-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; padding-top: 22px; border-top: 2px solid var(--en-ink); }
.en-sechead h2 { font-family: 'Roboto-Medium', sans-serif; font-size: 30px; line-height: 1.25; color: var(--en-ink); margin: 0; }
.en-group { font-family: 'Roboto-Medium', sans-serif; font-size: 10pt; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--en-muted); margin: 30px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--en-ink); }
.en-group:first-of-type { margin-top: 8px; }
.en-rows { list-style: none; margin: 0; padding: 0; }
.en-rows li { border-bottom: 1px solid var(--en-line); }
.en-rows a { display: grid; grid-template-columns: 300px 72px 1fr; gap: 24px; align-items: baseline; padding: 12px 0; color: var(--en-ink); }
.en-rows a:hover .en-pname, .en-rows a:focus .en-pname { color: var(--en-red); }
.en-pname { font-family: 'Roboto-Medium', sans-serif; font-size: 13.5pt; line-height: 1.3; }
/* model numbers in the site's mono font */
.en-model { font-family: 'Inconsolata', monospace; font-size: 12pt; letter-spacing: .02em; color: var(--en-text2); }
.en-claim { font-size: 11.5pt; line-height: 1.45; color: var(--en-text3); }
.en-foot { font-size: 11pt; color: var(--en-muted); margin: 14px 0 0; }

/* automatic bottom: from the lab, the newest story large and up to three more below */
.en-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; color: var(--en-ink); }
.en-feature.en-feature-text { grid-template-columns: 1fr; }
.en-feature img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.en .en-feature h3 { font-family: 'Roboto-Medium', sans-serif; font-size: 26px; line-height: 1.22; margin: 0 0 12px; color: var(--en-ink); }
.en-feature p { font-size: 13pt; line-height: 1.6; color: var(--en-text2); margin: 0 0 16px; }
.en .en-feature:hover h3, .en .en-feature:focus h3 { color: var(--en-red); }
.en-tag { font-family: 'Roboto-Medium', sans-serif; font-size: 9.5pt; letter-spacing: .1em; text-transform: uppercase; color: var(--en-red); display: block; margin-bottom: 6px; }
.en-teasers { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid var(--en-line); }
.en-teasers a { display: block; color: var(--en-ink); }
.en-teasers img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: 12px; }
.en .en-teasers h3 { font-family: 'Roboto-Medium', sans-serif; font-size: 17px; line-height: 1.3; margin: 0; color: var(--en-ink); }
.en .en-teasers a:hover h3, .en .en-teasers a:focus h3 { color: var(--en-red); }

/* automatic bottom: contact, company and support, across the window and right above the footer */
.en-contact { background: var(--en-soft); margin-top: 96px; padding: 64px 0 72px; }
#footer { margin-top: 0; }
.en-contact-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.en-contact h2 { font-family: 'Roboto-Medium', sans-serif; font-size: 24px; line-height: 1.25; color: var(--en-ink); margin: 0 0 12px; }
.en-contact address { font-style: normal; font-size: 13pt; line-height: 1.6; color: var(--en-text); margin: 0 0 22px; }
.en .en-contact h3 { font-family: 'Roboto-Medium', sans-serif; font-weight: normal !important; font-size: 10pt; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--en-muted); margin: 6px 0 10px; }
.en-contact ul { list-style: none; margin: 0; padding: 0; }
.en-contact li { font-size: 12.5pt; }
.en-contact li a { display: block; padding: 7px 0; border-top: 1px solid var(--en-soft-line); color: var(--en-ink); font-size: 12.5pt; }
.en-contact li a:hover, .en-contact li a:focus { color: var(--en-red); }
.en-btn { display: inline-block; font-family: 'Roboto-Medium', sans-serif; font-size: 12pt; padding: 8px 18px; border: 2px solid var(--intona_red); border-radius: 3px; background: var(--intona_red); color: white; }
.en a.en-btn:hover, .en a.en-btn:focus { background: #a01f14; border-color: #a01f14; color: white; }

@media (max-width: 1000px) {
    .en-rows a { grid-template-columns: 1fr auto; gap: 2px 16px; }
    .en-rows .en-pname { grid-column: 1; }
    .en-rows .en-model { grid-column: 2; grid-row: 1; text-align: right; }
    .en-rows .en-claim { grid-column: 1 / -1; }
    .en-contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .en-lead { padding-top: 36px; }
    .en .en-h1 { font-size: 26pt; }
    .en-standfirst { font-size: 13.5pt; }
    /* the images of the lead and wide items from edge to edge */
    .en-fig { padding: 0; }
    .en-fig figcaption { padding: 0 16px; }
    .en-body p, .en-body li { font-size: 17px; line-height: 27px; }
    .en-cols-2, .en-cols-3 { grid-template-columns: 1fr; }
    .en-cols { margin-top: 40px; }
    .en-cols .en-colitem, .en-cols-2 .en-colitem:nth-child(n), .en-cols-3 .en-colitem:nth-child(n) { padding: 20px 0 8px; border-left: 0; border-top: 1px solid var(--en-line); }
    .en-cols .en-colitem:first-child { border-top: 0; }
    .en-statement, .en-auto, .en-contact, .en-text, .en-titleblock { margin-top: 64px; }
    .en-big p { font-size: 19px; }
    .en-sechead { flex-direction: column; gap: 8px; }
    .en-sechead h2 { font-size: 26px; }
    .en-feature { grid-template-columns: 1fr; gap: 18px; }
    .en-teasers { grid-template-columns: 1fr; gap: 20px; }
    .en-contact { padding: 44px 0 52px; }
    .en-contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* the dark scheme of std.css: light text on the dark background, the accent lighter (as the
   badges of the buy page), the button keeps the dark red of the scheme with white text */
@media (prefers-color-scheme: dark) {
    .en {
        --en-red: rgb(235,95,80);
        --en-ink: #e6e6e4;
        --en-text: var(--intona_txt);
        --en-text2: var(--intona_txt);
        --en-text3: #b4b4b2;
        --en-muted: #9a9a98;
        --en-line: #3c3c55;
        --en-soft: var(--intona_shdk);
        --en-soft-line: #3c3c55;
    }
    .en a.en-btn:hover, .en a.en-btn:focus { background: #b8281a; border-color: #b8281a; }
}
