@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=M+PLUS+Code+Latin:wght@400;600;700&family=Share+Tech+Mono&display=swap');

/* ==================================================
   THEME: foundation and design tokens
   ================================================== */
:root {
	--site-bg: #ffffff;
	--site-text: #1f2933;
	--site-muted: #68737f;
	--site-border: #d7dde3;
	--site-accent: #c81e3a;
	--site-max: 1600px;
	--brand-ink: #1a1814;
	--brand-ink-light: #8a8680;
	--brand-purple: #aa3e96;
	--site-gutter: 48px;
	--layout-content-standard: 1100px;
	--layout-content-wide: 1280px;
	--layout-gutter-desktop: 48px;
	--layout-gutter-tablet: 32px;
	--layout-gutter-mobile: 24px;
	--layout-section-space-desktop: 80px;
	--layout-section-space-tablet: 72px;
	--layout-section-space-mobile: 56px;
	--layout-section-space-lower: 120px;
	--layout-section-space-feature: clamp(96px, 7vw, 160px);
	--site-header-clearance: 128px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--site-bg);
	color: var(--site-text);
	font-family: "M PLUS Code Latin", monospace;
	font-size: 1rem;
	line-height: 1.7;
	line-break: strict;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

/* THEME: accessibility */
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 100;
	padding: 8px 12px;
	background: var(--site-text);
	color: #fff;
}

.skip-link:focus {
	left: 0;
}

/* ==================================================
   THEME: not found page
   ================================================== */
.not-found-page {
	padding: var(--layout-section-space-feature) var(--layout-gutter-desktop);
}

.not-found-page__inner {
	width: min(100%, var(--layout-content-standard));
	margin-inline: auto;
}

.not-found-page__lead {
	margin: 48px 0 0;
	color: #444;
	font-size: 1rem;
	line-height: 2;
}

.not-found-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 48px;
	--content-reveal-delay: 140ms;
}

.not-found-page__actions .button-link {
	--button-width: min(100%, 320px);
	--button-min-height: 48px;
	--button-padding: 8px 24px;
	--band-reveal-color: var(--brand-purple);
	--band-reveal-surface: var(--brand-purple);
}

.not-found-page__actions .button-link--outline {
	--button-background: transparent;
	--button-border: 1px solid var(--brand-purple);
	--button-color: var(--brand-purple);
	--band-reveal-color: #fff;
	--band-reveal-surface: #fff;
}

/* ==================================================
   THEME: shared content components
   ================================================== */
/* Pages set --news-accent when a local accent color is required. */
.news-list {
	--news-accent: var(--brand-purple);
	--news-border: rgba(26, 24, 20, .18);
	--news-hover-opacity: .65;
	border-top: 1px solid var(--news-border);
}

.news-item { border-bottom: 1px solid var(--news-border); }

.news-item > a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px;
	grid-template-areas: "meta arrow" "title arrow";
	align-items: center;
	column-gap: 24px;
	row-gap: 14px;
	min-height: 104px;
	padding: 22px 0;
	color: inherit;
	text-decoration: none;
	transition: opacity .25s ease;
}

.news-item > a:hover,
.news-item > a:focus-visible { opacity: var(--news-hover-opacity); }

.news-item__meta {
	display: flex;
	grid-area: meta;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	min-width: 0;
	font-family: "Share Tech Mono", monospace;
	font-size: .875rem;
	letter-spacing: .12em;
}

.news-item__date {
	position: relative;
	z-index: 0;
	display: inline-block;
	padding: 0 8px 0 calc(8px + .12em);
	background: none;
	color: #fff;
	font-family: "Share Tech Mono", monospace;
	font-size: .875rem;
	letter-spacing: .12em;
	line-height: 1;
	--band-reveal-color: var(--news-accent);
	--band-reveal-surface: var(--news-accent);
}

.news-item__date::before {
	position: absolute;
	inset: 0 0 .15em;
	z-index: -1;
	background: var(--news-accent);
	content: '';
}

.news-item__date.js-band-reveal--surface { background-color: transparent; }
.news-item__date .band-reveal__content,
.news-item__date time { display: block; }

.news-item__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	color: var(--news-accent);
	font-family: "M PLUS Code Latin", monospace;
	font-size: .875rem;
	font-weight: 400;
	letter-spacing: .06em;
	line-height: 1.4;
	list-style: none;
}

