/* ==========================================================================
   Standard Law Academic — publisher portal
   Design system, components and responsive layout
   ========================================================================== */

:root {
  --ink: #141415;
  --ink-soft: #383838;
  --muted: #5e5e5a;
  --muted-light: #7b7b76;
  --paper: #ffffff;
  --ivory: #f7f6f2;
  --ivory-deep: #efede7;
  --line: #e2dfd8;
  --line-strong: #cbc8c0;

  /* Press accent — antique gold */
  --accent: #8a6a2f;
  --accent-text: #6f5522;
  --accent-deep: #57431a;
  --accent-soft: #f3eee2;
  --accent-tint: #d6b97a;

  --action: #141415;
  --action-hover: #2b2b2b;
  --gold: #c6a15b;
  --gold-light: #e6c88f;
  --green: #256b4a;
  --green-soft: #eaf4ee;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1280px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 21, 0.04), 0 4px 14px rgba(20, 20, 21, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 20, 21, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 20, 21, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin-top: 0;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 500;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border: 2px solid var(--accent);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Shared typographic elements
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.eyebrow--light {
  color: var(--gold-light);
}

.eyebrow--light::before {
  background: var(--gold-light);
}

.lede {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.text-link:hover {
  color: var(--accent-deep);
  text-decoration: none;
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

.arrow {
  transition: transform 0.2s var(--ease);
}

.text-link--light {
  color: #fff;
}

.text-link--light:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Buttons and labels
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
}

.btn--primary:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.btn--outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 38px;
  padding-inline: 17px;
  font-size: 13px;
}

.btn--lg {
  min-height: 48px;
  padding-inline: 27px;
  font-size: 14.5px;
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.6;
  text-transform: uppercase;
}

.tag--free {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.tag--oa {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Utility bar
   -------------------------------------------------------------------------- */

.utility-bar {
  background: var(--ink);
  color: #a9a9a4;
  font-size: 10.5px;
  line-height: 1.4;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 35px;
}

.utility-bar__statement {
  color: #a9a9a4;
}

.utility-bar__statement strong {
  color: #ecece8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.utility-links a {
  color: #c7c7c2;
}

.utility-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Portal header
   -------------------------------------------------------------------------- */

.portal-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  transition: box-shadow 0.2s ease;
}

.portal-header.is-stuck {
  box-shadow: 0 4px 18px rgba(20, 20, 21, 0.07);
}

.portal-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
  color: var(--ink);
}

.portal-brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.portal-brand__mark {
  height: 44px;
  width: auto;
  flex: none;
}

.portal-brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portal-brand__name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.portal-brand__sub {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.portal-nav a {
  position: relative;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.portal-nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 1.5px;
  background: transparent;
}

.portal-nav a:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.portal-nav a:hover::after,
.portal-nav a.is-current::after {
  background: var(--accent);
}

.portal-nav a.is-current {
  color: var(--accent-text);
  font-weight: 500;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.portal-actions .btn {
  min-height: 38px;
  padding-inline: 17px;
  font-size: 12.5px;
}

.portal-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.portal-nav-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 17px;
}

.portal-nav-toggle .bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.portal-nav-open .portal-nav-toggle .bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.portal-nav-open .portal-nav-toggle .bars span:nth-child(2) {
  opacity: 0;
}

.portal-nav-open .portal-nav-toggle .bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Portal hero
   -------------------------------------------------------------------------- */

.portal-hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  background-color: var(--ivory);
  background-image: url("../assets/pattern-tiles.svg");
  background-position: center top;
  background-size: 720px auto;
}

.portal-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 64px;
  align-items: center;
}

.portal-hero__copy {
  min-width: 0;
}

.portal-hero__title {
  max-width: 660px;
  margin: 0;
  color: #403e3b;
  font-family: var(--serif);
  font-size: clamp(44px, 4.4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.portal-hero__lede {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}

.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.portal-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 38px 0 0;
  border-top: 1px solid var(--line-strong);
}

.portal-hero__facts div {
  padding: 15px 18px 0 0;
}

.portal-hero__facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.portal-hero__facts dt {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-hero__facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
}

.hero-visual {
  position: relative;
  padding: 30px 28px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f2eee4 0%, #faf8f3 100%);
  box-shadow: var(--shadow-sm);
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: var(--accent);
}

.cover-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 0 4px;
}

