/* empracticat.com · the site layer. Loads after fonts.css, empracticat-tokens.css and empracticat-components.css,
 * which come from the brand kit unchanged. Everything here uses the kit's tokens; no new colors.
 * Empracticat is a fictional company made for Empractica demos. Every page carries the fiction bar and the footer note. */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ec-header) + 2px); } /* the header and its rule, so a section starts right under it */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ec-paper); color: var(--ec-text);
  font: 400 1rem/1.55 var(--ec-font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
table { border-spacing: 0; }
.ec-shell { width: 100%; max-width: calc(var(--ec-shell) + 2 * var(--ec-page-gutter)); margin-inline: auto; padding-inline: var(--ec-page-gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: var(--ec-page-gutter); top: -4rem; z-index: 100; padding: .8rem 1.1rem;
  background: var(--ec-black); color: var(--ec-paper); font: 700 1rem/1 var(--ec-font-sans); text-decoration: none;
}
.skip:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--ec-focus); outline-offset: 3px; }
.ec-label { margin: 0; }
.ec-fiction { --ec-focus: var(--ec-mustard); } /* the bar is black, so the focus ring is the light mustard */
.ec-display, .ec-headline { text-wrap: balance; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ec-paper); border-bottom: 2px solid var(--ec-black); }
.site-header > .ec-shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--ec-header); }
.site-logo { display: block; flex: none; padding-block: .5rem; }
.site-logo img { width: auto; height: 30px; }
.site-nav ul { list-style: none; display: flex; gap: clamp(1.1rem, 2.2vw, 2rem); }
.site-nav a {
  display: block; padding: .55rem 0; font: 600 .9375rem/1 var(--ec-font-sans); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size var(--ec-dur-micro) var(--ec-ease);
}
.site-nav a:hover { background-size: 100% 2px; }
.site-menu { display: none; }
.site-menu summary {
  display: flex; align-items: center; gap: .6rem; min-height: 44px; padding-inline: .25rem; cursor: pointer; list-style: none;
  font: 500 .75rem/1 var(--ec-font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.site-menu summary .ico-close, .site-menu[open] summary .ico-open { display: none; }
.site-menu[open] summary .ico-close { display: inline; }
.site-menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--ec-paper); border-bottom: 2px solid var(--ec-black); box-shadow: 0 18px 30px -18px rgba(31, 28, 24, .45); }
.site-menu__panel ol { list-style: none; padding: .5rem var(--ec-page-gutter) 1rem; }
.site-menu__panel li + li { border-top: 1px solid var(--ec-line); }
.site-menu__panel a { display: flex; align-items: center; gap: .9rem; min-height: 3.5rem; font: 700 1.125rem/1 var(--ec-font-sans); font-stretch: 112%; text-decoration: none; }
.site-menu__panel .ec-callout { font-size: .75rem; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-logo img { height: 26px; }
}

