/* thehappyexperiment.com layout. Colors, type sizes and radii come only from tokens.css (generated from
   site/design/preset.json: the approved logo's yellow, ink and cream). The one button is .m3-button from components.css. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-font-body), Geneva, sans-serif;
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
}
h1, h2, .brand span { font-family: var(--md-sys-font-heading), 'Times New Roman', serif; font-weight: 700; margin: 0; }
h1 { font-size: var(--md-sys-typescale-display-small-size); line-height: var(--md-sys-typescale-display-small-line-height); }
h2 { font-size: var(--md-sys-typescale-headline-small-size); line-height: var(--md-sys-typescale-headline-small-line-height); }
p { margin: 0 0 16px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
main { flex: 1; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--md-sys-color-surface); }
.skip:focus { left: 8px; top: 8px; z-index: 2; }

header.top, .hero { background: var(--md-sys-color-cta); color: var(--md-sys-color-on-cta); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand img { width: 40px; }
.brand span { font-size: var(--md-sys-typescale-title-large-size); line-height: var(--md-sys-typescale-title-large-line-height); }
nav a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }

.hero { padding: 32px 0 48px; }
.hero h1 { margin-bottom: 16px; }
.hero p { max-width: 560px; }
.hero .m3-button { margin-top: 16px; }
.hero img { width: 160px; margin: 40px auto 0; }
.row { padding: 40px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.row h2 { margin-bottom: 12px; }
.row p:last-child { margin-bottom: 0; }

.doc { padding: 48px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: 24px; }
.portrait { width: 160px; margin-bottom: 24px; border-radius: var(--md-sys-shape-corner-full); }
.doc h2 { margin: 32px 0 12px; }
.doc .m3-button { margin-top: 16px; }
.doc p a, .row p a { overflow-wrap: anywhere; }

footer { background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface-variant); padding: 40px 0; }
footer nav { display: flex; flex-wrap: wrap; column-gap: 24px; margin: 8px 0 16px; }
footer p { margin: 0; }
footer .disclaimer { margin-top: 8px; }

@media (min-width: 840px) {
  h1 { font-size: var(--md-sys-typescale-display-large-size); line-height: var(--md-sys-typescale-display-large-line-height); }
  h2 { font-size: var(--md-sys-typescale-headline-medium-size); line-height: var(--md-sys-typescale-headline-medium-line-height); }
  .doc h1 { font-size: var(--md-sys-typescale-display-medium-size); line-height: var(--md-sys-typescale-display-medium-line-height); }
  .split { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  .hero { padding: 64px 0 96px; }
  .hero .split { grid-template-columns: 2fr 1fr; align-items: center; }
  .hero img { width: 224px; margin: 0 auto; order: 2; }
  .row { padding: 56px 0; }
  .row h2 { margin-bottom: 0; }
}
