@font-face {
    font-family: "Archivo Black";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/archivo-black-latin.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

:root {
    --ink: #121212;
    --paper: #f2eee3;
    --paper-bright: #fffdf6;
    --red: #ef3326;
    --red-dark: #c01c14;
    --acid: #e6ff38;
    --blue: #2457ff;
    --muted: #c9c2b4;
    --muted-dark: #746e64;
    --white: #fff;
    --font-display: "Archivo Black", Impact, sans-serif;
    --font-body: "IBM Plex Mono", "Courier New", monospace;
    --content-width: 1420px;
    --line: 2px solid var(--ink);
    --shadow: 7px 7px 0 var(--ink);
    --shadow-small: 4px 4px 0 var(--ink);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: radial-gradient(rgba(18, 18, 18, 0.09) 0.75px, transparent 0.75px);
    background-size: 8px 8px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0 48%, rgba(239, 51, 38, 0.035) 48% 51%, transparent 51% 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 4px solid var(--blue);
    outline-offset: 3px;
}

::selection {
    color: var(--ink);
    background: var(--acid);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--blue);
    font-weight: 600;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

#container {
    min-height: 100vh;
}

#main-content {
    width: min(calc(100% - 48px), var(--content-width));
    min-height: 50vh;
    margin: 0 auto;
    padding: 64px 0 110px;
}

.site-header {
    color: var(--ink);
    background: var(--paper-bright);
    border-bottom: var(--line);
}

#header {
    display: flex;
    width: min(calc(100% - 48px), var(--content-width));
    min-height: 118px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
    text-decoration: none;
}

.brand .logo {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    transition: transform 160ms ease;
}

.brand:hover .logo {
    transform: rotate(-6deg) scale(1.04);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand .title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -0.06em;
}

.brand .description {
    margin-top: 7px;
    color: var(--muted-dark);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-search {
    display: grid;
    width: min(100%, 460px);
    grid-template-columns: minmax(0, 1fr) auto;
    box-shadow: var(--shadow-small);
}

.search-field,
.search-button {
    min-height: 50px;
    border: var(--line);
}

.search-field {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    color: var(--ink);
    background: var(--white);
    border-right: 0;
    border-radius: 0;
}

.search-field::placeholder {
    color: #686258;
}

.search-button {
    padding: 0 20px;
    color: var(--ink);
    background: var(--acid);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.search-button:hover {
    color: var(--white);
    background: var(--blue);
}

#navbar {
    color: var(--white);
    background: var(--ink);
    border-top: var(--line);
}

#nav-links {
    display: flex;
    width: min(calc(100% - 48px), var(--content-width));
    min-height: 60px;
    margin: 0 auto;
    padding: 0;
    align-items: stretch;
    list-style: none;
}

#nav-links li {
    display: flex;
    border-right: 1px solid #484848;
}

#nav-links li:first-child {
    border-left: 1px solid #484848;
}

#nav-links a {
    display: flex;
    padding: 0 24px;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-decoration: none;
    text-transform: uppercase;
}

#nav-links a:hover,
#nav-links a[aria-current="page"] {
    color: var(--ink);
    background: var(--acid);
}

#nav-links .nav-members {
    margin-left: auto;
    border-left: 1px solid #484848;
}

#nav-links .nav-members a {
    color: var(--ink);
    background: var(--red);
}

#nav-links .nav-members a:hover {
    background: var(--paper-bright);
}

.menu-toggle {
    display: none;
}

.eyebrow,
.board-kicker,
.row-type,
.metric-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 25px;
    height: 9px;
    margin-right: 9px;
    content: "";
    background: var(--red);
    transform: skew(-18deg);
}

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: var(--line);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: var(--shadow-small);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}

.button-primary {
    background: var(--red);
}

.button-ghost {
    background: var(--paper-bright);
}

.button-dark {
    color: var(--white);
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--red-dark);
}

