/*
 * ICAI in IAMB.AI's neobrutalist style (PD-462; the owner, 2026-10-20: "STILL WITH THE BLACK/WHITE BUT WEBSITE STYLE
 * SHOULD MATCH NEOBRUTALIST STYLE ON IAMB.AI"). Loaded after icai.css, and only this file: thick borders, hard offset
 * shadows with no blur, flat blocks, nearly square corners, heavy type. Still two values only: the ink is --ic-line
 * (white in dark, black in light), so every border and shadow flips with the mode.
 */

:root {
	--ic-nb-bw: 2px;          /* A border. */
	--ic-nb-bw-lg: 3px;       /* A big block's border: the hero art, the call to action. */
	--ic-nb-sh: 4px;          /* A card's hard shadow. */
	--ic-nb-sh-lg: 8px;       /* A big block's hard shadow. */
	--ic-nb-r: 0px;           /* Corners: square, as the theme's terminal already has them (IAMB.AI's are 4px). */
	--ic-nb-ink: var(--ic-line);
	/* A hard shadow is solid ink behind a block of the page's ground. Behind a block that is itself ink (a primary
	   button, the call to action), solid ink would melt into it, so that one gets a hollow shadow: ground, then an
	   ink outline, offset (two values only, no grey). */
	--ic-nb-hollow: 3px 3px 0 var(--ic-bg), 3px 3px 0 var(--ic-nb-bw) var(--ic-nb-ink);
	--ic-nb-hollow-sm: 2px 2px 0 var(--ic-bg), 2px 2px 0 var(--ic-nb-bw) var(--ic-nb-ink);
	--ic-glow: var(--ic-nb-hollow);
}

/* --------------------------------------------------------------- the page's blocks: each column a card */

/* The theme stands each section's words on a solid column with a hairline round it (the bits fall around it). Here
   the column is a neobrutalist block: a thick border, a hard shadow, and air between the blocks so each one reads
   as a card on the rain. */
.ic-main > section > .ic-wrap, body:not(.ic-app-page) .ic-main > .ic-wrap, .ic-footer .ic-wrap {
	box-shadow: 0 0 0 var(--ic-nb-bw) var(--ic-nb-ink), var(--ic-nb-sh-lg) var(--ic-nb-sh-lg) 0 var(--ic-nb-bw) var(--ic-nb-ink);
}
body:not(.ic-app-page) .ic-main > section:has(> .ic-wrap) { padding-block: clamp(14px, 2vw, 24px); }
body:not(.ic-app-page) .ic-main > section:has(> .ic-wrap):first-child { padding-top: clamp(28px, 4vw, 48px); }
.ic-footer { padding-top: clamp(20px, 3vw, 36px); }
@media (max-width: 640px) {
	/* On a phone the shadow keeps inside the screen: the column is narrowed by its shadow. */
	.ic-main > section > .ic-wrap, body:not(.ic-app-page) .ic-main > .ic-wrap, .ic-footer .ic-wrap { width: calc(100% - var(--ic-nb-sh-lg) - 2 * var(--ic-nb-bw)); margin-inline: var(--ic-nb-bw) auto; }
}

/* -------------------------------------------------------------------------------- the press: buttons */

.ic-btn, .gts-btn {
	border: var(--ic-nb-bw) solid var(--ic-nb-ink);
	border-radius: var(--ic-nb-r);
	box-shadow: 3px 3px 0 var(--ic-nb-ink);
	font-weight: 800;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s, color 0.12s;
}
.ic-btn:hover, .gts-btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ic-nb-ink); }
.ic-btn:active, .gts-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ic-nb-ink); }
.ic-btn--primary, .gts-btn--primary { background: var(--ic-text); color: var(--ic-bg); box-shadow: var(--ic-nb-hollow); }
.ic-btn--primary:hover, .gts-btn--primary:hover { background: var(--ic-text); color: var(--ic-bg); border-color: var(--ic-nb-ink); transform: translate(1px, 1px); box-shadow: var(--ic-nb-hollow-sm); }
.ic-btn--primary:active, .gts-btn--primary:active { transform: translate(3px, 3px); box-shadow: none; }
.ic-btn--ghost, .gts-btn--ghost, .gts-btn--secondary { background: var(--ic-bg); color: var(--ic-text); border-color: var(--ic-nb-ink); }
.ic-btn--ghost:hover { border-color: var(--ic-nb-ink); }
.ic-btn--quiet { border-color: transparent; box-shadow: none; }
.ic-btn--quiet:hover, .ic-btn--quiet:active { transform: none; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; }
.gts-btn[disabled], .gts-btn[disabled]:hover, .ic-btn[disabled] { transform: none; box-shadow: none; }