.cover-stack__item {
  width: 31%;
  margin-inline: -9px;
  padding: 5px;
  border: 1px solid #d8d3c8;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 20, 21, 0.17);
}

.cover-stack__item img {
  width: 100%;
  height: auto;
}

.cover-stack__item:nth-child(1) {
  z-index: 1;
  transform: translateY(14px) rotate(-3.5deg);
}

.cover-stack__item:nth-child(2) {
  z-index: 3;
  width: 35%;
  transform: translateY(-6px);
}

.cover-stack__item:nth-child(3) {
  z-index: 2;
  transform: translateY(14px) rotate(3.5deg);
}

.hero-visual__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-visual__caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 86px 0;
}

.section--tight {
  padding: 62px 0;
}

.section--ivory {
  background: var(--ivory);
}

.section--line {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.section-head__aside {
  flex: none;
  padding-bottom: 5px;
}

.section-head__note {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.section-intro {
  max-width: 760px;
  margin: -14px 0 36px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Journal cards
   -------------------------------------------------------------------------- */

.journal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.journal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.journal-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.journal-card__cover-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 28px 0;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.journal-card__cover {
  width: 62%;
  max-width: 180px;
  height: auto;
  border: 1px solid #dedbd4;
  box-shadow: 0 12px 26px rgba(20, 20, 21, 0.16);
  transform: translateY(1px);
}

.journal-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 25px 25px;
}

.journal-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.journal-card__index {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.journal-card__title {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.journal-card__title a {
  color: var(--ink);
}

.journal-card__title a:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.journal-card__cn {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.journal-card__desc {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.journal-card__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.journal-card__scope li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.journal-card__link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Press band
   -------------------------------------------------------------------------- */

.press-band {
  padding: 86px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.press-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: start;
}

.press-band__copy h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.press-band__copy p {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.press-band__copy .lede {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 19px;
}

.press-facts {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.press-facts__head {
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.press-facts dl {
  margin: 0;
}

.press-facts dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.press-facts dl > div:last-child {
  border-bottom: 0;
}

.press-facts dl dt {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.press-facts dl dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Standards
   -------------------------------------------------------------------------- */

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.standard-cell {
  padding: 28px 26px 30px 0;
  border-right: 1px solid var(--line);
}

.standard-cell + .standard-cell {
  padding-left: 26px;
}

.standard-cell:last-child {
  border-right: 0;
}

.standard-cell__number {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.standard-cell h3 {
  margin: 0 0 7px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.standard-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Publishing model band
   -------------------------------------------------------------------------- */

.model-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.model-band::after {
  content: "ACTA";
  position: absolute;
  right: -12px;
  bottom: -58px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: 190px;
  line-height: 1;
  pointer-events: none;
}

.model-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 66px 0;
}

.model-band h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.model-band p {
  max-width: 620px;
  margin: 0 0 18px;
  color: #b8b8b3;
  font-size: 14px;
  line-height: 1.75;
}

.model-band__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.model-band__facts div {
  padding: 4px 20px;
}

.model-band__facts div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.model-band__facts dt {
  color: #9a9a95;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-band__facts dd {
  margin: 6px 0 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Announcements
   -------------------------------------------------------------------------- */

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

.announcement {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.announcement__label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: var(--muted-light);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.announcement__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.announcement h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.announcement h3 a {
  color: var(--ink);
}

.announcement h3 a:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.announcement p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.announcement .text-link {
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.portal-cta {
  padding: 74px 0;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.portal-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.portal-cta h2 {
  max-width: 700px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.portal-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.portal-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.portal-footer {
  background: var(--ink);
  color: #adada8;
}

.portal-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(150px, 0.75fr));
  gap: 48px;
  padding: 58px 0 44px;
}

.portal-footer__brand {
  max-width: 360px;
}

.portal-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.portal-footer__logo:hover {
  color: #fff;
  text-decoration: none;
}

.portal-footer__logo img {
  height: 38px;
  width: auto;
}

.portal-footer__about {
  margin: 18px 0 0;
  color: #a9a9a4;
  font-size: 11.5px;
  line-height: 1.75;
}

.portal-footer__status {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-tint);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.portal-footer__col h2 {
  margin: 4px 0 16px;
  color: #efefec;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.portal-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-footer__col li + li {
  margin-top: 8px;
}

.portal-footer__col a {
  color: #adada8;
  font-size: 11.5px;
  line-height: 1.45;
}

.portal-footer__col a:hover {
  color: #fff;
  text-decoration: none;
}

.portal-footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #82827d;
  font-size: 9.5px;
  line-height: 1.65;
}

.portal-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
  margin-bottom: 9px;
}

.portal-footer__legal a {
  color: #c7c7c2;
}

.portal-footer__legal a:hover {
  color: #fff;
}

.portal-footer__note {
  max-width: 700px;
  margin: 0;
  color: #82827d;
  font-size: 9px;
  line-height: 1.6;
}

.portal-footer__meta {
  flex: none;
  color: #82827d;
  font-size: 9.5px;
  line-height: 1.7;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Interior page headers
   -------------------------------------------------------------------------- */

.page-header {
  padding: 46px 0 52px;
  border-bottom: 1px solid var(--line);
  background-color: var(--ivory);
  background-image: url("../assets/pattern-tiles.svg");
  background-position: center -40px;
  background-size: 760px auto;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11.5px;
}

.breadcrumbs a {
  color: var(--accent-text);
}

.breadcrumbs a:hover {
  color: var(--accent-deep);
}

.breadcrumbs .sep {
  color: var(--muted-light);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
}

.page-header__grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.page-header__main {
  max-width: 820px;
}

.page-header h1 {
  margin: 0;
  color: #403e3b;
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 54px);
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 1.06;
}

.page-header__lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.page-header__aside {
  flex: none;
  max-width: 290px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.page-header__aside strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Interior layout
   -------------------------------------------------------------------------- */

.portal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 54px 0 88px;
}

.portal-toc {
  position: sticky;
  top: 100px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.portal-toc h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.portal-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-toc li + li {
  margin-top: 1px;
}

.portal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.portal-toc a:hover,
.portal-toc a.is-active {
  color: var(--ink);
  text-decoration: none;
}

.portal-toc a.is-active {
  font-weight: 700;
}

.portal-body {
  min-width: 0;
}

.portal-body section {
  scroll-margin-top: 110px;
}

.portal-body section:not(.journal-block) + section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.portal-body section.journal-block {
  margin: 0;
  padding: 0;
  border-top: 0;
}

#criminalis .journal-row {
  border-top: 1px solid var(--line);
}

.portal-body h2 {
  margin: 0 0 17px;
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.18;
}

.portal-body h3 {
  margin: 27px 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.portal-body p {
  max-width: 830px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.portal-body .lede {
  max-width: 800px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 18px;
}

.portal-body ul {
  max-width: 830px;
  padding-left: 18px;
}

.portal-body li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.portal-body li + li {
  margin-top: 5px;
}

.portal-body code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.note-panel {
  max-width: 830px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.note-panel h3 {
  margin: 0 0 5px;
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.note-panel p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
}

.fact-table {
  width: 100%;
  max-width: 830px;
  border-collapse: collapse;
  margin: 22px 0 14px;
  border-top: 2px solid var(--ink);
  font-size: 12px;
}

.fact-table th,
.fact-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.fact-table th {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-table td:last-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  text-align: right;
}

.form-note {
  max-width: 830px;
  margin: 8px 0 0;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Journal rows (portfolio page)
   -------------------------------------------------------------------------- */

.journal-rows {
  border-top: 1px solid var(--line);
}

.journal-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 220px;
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.journal-row__cover-link {
  display: block;
  align-self: start;
}

.journal-row__body {
  min-width: 0;
}

.journal-row__cover {
  width: 100%;
  height: auto;
  border: 1px solid #dedbd4;
  box-shadow: 0 10px 24px rgba(20, 20, 21, 0.14);
  transition: transform 0.2s var(--ease);
}

.journal-row__cover-link:hover .journal-row__cover {
  transform: translateY(-2px);
}

.journal-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.journal-row__meta span {
  color: var(--muted-light);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-row h2 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.024em;
  line-height: 1.15;
}

.journal-row h2 a {
  color: var(--ink);
}

.journal-row h2 a:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.journal-row__cn {
  margin: 0 0 13px;
  color: var(--accent-text);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.journal-row__desc {
  max-width: 640px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.journal-row__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journal-row__scope li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.journal-row__link {
  margin-top: 16px;
  font-size: 12px;
}

.journal-row__facts {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--ivory);
  align-self: start;
}

.journal-row__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.journal-row__facts > div:last-of-type {
  border-bottom: 0;
}

.journal-row__facts dt {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.journal-row__facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}

.journal-row__facts .text-link {
  margin-top: 12px;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Policy grid and contact
   -------------------------------------------------------------------------- */

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.policy-item {
  padding: 19px 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.policy-item h3 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.policy-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.contact-card strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Not found
   -------------------------------------------------------------------------- */

.not-found {
  display: flex;
  align-items: center;
  min-height: 58vh;
  padding: 72px 0;
  background: var(--ivory);
  background-image: url("../assets/pattern-tiles.svg");
  background-position: center top;
  background-size: 700px auto;
}

.not-found__code {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 108px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.not-found h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.not-found p {
  max-width: 580px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .portal-brand__name {
    font-size: 22px;
  }

  .portal-nav a {
    padding-inline: 9px;
    font-size: 12.5px;
  }

  .portal-hero__inner {
    gap: 44px;
  }

  .portal-hero__title {
    font-size: clamp(40px, 4.8vw, 52px);
  }

  .hero-visual {
    padding-inline: 20px;
  }
}

@media (max-width: 1040px) {
  .utility-bar__statement {
    display: none;
  }

  .portal-header__inner {
    min-height: 76px;
    gap: 20px;
  }

  .portal-nav {
    gap: 0;
  }

  .portal-nav a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .portal-nav a::after {
    right: 8px;
    left: 8px;
  }

  .portal-hero {
    padding: 70px 0 80px;
  }

  .portal-hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .portal-hero__title {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .journal-cards {
    gap: 18px;
  }

  .journal-card__cover-wrap {
    padding-inline: 18px;
  }

  .journal-card__body {
    padding: 20px;
  }

  .standards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .standard-cell,
  .standard-cell + .standard-cell {
    padding: 24px 24px 26px 0;
    border-right: 1px solid var(--line);
  }

  .standard-cell:nth-child(even) {
    padding-left: 24px;
    border-right: 0;
  }

  .standard-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .portal-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .portal-footer__brand {
    grid-column: span 2;
  }

  .journal-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .journal-row__facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 18px;
  }

  .journal-row__facts > div {
    display: block;
    padding: 4px 0;
    border-bottom: 0;
  }

  .journal-row__facts dd {
    text-align: left;
  }

  .journal-row__facts .text-link {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
}

@media (max-width: 900px) {
  .portal-nav,
  .portal-actions .btn {
    display: none;
  }

  .portal-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .portal-nav-open .portal-nav {
    position: absolute;
    top: 100%;
    right: -24px;
    left: -24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 28px rgba(20, 20, 21, 0.09);
  }

  .portal-nav-open .portal-nav a {
    padding: 11px 0;
    font-size: 14px;
  }

  .portal-nav-open .portal-nav a::after {
    display: none;
  }

  .portal-actions {
    margin-left: 0;
  }

  .journal-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .journal-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .journal-card__cover-wrap {
    align-items: center;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .journal-card__cover {
    width: 100%;
    max-width: 130px;
    transform: none;
  }

  .press-band__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .press-facts {
    max-width: 480px;
  }

  .model-band__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .announcement-grid {
    gap: 24px;
  }

  .portal-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .portal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portal-toc {
    position: static;
    padding-top: 12px;
  }

  .portal-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 20px;
  }

  .portal-toc li + li {
    margin-top: 0;
  }

  .page-header__grid {
    display: block;
  }

  .page-header__aside {
    max-width: none;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .portal-nav-open .portal-nav {
    right: -20px;
    left: -20px;
    padding-inline: 20px;
  }

  .utility-links {
    gap: 14px;
  }

  .portal-brand__mark {
    height: 38px;
  }

  .portal-brand__name {
    font-size: 20px;
  }

  .portal-brand__sub {
    font-size: 7.5px;
  }

  .portal-hero {
    padding: 54px 0 64px;
  }

  .portal-hero__title {
    font-size: clamp(36px, 7.4vw, 46px);
  }

  .portal-hero__lede {
    margin-top: 18px;
    font-size: 15px;
  }

  .portal-hero__actions {
    gap: 14px;
    margin-top: 24px;
  }

  .portal-hero__facts {
    margin-top: 28px;
  }

  .portal-hero__facts dd {
    font-size: 17px;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 26px;
  }

  .section-head__title {
    font-size: 31px;
  }

  .journal-card {
    display: flex;
  }

  .journal-card__cover-wrap {
    align-items: flex-end;
    padding: 24px 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .journal-card__cover {
    width: 54%;
    max-width: 150px;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

  .standard-cell,
  .standard-cell + .standard-cell {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .standard-cell:last-child {
    border-bottom: 0;
  }

  .announcement-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .model-band__facts {
    grid-template-columns: 1fr;
    gap: 14px;
    border-left: 0;
  }

  .model-band__facts div {
    padding: 0;
  }

  .model-band__facts div + div {
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .portal-cta {
    padding: 56px 0;
  }

  .portal-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
  }

  .portal-footer__brand {
    grid-column: auto;
  }

  .portal-footer__bottom {
    flex-direction: column;
    gap: 12px;
  }

  .portal-footer__meta {
    text-align: left;
  }

  .page-header {
    padding: 34px 0 40px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .journal-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 22px;
    padding: 26px 0;
  }

  .journal-row h2 {
    font-size: 26px;
  }

  .journal-row__facts {
    grid-template-columns: 1fr 1fr;
  }

  .policy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portal-body p {
    font-size: 13.5px;
  }

  .portal-body .lede {
    font-size: 16.5px;
  }
}

@media (max-width: 560px) {
  .utility-bar__inner {
    min-height: 32px;
  }

  .utility-bar__statement {
    display: block;
    font-size: 9px;
  }

  .utility-links {
    display: none;
  }

  .portal-header__inner {
    min-height: 68px;
    gap: 12px;
  }

  .portal-brand {
    gap: 9px;
  }

  .portal-brand__mark {
    height: 33px;
  }

  .portal-brand__name {
    font-size: 18px;
  }

  .portal-brand__sub {
    display: none;
  }

  .portal-nav-open .portal-nav {
    right: -20px;
    left: -20px;
    padding-inline: 20px;
  }

  .portal-hero__facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portal-hero__facts div {
    padding: 0;
  }

  .portal-hero__facts div + div {
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .portal-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .portal-hero__actions .btn {
    width: 100%;
  }

  .hero-visual {
    padding: 22px 16px 18px;
  }

  .cover-stack__item {
    margin-inline: -5px;
    padding: 3px;
  }

  .hero-visual__caption {
    font-size: 8.5px;
  }

  .journal-row {
    grid-template-columns: 1fr;
  }

  .journal-row__cover-link {
    max-width: 130px;
  }

  .journal-row__facts {
    padding: 14px;
  }

  .portal-cta h2 {
    font-size: 30px;
  }

  .portal-cta__actions {
    width: 100%;
  }

  .portal-cta__actions .btn {
    width: 100%;
  }

  .fact-table th,
  .fact-table td {
    padding: 9px 7px;
    font-size: 11px;
  }

  .fact-table td:last-child {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   Motion and print
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .utility-bar,
  .portal-header,
  .portal-hero__actions,
  .portal-cta,
  .portal-footer,
  .portal-toc,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
  }

  .page-header {
    padding: 0 0 14pt;
    background: #fff;
  }

  .portal-layout {
    display: block;
    padding-top: 16pt;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