.hero {
    display: grid;
    min-height: 650px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    color: var(--paper-bright);
    background: var(--ink);
    border: var(--line);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    padding: clamp(42px, 6vw, 92px);
    flex-direction: column;
    justify-content: center;
}

.hero-copy::after {
    position: absolute;
    right: -55px;
    bottom: 40px;
    width: 200px;
    height: 14px;
    content: "";
    background: var(--blue);
    transform: rotate(-37deg);
}

.hero .eyebrow {
    color: var(--acid);
}

.hero h1 {
    max-width: 760px;
    margin: 25px 0 28px;
    font-family: var(--font-display);
    font-size: clamp(4rem, 9vw, 8.7rem);
    line-height: 0.84;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.hero-lede {
    max-width: 720px;
    margin: 0;
    color: #d8d2c8;
    font-size: clamp(1rem, 1.4vw, 1.17rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    margin-top: 42px;
    flex-wrap: wrap;
    gap: 16px;
}

.hero .button-ghost {
    color: var(--paper-bright);
    background: transparent;
    border-color: var(--paper-bright);
    box-shadow: 4px 4px 0 var(--paper-bright);
}

.hero-poster {
    position: relative;
    display: flex;
    min-width: 0;
    margin: 48px 58px 48px 20px;
    padding: 40px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    color: var(--ink);
    background-color: var(--acid);
    background-image: repeating-linear-gradient(-11deg, transparent 0 25px, rgba(18, 18, 18, 0.06) 26px 27px);
    border: 3px solid var(--paper-bright);
    box-shadow: 13px 13px 0 var(--red);
    transform: rotate(2deg);
}

.hero-poster::before,
.hero-poster::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.hero-poster::before {
    top: 35%;
    right: -55px;
    width: 180px;
    height: 180px;
    border: 28px solid var(--blue);
    border-radius: 50%;
}

.hero-poster::after {
    right: 34px;
    bottom: 38px;
    width: 110px;
    height: 14px;
    background: var(--red);
    box-shadow: 0 25px 0 var(--red), 0 50px 0 var(--red);
    transform: rotate(-12deg);
}

.poster-kicker,
.poster-note {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-poster > strong {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(4rem, 7vw, 7.2rem);
    line-height: 0.73;
    letter-spacing: -0.09em;
}

.hero-poster > strong span {
    color: var(--red);
    text-shadow: 4px 4px 0 var(--ink);
}

.poster-note {
    max-width: 210px;
    padding: 12px;
    background: var(--paper-bright);
    border: var(--line);
    transform: rotate(-3deg);
}

.poster-note small {
    font-size: 0.63rem;
}

.poster-tape {
    position: absolute;
    z-index: 3;
    width: 112px;
    height: 27px;
    background: rgba(242, 238, 227, 0.75);
}

.poster-tape-top {
    top: 2px;
    left: -26px;
    transform: rotate(-34deg);
}

.poster-tape-bottom {
    right: -27px;
    bottom: 8px;
    transform: rotate(-36deg);
}

.signal-strip {
    display: grid;
    margin: 46px 0 105px;
    grid-template-columns: repeat(4, 1fr);
    color: var(--paper-bright);
    background: var(--red);
    border: var(--line);
    box-shadow: var(--shadow-small);
}

.signal-strip span {
    display: flex;
    min-height: 62px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    border-right: var(--line);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.signal-strip span:last-child {
    border-right: 0;
}

.home-section {
    scroll-margin-top: 30px;
}

.section-heading {
    display: flex;
    margin-bottom: 40px;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.section-heading h2,
.page-intro h1,
.thread-header h1,
.single-author-details h1,
.not-found h1 {
    margin: 14px 0 0;
    font-family: var(--font-display);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 900px;
    font-size: clamp(2.6rem, 5.6vw, 5.5rem);
}

.text-link {
    flex: 0 0 auto;
    padding-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.main-topic-container {
    border-top: var(--line);
}

.main-topic-item {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.74fr);
    background: var(--paper-bright);
    border-right: var(--line);
    border-bottom: var(--line);
    border-left: var(--line);
}

.main-topic-item:nth-child(even) {
    background: #e8e2d6;
}

.main-topic-row-left-part {
    display: grid;
    min-width: 0;
    padding: 27px 30px;
    grid-template-columns: 42px 88px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    text-decoration: none;
    border-right: var(--line);
}

.main-topic-row-left-part:hover h3,
.sub-section-single-page-row-left-part:hover h3,
.directory-card:hover h2 {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 5px;
}

.topic-number {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.main-topic-icon,
.sub-section-single-page-icon {
    object-fit: contain;
}

.main-topic-row-left-part h3,
.sub-section-single-page-row-left-part h3,
.directory-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.main-topic-row-left-part p,
.sub-section-single-page-row-left-part p,
.directory-card p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #5f5a51;
    font-size: 0.84rem;
    line-height: 1.6;
}

.main-topic-row-right-part,
.sub-section-single-page-row-right-part,
.sub-topic-row-right-part {
    display: grid;
    min-width: 0;
    grid-template-columns: 82px 82px minmax(0, 1fr);
}

.topic-stat,
.row-metric,
.right-column-item {
    display: flex;
    min-width: 0;
    padding: 18px 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border-right: 1px solid var(--muted);
}

.topic-stat strong,
.row-metric strong {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
}

.topic-stat span,
.row-metric span,
.metric-label,
.last-post-text time {
    color: var(--muted-dark);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.topic-stat span,
.row-metric span {
    margin-top: 7px;
}

.last-post-container {
    display: flex;
    min-width: 0;
    padding: 18px 22px;
    justify-content: center;
    flex-direction: column;
}

.last-post-text {
    display: flex;
    min-width: 0;
    margin-top: 5px;
    flex-direction: column;
}

.last-post-text a,
.last-post-text > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-callout {
    display: grid;
    margin-top: 110px;
    padding: clamp(34px, 5vw, 68px);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px 60px;
    background: var(--acid);
    border: var(--line);
    box-shadow: var(--shadow);
}

.home-callout .eyebrow {
    grid-column: 1 / -1;
}

.home-callout blockquote {
    max-width: 980px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.page-intro,
.thread-header {
    position: relative;
    max-width: 1160px;
    margin-bottom: 62px;
}

.page-intro::after {
    display: block;
    width: 110px;
    height: 13px;
    margin-top: 30px;
    content: "";
    background: var(--red);
    transform: skew(-20deg);
}

.page-intro h1,
.thread-header h1,
.single-author-details h1 {
    font-size: clamp(3.2rem, 7vw, 7.2rem);
}

.page-intro > p:last-child,
.thread-header > p:not(.eyebrow) {
    max-width: 880px;
    margin: 22px 0 0;
    color: #555047;
    font-size: clamp(0.96rem, 1.5vw, 1.15rem);
}

.topic-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.directory-card {
    position: relative;
    display: grid;
    min-height: 340px;
    padding: 34px;
    grid-template-columns: 60px 1fr;
    align-content: start;
    gap: 16px 20px;
    background: var(--paper-bright);
    border: var(--line);
    text-decoration: none;
    box-shadow: var(--shadow-small);
}

.directory-card:nth-child(2),
.directory-card:nth-child(3) {
    background: var(--acid);
}

.directory-card img {
    width: 72px;
    height: 72px;
    grid-row: 1 / 3;
}

.directory-card h2,
.directory-card p,
.directory-card-link {
    grid-column: 2;
}

.directory-card .topic-number {
    position: absolute;
    top: 26px;
    right: 30px;
}

.directory-card-link {
    align-self: end;
    margin-top: 35px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: underline;
    text-transform: uppercase;
}

.sub-sections-container {
    margin-bottom: 46px;
    border: var(--line);
    box-shadow: var(--shadow-small);
}

.sub-section-first-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.74fr);
    color: var(--paper-bright);
    background: var(--ink);
}

.sub-topic-row-left-part {
    display: flex;
    min-width: 0;
    padding: 22px 28px;
    align-items: center;
    text-decoration: none;
    border-right: 2px solid #4a4a4a;
}

.sub-topic-row-left-part h2 {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.board-kicker {
    color: var(--acid);
}

.right-column-item {
    color: #cfcfcf;
    border-color: #4a4a4a;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.right-column-item.last-post {
    align-items: flex-start;
    padding-left: 22px;
}

.sub-section-single-page {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.74fr);
    background: var(--paper-bright);
    border-top: 1px solid var(--muted);
}

.sub-section-single-page:first-child {
    border-top: 0;
}

.sub-section-single-page-row-left-part {
    display: grid;
    min-width: 0;
    min-height: 126px;
    padding: 22px 28px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    text-decoration: none;
    border-right: var(--line);
}

.sub-section-single-page-row-left-part > div:first-child:last-child {
    grid-column: 1 / -1;
}

.sub-section-single-page-row-left-part h3 {
    margin-top: 4px;
    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
}

.row-type {
    color: var(--red-dark);
}

.back-link {
    display: inline-flex;
    margin-bottom: 34px;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.thread-header {
    max-width: 1100px;
    margin-bottom: 46px;
}

.thread-header h1 {
    overflow-wrap: anywhere;
}

.thread-meta {
    display: flex;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 10px;
}

.thread-meta span {
    padding: 6px 10px;
    color: var(--paper-bright);
    background: var(--ink);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thread {
    display: grid;
    gap: 22px;
}

.profile-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    background: var(--paper-bright);
    border: var(--line);
    box-shadow: var(--shadow-small);
}

.profile-card.first-comment {
    border-top: 12px solid var(--red);
    box-shadow: 8px 8px 0 var(--ink);
}

.profile-left-column {
    padding: 26px;
    border-right: var(--line);
}

.profile-author {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
}

.profile-image {
    width: 104px;
    height: 104px;
    object-fit: cover;
    background: var(--acid);
    border: var(--line);
}

.profile-author span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.profile-author strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.profile-author small {
    margin-top: 5px;
    color: var(--muted-dark);
    font-size: 0.68rem;
    line-height: 1.4;
}

.profile-right-column {
    min-width: 0;
    padding: 30px clamp(26px, 5vw, 60px) 38px;
}

.comment-meta {
    display: flex;
    margin-bottom: 25px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.comment-meta span {
    padding: 5px 9px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.op-label {
    background: var(--acid);
}

.reply-label {
    color: var(--paper-bright);
    background: var(--blue);
}

.comment-meta time {
    color: var(--muted-dark);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-right-column > p {
    max-width: 880px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-line;
}

.empty-state,
.search-results-empty {
    padding: 35px;
    background: var(--paper-bright);
    border: var(--line);
    box-shadow: var(--shadow-small);
}

.empty-state strong {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
}

.authors-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.author-box {
    display: flex;
    min-width: 0;
    min-height: 350px;
    overflow: hidden;
    flex-direction: column;
    background: var(--paper-bright);
    border: var(--line);
    text-decoration: none;
    box-shadow: var(--shadow-small);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.author-box:nth-child(3n + 2) .author-icon {
    background: var(--acid);
}

.author-box:nth-child(3n + 3) .author-icon {
    background: var(--blue);
}

.author-box:hover {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0 var(--ink);
}

.author-icon {
    display: flex;
    min-height: 235px;
    align-items: flex-end;
    justify-content: center;
    background: var(--red);
    border-bottom: var(--line);
}

.author-icon img {
    width: 210px;
    height: 210px;
    object-fit: contain;
}

.author-name {
    display: flex;
    padding: 22px;
    flex: 1;
    flex-direction: column;
}

.author-name strong {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    text-transform: uppercase;
}

.author-name > span {
    margin-top: 8px;
    color: var(--muted-dark);
    font-size: 0.76rem;
}

.author-name small {
    margin-top: auto;
    padding-top: 19px;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: underline;
    text-transform: uppercase;
}

.single-author-profile {
    max-width: 1200px;
    margin: 0 auto;
}

.single-author-box {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    background: var(--paper-bright);
    border: var(--line);
    box-shadow: var(--shadow);
}

.single-author-icon {
    display: flex;
    min-height: 560px;
    padding: 34px;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: var(--red);
    border-right: var(--line);
}

.single-author-icon img {
    width: min(100%, 400px);
    height: auto;
}

.single-author-details {
    padding: clamp(38px, 6vw, 76px);
}

.single-author-details h1 {
    overflow-wrap: anywhere;
}

.author-role {
    display: inline-block;
    margin: 20px 0 28px;
    padding: 6px 10px;
    color: var(--paper-bright);
    background: var(--blue);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(-1deg);
}

.single-author-bio {
    max-width: 650px;
    color: #4e4a43;
    font-size: 1rem;
    line-height: 1.8;
}

.author-stats {
    display: grid;
    margin-top: 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: var(--line);
}

.stat-item {
    display: flex;
    min-height: 130px;
    padding: 20px;
    justify-content: center;
    flex-direction: column;
}

.stat-item + .stat-item {
    border-left: var(--line);
}

.stat-item strong {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
}

.stat-item span {
    margin-top: 8px;
    color: var(--muted-dark);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
}

.search-page-form {
    max-width: 980px;
    margin-bottom: 42px;
}

.search-page-form > label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.search-page-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    box-shadow: var(--shadow-small);
}

.search-page-form input,
.search-page-form button {
    min-height: 64px;
    border: var(--line);
    border-radius: 0;
}

.search-page-form input {
    min-width: 0;
    padding: 0 19px;
    background: var(--white);
    border-right: 0;
}

.search-page-form button {
    padding: 0 28px;
    color: var(--paper-bright);
    background: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.loader-container {
    position: relative;
    max-width: 1100px;
}

.search-loading {
    width: 52px;
    height: 52px;
    margin: 50px auto;
    border: 8px solid var(--ink);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.search-result {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    background: var(--paper-bright);
    border-right: var(--line);
    border-bottom: var(--line);
    border-left: var(--line);
    text-decoration: none;
}

.search-result:first-child {
    border-top: var(--line);
}

.search-result:hover {
    color: var(--paper-bright);
    background: var(--blue);
}

.search-result-count {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 1.2rem;
    border-right: var(--line);
}

.search-result:hover .search-result-count {
    color: var(--acid);
}

.search-result-body {
    display: flex;
    min-width: 0;
    padding: 22px 28px;
    flex-direction: column;
}

.search-result-body small {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.search-result-body strong {
    margin: 3px 0 7px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.search-result-body > span {
    display: -webkit-box;
    overflow: hidden;
    color: #655f56;
    font-size: 0.78rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-result:hover .search-result-body > span {
    color: var(--paper-bright);
}

.not-found {
    max-width: 1040px;
    min-height: 580px;
    padding: clamp(40px, 8vw, 100px);
    color: var(--paper-bright);
    background: var(--ink);
    border: var(--line);
    box-shadow: 10px 10px 0 var(--red);
}

.error-code {
    display: inline-block;
    margin: 0;
    padding: 6px 10px;
    color: var(--ink);
    background: var(--acid);
    font-weight: 600;
}

.not-found h1 {
    max-width: 820px;
    margin: 40px 0 24px;
    font-size: clamp(4rem, 9vw, 9rem);
}

.not-found > p:not(.error-code) {
    max-width: 680px;
    margin-bottom: 38px;
    color: #d6d0c5;
}

#footer {
    color: var(--paper-bright);
    background: var(--ink);
    border-top: 9px solid var(--red);
}

.footer-content,
.footer-bottom {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
}

.footer-content {
    display: grid;
    padding: 62px 0 55px;
    grid-template-columns: 1.25fr 0.65fr 1fr;
    gap: 70px;
}

.footer-statement {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-statement img {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
}

.footer-statement p {
    max-width: 470px;
    margin: 0;
    color: #cbc5bb;
}

.footer-statement strong {
    color: var(--acid);
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.footer-links h2,
.footer-code h2 {
    margin: 0 0 17px;
    color: var(--acid);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 7px;
}

.footer-links a {
    font-size: 0.78rem;
}

.footer-code p {
    max-width: 390px;
    margin: 0;
    color: #a9a39a;
    font-size: 0.78rem;
}

.footer-bottom {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #8e8981;
    border-top: 1px solid #3b3b3b;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.footer-stamp {
    padding: 4px 8px;
    color: var(--ink);
    background: var(--red);
    font-weight: 600;
    transform: rotate(-1deg);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    }

    .hero-poster {
        margin-right: 35px;
    }

    .main-topic-item,
    .sub-section-first-row,
    .sub-section-single-page {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
    }

    .authors-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    #header {
        min-height: 102px;
    }

    .brand .logo {
        width: 64px;
        height: 64px;
    }

    .site-search {
        width: min(100%, 380px);
    }

    #navbar {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        min-height: 54px;
        margin-left: 24px;
        padding: 0;
        align-items: center;
        gap: 12px;
        color: var(--paper-bright);
        background: transparent;
        border: 0;
        font-size: 0.73rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .menu-toggle-lines,
    .menu-toggle-lines::before,
    .menu-toggle-lines::after {
        display: block;
        width: 24px;
        height: 3px;
        content: "";
        background: var(--acid);
    }

    .menu-toggle-lines {
        position: relative;
    }

    .menu-toggle-lines::before {
        position: absolute;
        top: -7px;
    }

    .menu-toggle-lines::after {
        position: absolute;
        top: 7px;
    }

    #nav-links {
        position: absolute;
        z-index: 20;
        top: 100%;
        left: 24px;
        display: none;
        width: min(calc(100% - 48px), 560px);
        min-height: 0;
        flex-direction: column;
        color: var(--ink);
        background: var(--paper-bright);
        border: var(--line);
        box-shadow: var(--shadow);
    }

    #nav-links.show {
        display: flex;
    }

    #nav-links li,
    #nav-links li:first-child,
    #nav-links .nav-members {
        margin: 0;
        border: 0;
        border-bottom: 1px solid var(--muted);
    }

    #nav-links li:last-child {
        border-bottom: 0;
    }

    #nav-links a {
        width: 100%;
        min-height: 52px;
        padding: 0 18px;
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: 590px;
    }

    .hero-poster {
        min-height: 560px;
        margin: 0 55px 64px;
        transform: rotate(-1deg);
    }

    .signal-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .signal-strip span:nth-child(2) {
        border-right: 0;
    }

    .signal-strip span:nth-child(-n + 2) {
        border-bottom: var(--line);
    }

    .main-topic-item,
    .sub-section-single-page {
        grid-template-columns: 1fr;
    }

    .main-topic-row-left-part,
    .sub-section-single-page-row-left-part {
        border-right: 0;
        border-bottom: var(--line);
    }

    .main-topic-row-right-part,
    .sub-section-single-page-row-right-part {
        min-height: 105px;
        grid-template-columns: 90px 90px minmax(0, 1fr);
    }

    .sub-section-first-row {
        grid-template-columns: 1fr;
    }

    .sub-topic-row-left-part {
        border-right: 0;
    }

    .sub-topic-row-right-part {
        display: none;
    }

    .home-callout {
        grid-template-columns: 1fr;
    }

    .home-callout .eyebrow {
        grid-column: auto;
    }

    .home-callout .button {
        justify-self: start;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-statement {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    #main-content,
    #header,
    .footer-content,
    .footer-bottom {
        width: min(calc(100% - 30px), var(--content-width));
    }

    #main-content {
        padding: 35px 0 80px;
    }

    #header {
        padding: 17px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .brand {
        align-self: flex-start;
    }

    .site-search {
        width: 100%;
    }

    .menu-toggle {
        margin-left: 15px;
    }

    #nav-links {
        left: 15px;
        width: calc(100% - 30px);
    }

    .hero-copy {
        min-height: 560px;
        padding: 38px 25px 55px;
    }

    .hero h1 {
        font-size: clamp(3.8rem, 19vw, 6rem);
    }

    .hero-copy::after {
        display: none;
    }

    .hero-poster {
        min-height: 480px;
        margin: 0 25px 46px;
        padding: 28px;
    }

    .hero-poster > strong {
        font-size: clamp(4.2rem, 19vw, 6.4rem);
    }

    .signal-strip {
        margin: 35px 0 80px;
        grid-template-columns: 1fr;
    }

    .signal-strip span,
    .signal-strip span:nth-child(2) {
        min-height: 52px;
        border-right: 0;
        border-bottom: var(--line);
    }

    .signal-strip span:last-child {
        border-bottom: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-topic-row-left-part {
        padding: 24px 20px;
        grid-template-columns: 28px 65px minmax(0, 1fr);
        gap: 15px;
    }

    .main-topic-icon {
        width: 65px;
        height: 65px;
    }

    .main-topic-row-right-part,
    .sub-section-single-page-row-right-part {
        grid-template-columns: 72px 72px minmax(0, 1fr);
    }

    .last-post-container {
        padding: 15px;
    }

    .home-callout {
        margin-top: 78px;
        padding: 30px 24px;
    }

    .topic-directory,
    .authors-container {
        grid-template-columns: 1fr;
    }

    .directory-card {
        min-height: 300px;
        padding: 27px 23px;
    }

    .sub-topic-row-left-part,
    .sub-section-single-page-row-left-part {
        padding: 20px;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-left-column {
        padding: 19px;
        border-right: 0;
        border-bottom: var(--line);
    }

    .profile-author {
        align-items: center;
        flex-direction: row;
    }

    .profile-image {
        width: 78px;
        height: 78px;
    }

    .profile-right-column {
        padding: 24px 20px 30px;
    }

    .comment-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .single-author-box {
        grid-template-columns: 1fr;
    }

    .single-author-icon {
        min-height: 390px;
        border-right: 0;
        border-bottom: var(--line);
    }

    .single-author-details {
        padding: 34px 24px;
    }

    .search-page-form > div {
        grid-template-columns: 1fr;
        box-shadow: none;
    }

    .search-page-form input {
        border-right: var(--line);
        border-bottom: 0;
    }

    .search-result {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .search-result-count {
        padding: 12px;
    }

    .search-result-body {
        padding: 19px;
    }

    .footer-content {
        padding: 48px 0;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-statement {
        grid-column: auto;
    }

    .footer-bottom {
        padding: 20px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .brand .description {
        display: none;
    }

    .search-field,
    .search-button {
        min-height: 46px;
    }

    .search-button {
        padding: 0 13px;
        font-size: 0.7rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-poster {
        min-height: 420px;
        margin-right: 18px;
        margin-left: 18px;
    }

    .main-topic-row-left-part {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .main-topic-icon {
        display: none;
    }

    .main-topic-row-right-part,
    .sub-section-single-page-row-right-part {
        grid-template-columns: repeat(2, 1fr);
    }

    .last-post-container {
        min-height: 86px;
        grid-column: 1 / -1;
        border-top: 1px solid var(--muted);
    }

    .row-metric:nth-child(2),
    .topic-stat:nth-child(2) {
        border-right: 0;
    }

    .sub-section-single-page-row-left-part {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .sub-section-single-page-icon {
        width: 48px;
        height: 48px;
    }

    .author-stats {
        grid-template-columns: 1fr;
    }

    .stat-item + .stat-item {
        border-top: var(--line);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