/* ------------------------------------------------------------------------------------------ the header */

.ic-header, .ic-header.is-scrolled, .ic-app-page .ic-header { border-bottom: var(--ic-nb-bw-lg) solid var(--ic-nb-ink); background: var(--ic-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ic-nav a { border: var(--ic-nb-bw) solid transparent; border-radius: var(--ic-nb-r); font-weight: 700; }
.ic-nav a:hover, .ic-nav a[aria-current] { color: var(--ic-text); border-color: var(--ic-nb-ink); background: var(--ic-bg); }
.ic-mode, .ic-menu { width: 44px; height: 44px; border: var(--ic-nb-bw) solid var(--ic-nb-ink); border-radius: var(--ic-nb-r); background: var(--ic-bg); box-shadow: 2px 2px 0 var(--ic-nb-ink); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.ic-mode:hover, .ic-menu:hover { border-color: var(--ic-nb-ink); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ic-nb-ink); }
.ic-mode:active, .ic-menu:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ic-nb-ink); }
.ic-look__bits { border: var(--ic-nb-bw) solid var(--ic-nb-ink); border-radius: 0; font-weight: 800; }
:root[data-rain="on"] .ic-look__bits { background: var(--ic-text); color: var(--ic-bg); }
.ic-drawer { border-top: var(--ic-nb-bw) solid var(--ic-nb-ink); border-bottom: var(--ic-nb-bw) solid var(--ic-nb-ink); }
.ic-drawer__list a { border-bottom: var(--ic-nb-bw) solid var(--ic-nb-ink); }

/* -------------------------------------------------------------------------------------- the blocks */

.ic-section + .ic-section { border-top: var(--ic-nb-bw) solid var(--ic-nb-ink); }

/* A card: a bordered block on a hard shadow. */
.ic-culture__item, .ic-baby__show, .ic-matrix, .ic-pillar, .gts-card, .gts-notice, .ic-post, .ic-auth__side {
	border: var(--ic-nb-bw) solid var(--ic-nb-ink);
	border-radius: var(--ic-nb-r);
	background: var(--ic-bg);
	box-shadow: var(--ic-nb-sh) var(--ic-nb-sh) 0 var(--ic-nb-ink);
}
.ic-pillar { padding: 22px; }
.ic-pillar--ai { border-top-color: var(--ic-nb-ink); }
.ic-post { margin-bottom: 18px; padding: 22px 24px; }
.ic-baby__honest, .ic-baby__pitch { border-left-width: 4px; border-left-color: var(--ic-nb-ink); }

/* Numbers and stops: square tags, as IAMB.AI's step numbers. */
.ic-road__dot, .ic-baby__n, .ic-culture__n { border: var(--ic-nb-bw) solid var(--ic-nb-ink); border-radius: var(--ic-nb-r); box-shadow: 2px 2px 0 var(--ic-nb-ink); }
.ic-road__stop::before { height: var(--ic-nb-bw-lg); border-radius: 0; }
.ic-baby__step, .ic-pillar { border-top-width: var(--ic-nb-bw-lg); }
.ic-matrix__grid span { border-radius: 2px; }
.ic-matrix__key { border-radius: 2px; }