.news-item h3 {
	grid-area: title;
	margin: 0;
	font-family: "M PLUS Code Latin", monospace;
	font-size: 1.25rem;
	font-weight: 100;
	line-height: 1.8;
	letter-spacing: .04em;
}

.news-item__arrow {
	display: flex;
	grid-area: arrow;
	align-items: center;
	justify-content: flex-end;
	width: 96px;
	color: var(--brand-ink-light);
}

.news-item__arrow .more-arrow { width: 80px; min-width: 80px; margin-left: 0; }

.news-empty {
	margin: 0;
	padding: 32px 0;
	color: var(--brand-ink-light);
	font-family: "M PLUS Code Latin", monospace;
	font-size: .8125rem;
	text-align: center;
}

.more-content {
	position: relative;
	left: 0;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	width: 100%;
	transition: left .3s ease;
}

.more-arrow {
	position: relative;
	display: block;
	flex: 1 1 auto;
	min-width: 32px;
	height: 20px;
	margin-left: 16px;
}

.more-arrow::before,
.more-arrow::after {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 1px;
	background: currentColor;
	content: '';
}

.more-arrow::before {
	top: calc(50% - .5px);
	height: 0;
	border-top: 1px solid currentColor;
	background: none;
	transition: left .3s ease;
}

.more-arrow::after {
	left: auto;
	width: 16px;
	transform: translateY(-50%) rotate(30deg);
	transform-origin: right center;
}

.arrow-link:hover .more-content,
.arrow-link:focus-visible .more-content { left: 4px; }

.arrow-link:hover .more-arrow::before,
.arrow-link:focus-visible .more-arrow::before { left: 18%; }

.button-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: var(--button-width, auto);
	max-width: var(--button-max-width, none);
	min-height: var(--button-min-height, 32px);
	padding: var(--button-padding, 8px 24px);
	border: var(--button-border, 0);
	background: var(--button-background, var(--brand-purple));
	color: var(--button-color, #fff);
	font-family: "Share Tech Mono", monospace;
	font-size: var(--button-font-size, .875rem);
	font-weight: var(--button-font-weight, 400);
	letter-spacing: var(--button-letter-spacing, .35em);
	text-decoration: none;
	text-transform: var(--button-text-transform, uppercase);
}

.section-title-group {
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	gap: 40px;
	color: var(--section-accent, var(--brand-purple));
}

.section-title-group h1,
.section-title-group h2 {
	margin: 0;
	color: currentColor;
	font-family: "Bebas Neue", sans-serif;
	font-size: 6rem;
	font-weight: 400;
	letter-spacing: .24em;
	line-height: .9;
	text-transform: uppercase;
}

.section-title-group p {
	display: flex;
	align-items: center;
	align-self: stretch;
	margin: 0 0 0 24px;
	padding: 0;
	font-family: "M PLUS Code Latin", monospace;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .08em;
	white-space: nowrap;
}

.section-title-slash {
	display: block;
	align-self: stretch;
	width: 2px;
	min-height: 1px;
	background: currentColor;
	transform: translateY(0) skewX(-45deg) scaleY(1.4);
	transform-origin: center;
}