/* ------------------------------------------------------------------ shared pieces */
.section { padding-block: var(--ec-section-y); }
.ec-kraft { background: var(--ec-kraft) url(../img/texture/kraft.webp) 0 0 / 700px repeat; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ec-btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.photo img { width: 100%; height: auto; }
.photo__frame { position: relative; }
.photo__frame > .ec-callout { position: absolute; z-index: 2; transform: translate(-50%, -50%); background: var(--ec-paper); color: var(--ec-black); border-color: var(--ec-black); box-shadow: 0 2px 10px rgba(31, 28, 24, .3); }
.photo__leader { position: absolute; z-index: 1; height: 2px; background: var(--ec-paper); transform-origin: 0 50%; box-shadow: 0 1px 4px rgba(31, 28, 24, .45); }
.photo__leader::after { content: ''; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ec-paper); box-shadow: 0 1px 4px rgba(31, 28, 24, .45); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 1.25rem 4rem; align-items: end; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.section-head > div { container-type: inline-size; }
.section-head h2 { margin-top: 1rem; font-size: min(var(--ec-size-headline), 10cqi); }
.section-head__note { color: var(--ec-text-body); font-size: var(--ec-size-body-lg); line-height: 1.5; }

/* ------------------------------------------------------------------ hero (kraft) */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero__text { container-type: inline-size; }
/* sized to the column so the line always breaks Practical / furniture for / impractical / animals. */
.hero h1 { margin: 1.25rem 0 1.5rem; font-size: min(var(--ec-size-display), 13.6cqi); }
.hero__lede { max-width: 33rem; }
.hero__photo img { box-shadow: 0 28px 48px -30px rgba(31, 28, 24, .7); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin-top: 1rem; }
.legend li { display: flex; align-items: center; gap: .6rem; font: 500 .75rem/1.2 var(--ec-font-mono); letter-spacing: .07em; text-transform: uppercase; }
.legend .ec-callout { font-size: .6875rem; background: transparent; }

/* ------------------------------------------------------------------ the trees (paper) */
.trees .ec-box { font-size: inherit; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ec-column-gap); }
.ec-card { container-type: inline-size; }
.ec-card__name h3 { font-size: min(var(--ec-size-title), 9cqi); }
.ec-card .ec-price { white-space: nowrap; }
.ec-card__media .card__no { position: absolute; left: 1rem; top: 1rem; z-index: 1; background: transparent; }
.card__msrp { font-size: .6875rem; letter-spacing: .08em; color: var(--ec-text-muted); margin-right: .25em; }
.ec-card .ec-spec { color: var(--ec-text-muted); }
.card__desc { color: var(--ec-text-body); }
.cards-scroll:focus-visible { outline-offset: 6px; }

.line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 4rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 2px solid var(--ec-black); }
.line__head p { margin-top: .75rem; color: var(--ec-text-body); max-width: 26rem; }
.line__table { border-top: 0; }
.line__table thead th { border-bottom: 2px solid var(--ec-black); padding-top: 0; }
.line__table td:first-child { width: 7.5rem; font: 500 .8125rem/1.35 var(--ec-font-mono); letter-spacing: .04em; color: var(--ec-text-muted); }
.line__table th:first-child, .line__table td:first-child { padding-left: 0; }
.line__table th:last-child, .line__table td:last-child { padding-right: 0; }
.line__group th { padding: 1.4rem 0 .5rem; color: var(--ec-text); border-bottom: 1px solid var(--ec-black); }
.line__table tbody:first-of-type .line__group th { padding-top: .9rem; }

/* ------------------------------------------------------------------ paper tape */
.ec-tape { justify-content: flex-start; gap: 1.1rem; padding-left: max(var(--ec-page-gutter), calc((100% - var(--ec-shell)) / 2)); }
.ec-tape span::after { content: ''; width: .42em; height: .42em; margin-left: .4rem; background: currentColor; }

/* ------------------------------------------------------------------ what's in the box (white) */
.inbox { background: var(--ec-white); }
.inbox__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.inbox__text { container-type: inline-size; }
.inbox__text h2 { margin: 1rem 0 1.75rem; font-size: min(var(--ec-size-headline), 9.3cqi); }
.ec-parts td:first-child .ec-callout { font-size: .75rem; }
.ec-parts td:nth-child(2) { padding-right: 1rem; }
.inbox__picts { list-style: none; margin-top: 2rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inbox__picts img { width: 3.5rem; height: 3.5rem; }

/* ------------------------------------------------------------------ assembly (black) */
.assembly__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.assembly__steps { container-type: inline-size; }
.assembly__label { color: var(--ec-signal-text); margin-bottom: 1.75rem; }
/* the steps are numbered 9 and 10; the size follows the column so Remove cat from box. stays on one line */
.big-steps { list-style: none; counter-reset: step 8; display: grid; gap: 1.1rem; }
.big-steps li {
  counter-increment: step; display: grid; grid-template-columns: 2.75em minmax(0, 1fr); gap: 0 .35em; align-items: baseline;
  font: 800 min(2.75rem, 7cqi)/1.05 var(--ec-font-sans); letter-spacing: -.015em;
}
.big-steps li::before { content: counter(step) "."; color: var(--ec-mustard); font-stretch: 125%; font-size: 1.45em; line-height: .8; }
.assembly__symbol { width: clamp(8.5rem, 14vw, 13.5rem); height: auto; margin-bottom: 2rem; }
.assembly__note p { color: var(--ec-text-body); max-width: 31rem; }

/* ------------------------------------------------------------------ Cattila (paper) */
.cattila__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cattila__text { container-type: inline-size; }
.cattila__text h2 { margin: 1rem 0 1.5rem; font-size: min(var(--ec-size-headline), 9cqi); }
.cattila__text > p:not(.ec-label) { max-width: 34rem; color: var(--ec-text-body); }
.cattila__text > p + p { margin-top: .9rem; }
.seal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--ec-black); }
.seal img { width: clamp(6.5rem, 9vw, 8.25rem); height: auto; }
.seal figcaption { font: 500 .75rem/1.45 var(--ec-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ec-text-muted); max-width: 16rem; }

