@import url("fonts.css");

:root {
  --ink: #342d2a;
  --paper: #fffcf6;
  --line: #dad1c4;
  --plum: #5a394a;
  --sans: 'Ilumeas Sans', system-ui, sans-serif;
  --display: 'Ilumeas Display', Impact, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.65 var(--sans);
}
* { box-sizing: border-box }
body { margin: 0 }
a { color: inherit; text-underline-offset: .25em }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #477a94; outline-offset: 4px }
button, select { font: inherit; cursor: pointer }
header, footer { border-block: 1px solid var(--line) }
.bar { max-width: 1440px; padding: 18px clamp(20px,5vw,84px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.brand { font: 400 1.85rem/1 var(--display); letter-spacing: -.035em; text-transform: uppercase; text-decoration: none }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px,2.5vw,40px) }
nav a { font-size: .9rem; text-decoration: none }
nav a:hover, nav a[aria-current] { text-decoration: underline }
.hero { max-width: 1600px; margin: auto; display: grid; grid-template-columns: 44% 56%; background: #f7efdf }
.hero-copy { padding: clamp(38px,6vw,100px) clamp(24px,5vw,88px); align-self: center }
.eyebrow { font-size: .73rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 22px; color: var(--plum) }
h1, h2, h3, p { margin-top: 0 }
h1 { font: 400 clamp(3.1rem,6.2vw,6.8rem)/1.04 var(--display); margin-bottom: .3em; letter-spacing: -.025em; overflow-wrap: break-word }
h1 em { font: italic 1.04em/1 'Ilumeas Serif',Georgia,serif; color: var(--plum) }
h2 { font: 400 clamp(1.9rem,3.2vw,3.1rem)/1.12 var(--display); margin-bottom: .5em }
h3 { font: 400 1.6rem/1.15 var(--display); margin: 14px 0 5px }
.lede { font-size: clamp(1.05rem,1.5vw,1.28rem); line-height: 1.55; max-width: 55ch }
.plate { min-height: 370px; position: relative }
.plate img { width: 100%; height: 100%; position: absolute; object-fit: cover }
.page-home .plate img { object-position: 57% center }
.actions { gap: 18px; margin-top: 22px }
.actions:empty { display: none }
.button, .under { font-size: .96rem; font-weight: 630 }
.button { display: inline-block; padding: 11px 22px; border-radius: 4px; background: var(--plum); color: white; text-decoration: none }
.button:hover { background: #432a37 }
.wide, .reading { margin: auto; padding: clamp(40px,6vw,90px) clamp(22px,5vw,80px) }
.wide { max-width: 1440px }
.reading { max-width: 830px }
.reading p { max-width: 67ch }
.article { min-height: 66vh }
.article h2 { margin-top: 1.1em }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(16px,2vw,32px); margin-top: 30px }
.cards a { text-decoration: none }
.cards a:hover h3 { text-decoration: underline }
.cards img { width: 100%; aspect-ratio: 1.8; object-fit: cover; border-radius: 3px }
.cards p { color: #685b54 }
footer { background: #f4eee4 }
footer .bar { padding-block: 26px }
label { display: block; font-weight: 600 }
select { padding: 10px; margin: 6px 0 20px; background: white; color: var(--ink); border: 1px solid #847567; border-radius: 3px }
.skip { position: absolute; transform: translateY(-150%); background: white; padding: 8px; z-index: 5 }
.skip:focus { transform: none }
.return { display: block; padding: 12px 5%; background: #f1e6d5 }
@media(max-width:850px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .hero { grid-template-columns: 1fr 1fr }
}
@media(max-width:640px) {
  .bar { align-items: flex-start; flex-wrap: wrap; gap: 12px }
  .bar nav { gap: 13px }
  .hero { grid-template-columns: 1fr }
  .plate { min-height: 210px }
  .hero-copy { padding-block: 36px }
}
@media(max-width:380px) { .cards { grid-template-columns: 1fr } }

.rubrix-hero { background: #292a27; color: #fffaf1; padding: clamp(32px,6vw,90px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(26px,8vw,140px) }
.rubrix-hero .eyebrow { color: #e4c97c }
.rubrix-hero .button { color: #2c2924; background: #edcf85 }
.rubric-sheet { background: #fffdf7; color: #332f29; padding: clamp(20px,3.5vw,52px); margin: 0; border-top: 5px solid #dab363 }
.rubric-sheet figcaption { font-size: .85rem; color: #635543; margin-bottom: 1.4rem }
.rubric-sheet table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .92rem; text-align: left }
.rubric-sheet th,.rubric-sheet td { padding: 10px 4px; border-bottom: 1px solid #d6d0c1 }
.rubric-sheet tfoot { font-weight: 650 }
@media(max-width:720px) { .rubrix-hero { grid-template-columns: 1fr } }

.discover-nav { position:relative; z-index:5 }
.discover-nav summary { cursor:pointer; font-size:.9rem }
.discover-nav > div { position:absolute; top:calc(100% + .65rem); left:0; min-width:12rem; padding:.4rem; border:1px solid var(--line); background:var(--paper); box-shadow:0 9px 22px #342d2a18; border-radius:4px }
.discover-nav a { display:block; padding:.4rem .7rem }
.discover-nav a:hover, .discover-nav a:focus-visible { background:#f2eadc }
.language-switch { padding:.2rem .55rem; font-size:.83rem; color:var(--plum); border:1px solid var(--line); background:transparent; border-radius:4px }
.educators { background:#242824; color:#fff9ef; padding:clamp(32px,6vw,86px); display:flex; align-items:center; justify-content:space-between; gap:32px }
.educators > div { max-width:58ch }
.educators .eyebrow { color:#e5ca8e }
.educators .button { color:#27241d; background:#eacd88 }
.educators > span { font:clamp(3rem,9vw,8rem)/1 var(--display); color:#e5ca8e }
@media(max-width:640px){ .educators > span { display:none } .discover-nav > div{left:-2rem} }

.page-battery .hero-copy { container-type: inline-size; min-width: 0 }
.page-battery h1 { font-size: min(13cqi, 5.6rem); white-space: nowrap }
.app-language { font-size: .92rem }

.demo-access { max-width: 24rem; margin-top: 24px }
.demo-access label { font-size: .9rem; margin-bottom: .3rem }
.demo-access p { font-size: .9rem; margin-bottom: .6rem }
.demo-code-row { position: relative }
.demo-code-row input { width: 100%; border: 1px solid #8e8176; border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; padding: .5rem 3rem .5rem .75rem }
.demo-code-row input:focus-visible { outline: 3px solid #477a94; outline-offset: 2px }
.demo-visibility { position: absolute; inset: 1px 1px 1px auto; width: 2.6rem; display: grid; place-items: center; background: transparent; border: 0; color: var(--plum); border-radius: 4px }
.demo-visibility svg { width: 21px; height: 21px }
.demo-visibility .eye-slash { display: none }
.demo-visibility[data-visible] .eye-slash { display: block }
#demo-status { color: #842e28; margin: .45rem 0 }
.demo-access .button { border: 0; margin-top: .3rem }