/* ==================================================
   THEME: site header and global navigation
   ================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 300;
	background: #fff;
	transition: transform .3s ease, background-color .3s ease;
}

.site-header.is-header-hidden { transform: translateY(-100%); }

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px var(--site-gutter);
}

.nav-toggle {
	display: none;
}

.nav-logo {
	display: block;
	width: 180px;
	color: var(--brand-ink);
	text-decoration: none;
}

.nav-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.nav-links,
.site-footer__list {
	display: flex;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links a {
	color: var(--brand-ink-light);
	font-family: "M PLUS Code Latin", monospace;
	font-size: 0.9rem;
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	color: var(--brand-ink);
}

.nav-links > .menu-item { position: relative; }

.nav-submenu-toggle { display: none; }

.nav-links > .menu-item-has-children::after {
	position: absolute;
	top: 100%;
	left: -20px;
	right: -20px;
	z-index: 0;
	height: 28px;
	content: '';
}

.nav-links .sub-menu {
	position: absolute;
	top: calc(100% + 18px);
	left: 50%;
	display: grid;
	min-width: 180px;
	margin: 0;
	padding: 12px;
	background: #fff;
	border: 1px solid rgba(26, 24, 20, .12);
	box-shadow: 0 12px 24px rgba(26, 24, 20, .08);
	list-style: none;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
	visibility: hidden;
	z-index: 1;
}

.nav-links > .menu-item:hover > .sub-menu,
.nav-links > .menu-item:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
	visibility: visible;
}

.nav-links .sub-menu a {
	display: block;
	padding: 8px 12px;
	font-size: .8125rem;
	letter-spacing: .08em;
	white-space: nowrap;
}

.page-content,
.archive-layout,
.entry-content {
	width: min(100% - 32px, var(--site-max));
	margin-inline: auto;
}

.page-content,
.archive-layout,
.entry-content {
	padding-block: 56px;
}

.page-header,
.archive-header,
.entry-header {
	margin-bottom: 32px;
}

.page-header h1,
.archive-header h1,
.entry-header h1 {
	margin: 0;
	font-size: 3rem;
	line-height: 1.2;
}

.page-header__label,
.archive-header__label {
	margin: 0 0 8px;
	color: var(--site-accent);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0;
}

.entry-header__type {
	margin: 0 0 8px;
	color: var(--site-muted);
	font-size: 0.875rem;
}

.entry-frame {
	display: contents;
}

.archive-list {
	display: grid;
	gap: 20px;
}

.summary-card {
	border: 1px solid var(--site-border);
	border-radius: 8px;
}

.summary-card__link {
	display: grid;
	gap: 16px;
	padding: 20px;
	text-decoration: none;
}

.summary-card__body h2 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.summary-card__body p {
	margin: 0;
	color: var(--site-muted);
}

.entry-eyecatch {
	margin: 0 0 32px;
}

.site-footer {
	position: relative;
	z-index: 20;
	padding: 16px 0;
	border-top: 1px solid #b9b9b9;
	background-color: var(--site-footer-background, transparent);
	color: #444;
}

.site-footer__inner {
	width: min(calc(100% - (var(--site-gutter) * 2)), var(--layout-content-standard));
	margin-inline: auto;
}

.site-footer__columns {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-footer__column {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-footer__column--right {
	margin-left: auto;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.4;
	font-family: none;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__copyright a,
.site-footer__legal a {
	color: inherit;
	font-size: 0.75rem;
	line-height: 1.4;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-footer__copyright a:hover,
.site-footer__copyright a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
	opacity: 0.6;
}

/* ==================================================
   THEME: responsive and motion overrides
   ================================================== */