/* ------------------------------------------------------------------ for stores (kraft) */
.stores__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.stores__text { container-type: inline-size; }
.stores h2 { margin: 1rem 0 1.25rem; font-size: min(var(--ec-size-headline), 7.5cqi); }
.br-phone { display: none; }
.stores__lede { max-width: 36rem; }
.terms { margin-top: 2rem; border-top: 2px solid var(--ec-black); max-width: 36rem; }
.terms > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--ec-line); }
.terms dt { font: 500 .75rem/1.6 var(--ec-font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ec-text-muted); }
.terms dd { font-weight: 600; }
.stores__display { max-width: 28rem; justify-self: end; width: 100%; }

/* ------------------------------------------------------------------ footer (black) */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__brand img { width: 226px; height: auto; }
.site-footer__brand p { margin-top: 1.25rem; font: 700 1.25rem/1.3 var(--ec-font-sans); font-stretch: 112%; color: var(--ec-paper); }
.site-footer h2 { margin-bottom: 1.1rem; color: var(--ec-mustard); }
.site-footer ul { list-style: none; display: grid; gap: .7rem; font-size: .9375rem; color: var(--ec-text-body); }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--ec-paper); text-decoration: underline; text-underline-offset: .2em; }
.site-footer__k { display: block; margin-bottom: .2rem; font: 500 .6875rem/1.2 var(--ec-font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ec-text-muted); }
.site-footer__fiction { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ec-line); font: 400 .8125rem/1.55 var(--ec-font-mono); color: var(--ec-text-body); }
.site-footer__fiction p:first-child { max-width: 52rem; }
.site-footer__fiction b { color: var(--ec-mustard); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-right: .35em; }
.site-footer__fiction a { color: var(--ec-paper); text-underline-offset: .2em; white-space: nowrap; }
.site-footer__legal { color: var(--ec-text-muted); white-space: nowrap; }

/* ------------------------------------------------------------------ 404 */
.notfound { padding-block: clamp(3.5rem, 9vw, 7rem); }
.notfound__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.notfound h1 { margin: 1.1rem 0 1.25rem; }
.notfound p { max-width: 30rem; color: var(--ec-text-body); }

/* ------------------------------------------------------------------ tablet and phone */
@media (max-width: 1080px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero__grid, .inbox__grid, .assembly__grid, .cattila__grid, .stores__grid, .notfound__grid, .line, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { padding-block: 2rem 3rem; }
  .ctas .ec-btn { flex: 1 1 14rem; justify-content: center; }
  .hero__photo { max-width: 30rem; }
  .section-head { align-items: start; }
  .cards-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--ec-page-gutter)); padding-inline: var(--ec-page-gutter); scroll-padding-inline: var(--ec-page-gutter); }
  .cards-scroll::-webkit-scrollbar { display: none; }
  .cards { grid-template-columns: repeat(3, 18.5rem); }
  .cards > li { scroll-snap-align: start; }
  .line { gap: 1.25rem; }
  .assembly__symbol { margin-bottom: 1.5rem; }
  .stores__display { justify-self: stretch; max-width: none; }
  .site-footer__fiction { flex-direction: column; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 1.5rem; }
  .site-footer__top > div:last-child { grid-column: 1 / -1; }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .stores h2 { font-size: min(var(--ec-size-headline), 9.4cqi); }
  .br-phone { display: inline; }
  .inbox__picts .ec-pict { font-size: .625rem; }
  .line__table td:first-child { width: 5.25rem; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav a { transition: none; }
}