/* The hero's art and the paper: big blocks. */
.ic-funnel { border-radius: 0; box-shadow: 0 0 0 var(--ic-nb-bw-lg) var(--ic-nb-ink), var(--ic-nb-sh-lg) var(--ic-nb-sh-lg) 0 var(--ic-nb-ink); }
.ic-sheet::before { border-radius: var(--ic-nb-r); background: var(--ic-text); transform: none; inset: 12px -12px -12px 12px; }
.ic-sheet__page { border: var(--ic-nb-bw) solid #000000; border-radius: var(--ic-nb-r); box-shadow: none; transform: none; }

/* The plan, the dial, about me. */
.ic-plan__step { border-bottom: var(--ic-nb-bw) solid var(--ic-nb-ink); }
.ic-dial__track { height: 14px; border: var(--ic-nb-bw) solid var(--ic-nb-ink); border-radius: 0; background: var(--ic-bg); }
.ic-dial__fill { border-radius: 0; background: var(--ic-text); }
.ic-dial__mark { border-radius: 0; border-width: var(--ic-nb-bw-lg); }
.ic-about__monogram, .ic-about__photo { border: var(--ic-nb-bw-lg) solid var(--ic-nb-ink); border-radius: var(--ic-nb-r); }
.ic-about__portrait::after { inset: 14px -14px -14px 14px; border-radius: var(--ic-nb-r); border: 0; background: var(--ic-text); }

/* The call to action: an inverted block between two thick rules. */
.ic-access { border-top: var(--ic-nb-bw-lg) solid var(--ic-nb-ink) !important; border-bottom: var(--ic-nb-bw-lg) solid var(--ic-nb-ink); }
.ic-main > .ic-access > .ic-wrap { box-shadow: 0 0 0 var(--ic-nb-bw) var(--ic-nb-ink), var(--ic-nb-sh-lg) var(--ic-nb-sh-lg) 0 var(--ic-bg), var(--ic-nb-sh-lg) var(--ic-nb-sh-lg) 0 var(--ic-nb-bw) var(--ic-nb-ink); }
.ic-access .ic-btn { border-color: var(--ic-bg); box-shadow: 3px 3px 0 var(--ic-bg); }
.ic-access .ic-btn:hover { box-shadow: 2px 2px 0 var(--ic-bg); }
.ic-access .ic-btn:active { box-shadow: none; }
.ic-access .ic-btn--primary, .ic-access .ic-btn--primary:hover { background: var(--ic-bg); color: var(--ic-text); }
.ic-access .ic-btn--ghost { background: var(--ic-text); color: var(--ic-bg); }

/* ------------------------------------------------------------------------------- pages, forms, footer */

.ic-prose img { border: var(--ic-nb-bw) solid var(--ic-nb-ink); border-radius: var(--ic-nb-r); }
.ic-prose a:where(:not(.gts-btn, .ic-btn)) { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ic-auth__side { background: var(--ic-text); color: var(--ic-bg); box-shadow: var(--ic-nb-sh-lg) var(--ic-nb-sh-lg) 0 var(--ic-nb-ink); }
.ic-auth__mark, .ic-auth__mark circle { color: var(--ic-bg); fill: var(--ic-bg); }
.gts-input, .gts-form select, .gts-form textarea { border: var(--ic-nb-bw) solid var(--ic-nb-ink); border-radius: var(--ic-nb-r); background: var(--ic-bg); color: var(--ic-text); }
.gts-input:focus, .gts-form select:focus, .gts-form textarea:focus { border-color: var(--ic-nb-ink); box-shadow: 3px 3px 0 var(--ic-nb-ink); outline: none; }
.gts, .gts-auth, .gts-notice, .gts-sections, .gts-card, .gts-mention, .gts-person, .gts-people {
	--gts-border-width: var(--ic-nb-bw);
	--gts-radius: var(--ic-nb-r);
	--gts-radius-sm: var(--ic-nb-r);
	--gts-shadow: var(--ic-nb-sh) var(--ic-nb-sh) 0 var(--ic-nb-ink);
}
.gts-card { border-color: var(--ic-nb-ink); }
.ic-footer { border-top: var(--ic-nb-bw-lg) solid var(--ic-nb-ink); }
.ic-footer__inner--map .ic-footer__copy { border-top: var(--ic-nb-bw) solid var(--ic-nb-ink); }
.ic-footer__links a:hover, .ic-sitemap a:hover, .ic-sitemap a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: currentColor; }

/* Focus: a thick ring a step outside, in the ink. */
:focus-visible { outline: 3px solid var(--ic-focus); outline-offset: 3px; }
.ic-btn:focus-visible, .gts-btn:focus-visible, .ic-mode:focus-visible, .ic-menu:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
	.ic-btn, .gts-btn, .ic-mode, .ic-menu { transition: none; }
	.ic-btn:hover, .ic-btn:active, .gts-btn:hover, .gts-btn:active, .ic-mode:hover, .ic-mode:active, .ic-menu:hover, .ic-menu:active { transform: none; }
}

/* The Android app (PD-461): the hero's third button and the footer's link, in the same black and white blocks. */
.ic-android, .ic-android-link { flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
.ic-android > span, .ic-android__meta { white-space: nowrap; } /* On a phone the size drops under the words instead of breaking them. */
.ic-android .ic-icon { width: 18px; height: 18px; }
.ic-android__meta { font-size: 0.75em; opacity: 0.8; letter-spacing: 0.02em; }
.ic-footer__android { margin: 16px 0 0; }
.ic-android-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; padding: 8px 14px; border: var(--ic-nb-bw) solid var(--ic-nb-ink); background: var(--ic-bg); color: var(--ic-text); text-decoration: none; box-shadow: var(--ic-nb-sh) var(--ic-nb-sh) 0 var(--ic-nb-ink); transition: transform 0.1s, box-shadow 0.1s; }
.ic-android-link .ic-icon { width: 18px; height: 18px; flex: none; }
.ic-android-link:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ic-nb-ink); }
.ic-android-link:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ic-nb-ink); }
.ic-android-link:focus-visible { outline: 3px solid var(--ic-nb-ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ic-android-link { transition: none; } .ic-android-link:hover, .ic-android-link:active { transform: none; } }