@media (prefers-reduced-motion: no-preference) {
	.js-band-reveal { position: relative; overflow: hidden; }
	.js-band-reveal::after {
		position: absolute;
		inset: 0;
		z-index: 1;
		background: var(--band-reveal-color, var(--brand-purple));
		content: '';
		pointer-events: none;
		transform: translateX(-101%);
	}
	.js-band-reveal .band-reveal__content { position: relative; z-index: 2; clip-path: inset(0 100% 0 0); }
	.js-band-reveal.is-band-revealed::after { animation: bwk-band-slide 700ms cubic-bezier(.77, 0, .18, 1) forwards; }
	.js-band-reveal--surface.is-band-revealed { animation: bwk-band-surface 700ms cubic-bezier(.77, 0, .18, 1) forwards; }
	.js-band-reveal.is-band-revealed .band-reveal__content { animation: bwk-band-content-reveal 200ms 350ms linear forwards; }
	@keyframes bwk-band-slide {
		0% { transform: translateX(-101%); }
		45%, 55% { transform: translateX(0); }
		100% { transform: translateX(101%); }
	}
	@keyframes bwk-band-content-reveal { to { clip-path: inset(0 0 0 0); } }
	@keyframes bwk-band-surface {
		0%, 54% { background-color: transparent; }
		55%, 100% { background-color: var(--band-reveal-surface); }
	}
	.news-item__date.js-band-reveal--surface { animation: none; }
	.news-item__date.js-band-reveal::after { top: .15em; bottom: .25em; }
	.news-item__date.js-band-reveal--surface::before { opacity: 0; }
	.news-item__date.js-band-reveal--surface.is-band-revealed::before { animation: bwk-news-date-surface 700ms cubic-bezier(.77, 0, .18, 1) forwards; }
	@keyframes bwk-news-date-surface {
		0%, 54% { opacity: 0; }
		55%, 100% { opacity: 1; }
	}
	.js-content-reveal { opacity: 0; transform: translateY(18px); }
	.js-content-reveal.is-content-revealed { animation: bwk-content-reveal 600ms cubic-bezier(.22, 1, .36, 1) var(--content-reveal-delay, 0ms) forwards; }
	@keyframes bwk-content-reveal { to { opacity: 1; transform: translateY(0); } }
	.js-section-title-reveal { opacity: 0; }
	.js-section-title-reveal.js-section-title-reveal--slash { transform: translateY(0) skewX(-45deg) scaleY(0); }
	.js-section-title-reveal--english { transform: translateX(-16px); }
	.js-section-title-reveal--japanese { transform: translateX(16px); }
	.js-section-title-reveal--slash.is-section-title-revealed { animation: bwk-section-title-slash 560ms cubic-bezier(.22, 1, .36, 1) forwards; }
	.js-section-title-reveal--english.is-section-title-revealed,
	.js-section-title-reveal--japanese.is-section-title-revealed { animation: bwk-section-title-text 400ms cubic-bezier(.22, 1, .36, 1) 520ms forwards; }
	@keyframes bwk-section-title-slash { to { opacity: 1; transform: translateY(0) skewX(-45deg) scaleY(1.4); } }
	@keyframes bwk-section-title-text { to { opacity: 1; transform: translateX(0); } }
}

@media (prefers-reduced-motion: reduce) {
	.site-header { transition: none; }
}

@media (max-width: 1024px) {
	:root {
		--site-max: 960px;
		--site-gutter: 32px;
		--site-header-clearance: 96px;
	}

	.nav-logo,
	.nav-links a,
	.site-footer__legal a {
		font-size: 0.8rem;
	}

	.site-footer__copyright,
	.site-footer__legal a {
		font-size: 0.75rem;
	}

	.nav-links {
		gap: 20px;
	}

	.site-footer__columns { gap: 0; }

	.section-title-group h1,
	.section-title-group h2 { font-size: 4rem; }
	.section-title-group p { font-size: 1rem; }
	.news-item > a { grid-template-columns: minmax(0, 1fr) 80px; min-height: 96px; }
	.news-item__arrow { width: 80px; }
}

