:root {
    --bg: #ffffff;
    --card: #ffffff;
    --navy: #14305a;      /* titles, headings, bold text */
    --blue: #1f5c99;      /* body text */
    --border: #1b3a66;    /* card outlines */
    --red: #e2302c;       /* Hop wordmark */
    --red-ink: #5a120f;   /* Hop wordmark outline */
    --muted: #6b7f99;
    --ph-bg: #f3f6fa;
    --ph-line: #9fb1c8;
    --term-bg: #2a2a2a;
    color-scheme: light;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--blue);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.page { max-width: 1400px; margin: 0 auto; padding: 32px 24px 40px; }

.hop {
    color: var(--red);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Keynote default */
    font-weight: 700;
    -webkit-text-stroke: 1px black;
}


.masthead { text-align: center; }
.title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--navy);
    font-size: clamp(1.45rem, 2.3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.title .hop { font-size: 1.4em; letter-spacing: 0; -webkit-text-stroke: 2px black; }
.title > span:last-child { min-width: 0; }
.tagline {
    margin: 14px 0 0;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-style: italic;
    color: var(--blue);
}
.tagline u { text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.authors { margin: 14px 0 0; color: var(--navy); font-size: 1.05rem; }
.venue { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.buttons { margin-top: 16px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.buttons a {
    border: 2px solid var(--border);
    border-radius: 999px;
    padding: 7px 20px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.buttons a:hover { background: var(--navy); color: var(--bg); }

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack > .card { flex: 1 1 auto; }
.card {
    container-type: inline-size;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 22px 22px 24px;
}
.card h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
}
.card h2 .hop { font-size: 1.12em; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin: 0 0 .65em; }
.card li::marker { color: var(--blue); }
.card li ul { margin-top: .4em; list-style: circle; }
.card li ul li { margin-bottom: .2em; }
.card b { color: var(--navy); }
.note { margin: 18px 0 0; color: var(--navy); font-style: italic; }
.question { margin: 18px 0 0; color: var(--navy); font-weight: 700; }

.figure { margin: 18px 0 0; }
.figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    padding: 10px;
    background: var(--ph-bg);
    border: 1.5px dashed var(--ph-line);
    border-radius: 12px;
    color: var(--muted);
    font-size: .8rem;
    text-align: center;
}
.ph b { color: var(--navy); font-size: .88rem; font-weight: 600; }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.split .figure { margin: 0; }
.split.cert-split { grid-template-columns: auto minmax(0, 1fr); }
.split.practice { grid-template-columns: 1fr 130px; margin-top: 0; }
.split.contact { grid-template-columns: 1fr 110px; margin-top: 0; }
@container (max-width: 330px) {
    .split, .split.cert-split, .split.practice, .split.contact { grid-template-columns: 1fr; }
    .split .figure { width: 100%; max-width: 200px; justify-self: center; }
}

.cert { width: 100%; border-collapse: collapse; color: var(--navy); font-size: .88rem; font-variant-numeric: tabular-nums; }
.cert th, .cert td { padding: 2px 8px; text-align: left; white-space: nowrap; }
.cert th { font-weight: 600; border-top: 1.5px solid var(--navy); border-bottom: 1px solid var(--navy); }
.cert th:last-child, .cert td:last-child { text-align: right; }
.cert tr:last-child td { border-bottom: 1.5px solid var(--navy); }

.prompt-wrap { margin-top: 18px; overflow-x: auto; }
.prompt {
    display: grid;
    grid-template-columns: max-content max-content;
    width: max-content;
    margin: 0 auto;
    font-size: clamp(.62rem, 3cqi, .82rem);
}
.prompt .lbl {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 6px;
    color: var(--blue);
    font-weight: 700;
}

.prompt .bar.end { background-position: center top; background-size: 1px calc(100% - 3px); }
.prompt .bar.start { background-position: center bottom; background-size: 1px calc(100% - 3px); }
.prompt .bar.start.end { background-position: center; background-size: 1px calc(100% - 6px); }


.prompt .lbl:not(:empty)::after { content: ""; width: 12px; height: 1.5px; background: currentColor; }
.prompt .ln {
    grid-column: 2;
    padding: 0 16px;
    background: var(--term-bg);
    color: #e8dc9a;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    line-height: 1.6;
    white-space: pre;
}
.prompt .ln:nth-child(2) { padding-top: 10px; border-radius: 6px 6px 0 0; }
.prompt .ln:last-child { padding-bottom: 10px; border-radius: 0 0 6px 6px; }
.prompt .bar { color: #8a8a8a; }
.prompt .c-host { color: #5fd3d3; }
.prompt .c-cmd { color: #f0883e; }
.prompt .c-user { color: #c9d26a; }
.prompt .c-target { color: #f27cc2; }
.prompt .c-time { color: #f0a34a; }
.prompt .c-yes { color: #f2f2f2; }
.prompt .c-no { color: #8fd16e; }

.prompt .lbl.two { grid-row: span 2; }

.contact p { margin: 0 0 12px; color: var(--navy); font-size: .95rem; font-weight: 700; font-style: italic; overflow-wrap: anywhere; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.foot { margin-top: 32px; text-align: center; color: var(--muted); font-size: .85rem; }
.foot p { margin: 4px 0; }


@media (max-width: 1240px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-why       { order: 1; }
    .c-stack     { order: 2; }
    .c-noise     { order: 3; }
    .c-authgrant { order: 4; }
    .c-identity  { order: 5; }
    .stack       { order: 6; }
    .c-practice  { order: 6; }
    .c-contact   { order: 7; }
}

@media (max-width: 760px) {
    .page { padding: 20px 16px 32px; }
    .grid { grid-template-columns: 1fr; }
    .stack { display: contents; }
}