@media (max-width: 1024px) {
	.site-nav {
		position: relative;
		padding-block: 16px;
	}

	.nav-logo {
		width: 128px;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 40px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--brand-ink);
		font: inherit;
		font-size: 0.75rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	.nav-toggle__icon,
	.nav-toggle__icon::before,
	.nav-toggle__icon::after {
		display: block;
		width: 22px;
		height: 1px;
		background: currentColor;
		content: '';
		transition: transform 0.25s ease;
	}

	.nav-toggle__icon {
		position: relative;
	}

	.nav-toggle__icon::before,
	.nav-toggle__icon::after {
		position: absolute;
		left: 0;
	}

	.nav-toggle__icon::before {
		top: -7px;
	}

	.nav-toggle__icon::after {
		top: 7px;
	}

	.site-nav.is-menu-open .nav-toggle__icon {
		background: transparent;
	}

	.site-nav.is-menu-open .nav-toggle__icon::before {
		transform: translateY(7px) rotate(45deg);
	}

	.site-nav.is-menu-open .nav-toggle__icon::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.nav-links {
		position: absolute;
		top: calc(100% + 8px);
		left: var(--site-gutter);
		right: var(--site-gutter);
		display: grid;
		gap: 0;
		padding: 8px 20px;
		max-height: calc(100dvh - 80px);
		background: var(--site-bg);
		border: 1px solid rgba(26, 24, 20, 0.14);
		opacity: 0;
		overflow-x: hidden;
		overflow-y: auto;
		pointer-events: none;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.site-nav:not(.is-menu-open) .nav-links,
	.site-nav:not(.is-menu-open) .nav-links * {
		pointer-events: none;
	}

	.site-nav.is-menu-open .nav-links {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.site-nav.is-menu-open .nav-links * { pointer-events: auto; }

	.nav-links a {
		display: block;
		padding: 14px 0;
		font-size: 1rem;
		letter-spacing: 0.16em;
	}

	.nav-links li + li {
		border-top: 1px solid rgba(26, 24, 20, 0.12);
	}

	.nav-links > .menu-item-has-children {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 52px;
	}

	.nav-links > .menu-item-has-children > a {
		grid-column: 1;
		grid-row: 1;
		padding-right: 56px;
	}

	.nav-submenu-toggle {
		position: static;
		grid-column: 2;
		grid-row: 1;
		display: grid;
		place-items: center;
		width: 52px;
		height: 52px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--brand-ink-light);
	}

	.nav-submenu-toggle span,
	.nav-submenu-toggle span::before,
	.nav-submenu-toggle span::after {
		display: block;
		content: '';
	}

	.nav-submenu-toggle span {
		position: relative;
		width: 18px;
		height: 18px;
		transform: rotate(0deg);
		transition: transform .35s cubic-bezier(.22, 1, .36, 1);
	}

	.nav-submenu-toggle span::before,
	.nav-submenu-toggle span::after {
		position: absolute;
		top: 50%;
		left: 0;
		width: 100%;
		height: 1px;
		background: currentColor;
		transform: translateY(-50%);
	}

	.nav-submenu-toggle span::after {
		transform: translateY(-50%) rotate(90deg);
		transition: transform .3s cubic-bezier(.22, 1, .36, 1);
	}

	.nav-submenu-toggle[aria-expanded="true"] span {
		transform: rotate(180deg);
	}

	.nav-submenu-toggle[aria-expanded="true"] span::after {
		transform: translateY(-50%) rotate(90deg) scaleX(0);
	}

	.nav-links > .menu-item-has-children > .sub-menu {
		position: static;
		display: none;
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: stretch;
		inset: auto;
		min-width: 0;
		width: 100%;
		gap: 0;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		pointer-events: none;
		transform: none !important;
		visibility: visible;
	}

	.nav-links .sub-menu a {
		width: 100%;
		padding: 10px 16px;
		font-size: .875rem;
	}

	.nav-links .sub-menu > .menu-item {
		position: static;
		width: 100%;
	}

	.nav-links > .menu-item-has-children.is-submenu-open > .sub-menu {
		display: grid;
		pointer-events: auto;
	}

	.nav-links > .menu-item-has-children::after { display: none; }
	.nav-links :is(.menu-item, .sub-menu) {
		left: auto;
		right: auto;
		transform: none;
	}
}

@media (max-width: 767px) {
	:root { --site-header-clearance: 112px; }

	.site-nav {
		padding-block: 8px;
	}
}

@media (max-width: 767px) {
	:root {
		--site-gutter: 24px;
	}

	.not-found-page {
		padding-right: var(--layout-gutter-mobile);
		padding-left: var(--layout-gutter-mobile);
	}

	.not-found-page__lead {
		margin-top: 32px;
		font-size: .9375rem;
	}

	.not-found-page__actions {
		margin-top: 32px;
	}

	.not-found-page__actions .button-link { --button-width: 100%; }

	.not-found-page__title {
		display: flex;
		width: max-content;
		max-width: 100%;
		margin-inline: auto;
	}

	.site-footer {
		padding-block: 26px;
	}

	.site-footer__columns {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-footer__column {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
	}

	.site-footer__column--right { margin-left: 0; }

	.site-footer__legal {
		justify-content: flex-start;
	}

	.section-title-group { gap: 18px; }
	.section-title-group h1,
	.section-title-group h2 { font-size: 2.75rem; letter-spacing: .18em; }
	.section-title-group p { margin-left: 0; font-size: .875rem; }
	.news-item > a { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "arrow"; gap: 10px; min-height: 0; padding: 20px 0; }
	.news-item h3 { font-size: 1rem; line-height: 1.7; }
	.news-item__arrow { justify-content: flex-end; gap: 8px; width: 100%; }
	.news-item__arrow::before { content: "TAP TO READ"; color: var(--brand-ink-light); font-family: "Share Tech Mono", monospace; font-size: .75rem; letter-spacing: .12em; white-space: nowrap; }
}
