/*
Theme Name: myka Member Portal
Theme URI: https://kinstride.com/
Author: myka
Description: A restrained, survey-inspired member account experience for Kinstride investors and administrators.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kinstride
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/Platypi-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/Platypi-Italic-VariableFont_wght.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Ysabeau Office";
  src: url("assets/fonts/YsabeauOffice-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Ysabeau Office";
  src: url("assets/fonts/YsabeauOffice-Italic-VariableFont_wght.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("assets/fonts/FiraCode-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ks-basalt: #17231f;
  --ks-basalt-soft: #23312c;
  --ks-land: #315846;
  --ks-land-deep: #254738;
  --ks-gold: #c7a24c;
  --ks-gold-light: #e0c679;
  --ks-limestone: #f1efe5;
  --ks-paper: #faf9f4;
  --ks-stone: #d7d3c5;
  --ks-ink: #18211d;
  --ks-muted: #607069;
  --ks-white: #ffffff;
  --ks-error: #a33f31;
  --ks-container: 78rem;
  --ks-gutter: clamp(1.25rem, 4vw, 3rem);
  --ks-display: "Platypi", Georgia, serif;
  --ks-body: "Ysabeau Office", "Segoe UI", sans-serif;
  --ks-utility: "Fira Code", Consolas, monospace;
  --ks-shadow: 0 24px 64px rgba(23, 35, 31, 0.13);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  color: var(--ks-ink);
  background: var(--ks-paper);
  font-family: var(--ks-body);
  font-size: 1.125rem;
  font-weight: 450;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

a {
  color: var(--ks-land-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ks-basalt);
}

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

::selection {
  color: var(--ks-basalt);
  background: var(--ks-gold-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  color: var(--ks-basalt);
  font-family: var(--ks-display);
  font-weight: 570;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.65rem);
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
}

p {
  margin: 0 0 1.35em;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--ks-stone);
}

.site-shell {
  width: min(100% - (2 * var(--ks-gutter)), var(--ks-container));
  margin-inline: auto;
}

.site-main {
  min-height: 65vh;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 99999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ks-white);
  background: var(--ks-basalt);
  font-family: var(--ks-utility);
  font-size: 0.78rem;
  text-decoration: none;
}

.eyebrow,
.utility-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  color: var(--ks-land-deep);
  font-family: var(--ks-utility);
  font-size: 0.72rem;
  font-weight: 580;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

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

.button,
.wp-element-button,
button:not(.nav-toggle),
input[type="submit"] {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--ks-basalt);
  border-radius: 0;
  color: var(--ks-limestone);
  background: var(--ks-basalt);
  font-family: var(--ks-utility);
  font-size: 0.78rem;
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button::after {
  content: "↗";
  font-size: 1rem;
  line-height: 1;
}

.button:hover,
.wp-element-button:hover,
button:not(.nav-toggle):hover,
input[type="submit"]:hover {
  color: var(--ks-basalt);
  background: var(--ks-gold);
  border-color: var(--ks-gold);
  transform: translateY(-2px);
}

.button--outline {
  color: var(--ks-basalt);
  background: transparent;
  border-color: rgba(23, 35, 31, 0.45);
}

.button--outline:hover {
  color: var(--ks-limestone);
  background: var(--ks-land-deep);
  border-color: var(--ks-land-deep);
}

.button--light {
  color: var(--ks-basalt);
  background: var(--ks-limestone);
  border-color: var(--ks-limestone);
}

.button--light:hover {
  color: var(--ks-basalt);
  background: var(--ks-gold-light);
  border-color: var(--ks-gold-light);
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(23, 35, 31, 0.14);
  background: rgba(250, 249, 244, 0.94);
  backdrop-filter: blur(18px);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
}

.admin-bar .site-header.is-sticky {
  top: 32px;
}

.header-inner {
  display: grid;
  min-height: 5.75rem;
  grid-template-columns: minmax(14rem, 1fr) auto auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}

.site-branding {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.8rem;
  color: var(--ks-basalt);
  text-decoration: none;
}

.site-brand-link {
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.site-branding:hover {
  color: var(--ks-land);
}

.brand-mark {
  width: 2.55rem;
  flex: 0 0 2.55rem;
}

.brand-mark path,
.brand-mark line {
  vector-effect: non-scaling-stroke;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: var(--ks-display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.brand-tagline {
  margin-top: 0.36rem;
  color: var(--ks-muted);
  font-family: var(--ks-utility);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.15rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navigation a {
  position: relative;
  color: var(--ks-basalt);
  font-family: var(--ks-utility);
  font-size: 0.72rem;
  font-weight: 540;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.site-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 1px;
  background: var(--ks-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-navigation a:hover::after,
.site-navigation .current-menu-item > a::after {
  transform: scaleX(1);
}

.header-portal {
  min-height: 2.65rem;
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

.mobile-portal {
  display: none;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(23, 35, 31, 0.28);
  color: var(--ks-basalt);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1px;
  margin: auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-bars::before {
  transform: translateY(-0.35rem);
}

.nav-toggle-bars::after {
  transform: translateY(0.3rem);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(1px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(0) rotate(-45deg);
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--ks-limestone);
  background: var(--ks-basalt);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 239, 229, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 239, 229, 0.045) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent 62%);
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: clamp(42rem, 76vh, 53rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 0.92fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding: clamp(5.5rem, 9vw, 8.5rem) clamp(2rem, 5vw, 5.5rem) clamp(5rem, 8vw, 7rem) 0;
}

.hero-copy h1 {
  max-width: 11ch;
  margin-bottom: 0.32em;
  color: var(--ks-limestone);
  font-size: clamp(3.75rem, 7.4vw, 7.2rem);
}

.hero-copy h1 em {
  color: var(--ks-gold-light);
  font-weight: 360;
}

.hero-lede {
  max-width: 39rem;
  margin-bottom: 2rem;
  color: rgba(241, 239, 229, 0.79);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.home-hero .button--outline {
  color: var(--ks-limestone);
  border-color: rgba(241, 239, 229, 0.45);
}

.home-hero .button--outline:hover {
  color: var(--ks-basalt);
  background: var(--ks-gold-light);
  border-color: var(--ks-gold-light);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.25rem;
  padding: 2rem 0 0;
  margin: 2.7rem 0 0;
  border-top: 1px solid rgba(241, 239, 229, 0.18);
  list-style: none;
}

.hero-meta li {
  display: grid;
  gap: 0.25rem;
}

.hero-meta strong {
  color: var(--ks-limestone);
  font-family: var(--ks-utility);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-meta span {
  color: rgba(241, 239, 229, 0.62);
  font-size: 0.95rem;
}

.survey-plat {
  position: relative;
  align-self: stretch;
  min-height: 38rem;
  margin-right: calc(-1 * var(--ks-gutter));
  border-left: 1px solid rgba(241, 239, 229, 0.18);
  background: var(--ks-land-deep);
}

.survey-plat svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.survey-plat .plat-boundary {
  fill: rgba(199, 162, 76, 0.12);
  stroke: var(--ks-gold-light);
  stroke-width: 1.5;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: trace-boundary 2.1s 180ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.survey-plat .plat-line {
  fill: none;
  stroke: rgba(241, 239, 229, 0.4);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.survey-plat .plat-dimension {
  fill: none;
  stroke: rgba(224, 198, 121, 0.65);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.survey-plat text {
  fill: rgba(241, 239, 229, 0.7);
  font-family: var(--ks-utility);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.plat-seal {
  position: absolute;
  right: clamp(1rem, 4vw, 3.5rem);
  bottom: clamp(1rem, 4vw, 3.5rem);
  display: grid;
  width: 7.25rem;
  height: 7.25rem;
  place-items: center;
  border: 1px solid rgba(241, 239, 229, 0.45);
  border-radius: 50%;
  color: var(--ks-limestone);
  font-family: var(--ks-utility);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.plat-seal::before {
  position: absolute;
  inset: 0.55rem;
  border: 1px dashed rgba(241, 239, 229, 0.32);
  border-radius: inherit;
  content: "";
}

@keyframes trace-boundary {
  to {
    stroke-dashoffset: 0;
  }
}

/* Home sections */
.trust-strip {
  border-bottom: 1px solid var(--ks-stone);
  background: var(--ks-limestone);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  min-height: 7.8rem;
  padding: 1.7rem clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--ks-stone);
}

.trust-list li:last-child {
  border-right: 1px solid var(--ks-stone);
}

.trust-list span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--ks-gold);
  font-family: var(--ks-utility);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-list strong {
  color: var(--ks-basalt);
  font-family: var(--ks-display);
  font-size: 1.12rem;
  font-weight: 560;
  line-height: 1.25;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}

.section-intro h2 {
  max-width: 11ch;
}

.section-intro-copy {
  max-width: 41rem;
  padding-top: 0.5rem;
}

.section-intro-copy > p:first-child {
  color: var(--ks-land-deep);
  font-family: var(--ks-display);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.35;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--ks-stone);
  border: 1px solid var(--ks-stone);
}

.principle {
  position: relative;
  min-height: 19rem;
  padding: clamp(1.75rem, 3vw, 2.7rem);
  background: var(--ks-paper);
}

.principle-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  border: 1px solid var(--ks-gold);
  color: var(--ks-land-deep);
  font-family: var(--ks-utility);
  font-size: 0.66rem;
}

.principle h3 {
  margin-bottom: 0.55rem;
  font-size: 1.65rem;
}

.principle p {
  max-width: 28ch;
  margin: 0;
  color: var(--ks-muted);
  font-size: 1rem;
}

.projects-section {
  color: var(--ks-limestone);
  background: var(--ks-land-deep);
}

.projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.projects-heading h2 {
  max-width: 10ch;
  margin: 0;
  color: var(--ks-limestone);
}

.projects-heading p {
  max-width: 35rem;
  margin: 0 0 0.5rem;
  color: rgba(241, 239, 229, 0.7);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(241, 239, 229, 0.25);
  background: rgba(241, 239, 229, 0.25);
}

.project-card {
  position: relative;
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ks-limestone);
  background: var(--ks-land-deep);
  text-decoration: none;
  isolation: isolate;
}

.project-card:nth-child(1),
.project-card:nth-child(5) {
  grid-column: span 2;
}

.project-card::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(150deg, transparent 52%, rgba(199, 162, 76, 0.11));
  content: "";
  transition: background 220ms ease;
}

.project-card:hover {
  color: var(--ks-limestone);
}

.project-card:hover::after {
  background: linear-gradient(150deg, rgba(199, 162, 76, 0.06) 25%, rgba(199, 162, 76, 0.18));
}

.project-code {
  position: relative;
  z-index: 2;
  color: var(--ks-gold-light);
  font-family: var(--ks-utility);
  font-size: 0.67rem;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-name {
  position: relative;
  z-index: 2;
  max-width: 13ch;
}

.project-name h3 {
  margin: 0 0 0.55rem;
  color: var(--ks-limestone);
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
}

.project-name p {
  margin: 0;
  color: rgba(241, 239, 229, 0.62);
  font-family: var(--ks-utility);
  font-size: 0.66rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.project-map {
  position: absolute;
  z-index: -1;
  top: -8%;
  right: -5%;
  width: 76%;
  height: 76%;
  color: rgba(224, 198, 121, 0.28);
  transition: color 220ms ease, transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:nth-child(2n) .project-map {
  top: 6%;
  right: -20%;
  transform: rotate(12deg);
}

.project-card:hover .project-map {
  color: rgba(224, 198, 121, 0.55);
  transform: translate(-0.5rem, 0.35rem);
}

.project-card:nth-child(2n):hover .project-map {
  transform: rotate(12deg) translate(-0.5rem, 0.35rem);
}

.project-map path,
.project-map line,
.project-map polyline,
.project-map polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.portal-callout {
  position: relative;
  overflow: hidden;
  color: var(--ks-limestone);
  background: var(--ks-basalt);
}

.portal-callout::after {
  position: absolute;
  top: -16rem;
  right: -8rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(224, 198, 121, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(224, 198, 121, 0.025),
    0 0 0 8rem rgba(224, 198, 121, 0.02);
  content: "";
}

.portal-callout-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  gap: 3rem;
  align-items: end;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.portal-callout h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--ks-limestone);
}

.portal-callout-copy {
  max-width: 30rem;
}

.portal-callout-copy p {
  color: rgba(241, 239, 229, 0.7);
}

.editorial-content {
  border-top: 1px solid var(--ks-stone);
}

.editorial-content .entry-content {
  max-width: 50rem;
}

/* General pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  color: var(--ks-limestone);
  background: var(--ks-basalt);
}

.page-hero::after {
  position: absolute;
  top: -15rem;
  right: -13rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(199, 162, 76, 0.4);
  transform: rotate(24deg);
  content: "";
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  color: var(--ks-limestone);
  font-size: clamp(3rem, 6vw, 6rem);
}

.page-hero .eyebrow {
  position: relative;
  z-index: 1;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.content-aside {
  color: var(--ks-muted);
  font-family: var(--ks-utility);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-content {
  min-width: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content li {
  max-width: 46rem;
}

.entry-content blockquote {
  padding: 1rem 0 1rem 2rem;
  margin: 2.5rem 0;
  border-left: 2px solid var(--ks-gold);
  color: var(--ks-land-deep);
  font-family: var(--ks-display);
  font-size: 1.55rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.85rem;
  border: 1px solid var(--ks-stone);
  text-align: left;
}

.entry-content th {
  background: var(--ks-limestone);
  font-family: var(--ks-utility);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-meta {
  color: var(--ks-muted);
  font-family: var(--ks-utility);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--ks-stone);
  background: var(--ks-stone);
}

.post-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--ks-paper);
}

.post-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-numbers,
.post-page-numbers {
  display: inline-grid;
  min-width: 2.8rem;
  min-height: 2.8rem;
  place-items: center;
  border: 1px solid var(--ks-stone);
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  color: var(--ks-limestone);
  background: var(--ks-land-deep);
}

/* Portal page and plugin compatibility */
.portal-page {
  background: var(--ks-limestone);
}

/* Thin identity strip above the workspace: the app supplies its own chrome. */
.portal-strip {
  padding-block: 0.55rem;
  color: var(--ks-limestone);
  background:
    linear-gradient(105deg, rgba(23, 35, 31, 0.98), rgba(37, 71, 56, 0.95)),
    var(--ks-basalt);
}

.portal-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}

.portal-strip .eyebrow {
  margin: 0;
}

.portal-strip-title {
  margin: 0;
  color: rgba(241, 239, 229, 0.78);
  font-family: var(--ks-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.portal-workspace {
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

.kinstride-portal,
.ks-portal,
[class*="kinstride-portal"] {
  color: var(--ks-ink);
  font-family: var(--ks-body);
}

.kinstride-portal {
  display: grid;
  gap: 1.5rem;
}

.kinstride-portal__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ks-limestone);
  background: var(--ks-basalt);
}

.kinstride-portal__header h1,
.kinstride-portal__header h2,
.kinstride-portal__header h3 {
  margin-bottom: 0.25rem;
  color: inherit;
}

.kinstride-portal__header p {
  margin: 0;
  color: rgba(241, 239, 229, 0.68);
}

.kinstride-portal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  border: 1px solid var(--ks-stone);
  background: var(--ks-stone);
}

.kinstride-stat {
  min-height: 8.5rem;
  padding: 1.25rem;
  background: var(--ks-white);
}

.kinstride-stat__label,
.kinstride-stat > span:first-child {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ks-muted);
  font-family: var(--ks-utility);
  font-size: 0.64rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.kinstride-stat__value,
.kinstride-stat > strong {
  color: var(--ks-basalt);
  font-family: var(--ks-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 560;
  line-height: 1.15;
}

.kinstride-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ks-stone);
  background: var(--ks-white);
  box-shadow: 0 14px 36px rgba(23, 35, 31, 0.055);
}

.kinstride-card > :first-child {
  margin-top: 0;
}

.kinstride-card > :last-child {
  margin-bottom: 0;
}

.kinstride-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ks-stone);
  background: var(--ks-white);
  -webkit-overflow-scrolling: touch;
}

.kinstride-table-wrap .kinstride-table {
  min-width: 42rem;
  border: 0;
}

.kinstride-upload {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed #8c9a92;
  background:
    linear-gradient(135deg, rgba(49, 88, 70, 0.035), transparent 55%),
    var(--ks-paper);
}

.kinstride-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.kinstride-field label {
  color: var(--ks-land-deep);
  font-family: var(--ks-utility);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.kinstride-notice,
.kinstride-empty {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--ks-gold);
  background: var(--ks-white);
}

.kinstride-notice--error,
.kinstride-notice.error {
  border-left-color: var(--ks-error);
}

.kinstride-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ks-basalt);
  border-radius: 0;
  color: var(--ks-limestone);
  background: var(--ks-basalt);
  font-family: var(--ks-utility);
  font-size: 0.72rem;
  font-weight: 580;
  text-decoration: none;
}

.kinstride-button:hover {
  color: var(--ks-basalt);
  background: var(--ks-gold);
  border-color: var(--ks-gold);
}

.kinstride-portal button,
.kinstride-portal .button,
.ks-portal button,
.ks-portal .button {
  border-radius: 0;
}

.kinstride-portal input,
.kinstride-portal select,
.kinstride-portal textarea,
.ks-portal input,
.ks-portal select,
.ks-portal textarea,
.entry-content input,
.entry-content select,
.entry-content textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid #a8ada8;
  border-radius: 0;
  color: var(--ks-ink);
  background: var(--ks-white);
}

.kinstride-portal input:focus,
.kinstride-portal select:focus,
.kinstride-portal textarea:focus,
.ks-portal input:focus,
.ks-portal select:focus,
.ks-portal textarea:focus {
  border-color: var(--ks-land);
  outline: 3px solid rgba(199, 162, 76, 0.45);
  outline-offset: 1px;
}

.kinstride-portal table,
.ks-portal table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ks-white);
}

.kinstride-portal th,
.kinstride-portal td,
.ks-portal th,
.ks-portal td {
  padding: 0.9rem 1rem;
  border: 1px solid var(--ks-stone);
  text-align: left;
}

.kinstride-portal th,
.ks-portal th {
  color: var(--ks-limestone);
  background: var(--ks-land-deep);
  font-family: var(--ks-utility);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-shortcode-missing {
  max-width: 46rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--ks-stone);
  background: var(--ks-white);
}

/* 404 */
.error-404 {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding-block: 5rem;
}

.error-404-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.error-code {
  color: var(--ks-gold);
  font-family: var(--ks-utility);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 350;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

/* Footer */
.site-footer {
  color: rgba(241, 239, 229, 0.72);
  background: #101915;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(17rem, 1.15fr) minmax(12rem, 0.55fr) minmax(12rem, 0.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.footer-brand .site-branding {
  color: var(--ks-limestone);
}

.footer-brand p {
  max-width: 32rem;
  margin: 1.4rem 0 0;
  color: rgba(241, 239, 229, 0.58);
}

.footer-heading {
  margin: 0 0 1rem;
  color: var(--ks-gold-light);
  font-family: var(--ks-utility);
  font-size: 0.65rem;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links,
.footer-nav ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a,
.footer-nav a {
  color: rgba(241, 239, 229, 0.78);
  text-decoration: none;
}

.footer-links a:hover,
.footer-nav a:hover {
  color: var(--ks-gold-light);
}

.footer-bottom {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(241, 239, 229, 0.14);
  font-family: var(--ks-utility);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.footer-bottom p {
  margin: 0;
}

/* WordPress core */
.alignwide {
  width: min(100vw - (2 * var(--ks-gutter)), var(--ks-container));
  max-width: none;
  margin-right: min(0px, calc((46rem - min(100vw - (2 * var(--ks-gutter)), var(--ks-container))) / 2));
  margin-left: min(0px, calc((46rem - min(100vw - (2 * var(--ks-gutter)), var(--ks-container))) / 2));
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
  color: var(--ks-muted);
  font-family: var(--ks-utility);
  font-size: 0.72rem;
}

.sticky {
  border-left: 3px solid var(--ks-gold);
}

.bypostauthor {
  outline: none;
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-navigation {
    position: absolute;
    z-index: 50;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1.2rem var(--ks-gutter) 2rem;
    border-bottom: 1px solid var(--ks-stone);
    background: var(--ks-paper);
  }

  html:not(.js) .site-navigation {
    position: static;
    grid-column: 1 / -1;
  }

  html.js .site-navigation {
    display: none;
  }

  html.js .site-navigation[data-open="true"] {
    display: block;
  }

  .site-navigation ul {
    display: grid;
    gap: 0;
  }

  .site-navigation li {
    border-bottom: 1px solid var(--ks-stone);
  }

  .site-navigation a {
    display: block;
    padding: 1rem 0;
    font-size: 0.82rem;
  }

  .site-navigation a::after {
    display: none;
  }

  .site-navigation .mobile-portal {
    display: inline-flex;
    width: 100%;
    margin-top: 1.25rem;
  }

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

  .hero-copy {
    padding-right: 0;
  }

  .survey-plat {
    min-height: 31rem;
    margin-right: 0;
    margin-left: 12%;
    border-top: 1px solid rgba(241, 239, 229, 0.18);
  }

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

  .project-card:nth-child(1),
  .project-card:nth-child(5) {
    grid-column: span 1;
  }

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

  .trust-list li:nth-child(3) {
    border-top: 1px solid var(--ks-stone);
  }

  .trust-list li:nth-child(4) {
    border-top: 1px solid var(--ks-stone);
    border-right: 1px solid var(--ks-stone);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header.is-sticky {
    top: 46px;
  }

  .brand-tagline {
    display: none;
  }

  .header-portal {
    display: none;
  }

  .section-intro,
  .portal-callout-inner,
  .content-layout,
  .footer-main,
  .error-404-inner {
    grid-template-columns: 1fr;
  }

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

  .principle {
    min-height: 0;
  }

  .principle-mark {
    margin-bottom: 2.5rem;
  }

  .projects-heading {
    display: grid;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.5rem;
  }

  .kinstride-portal__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  :root {
    --ks-gutter: 1rem;
  }

  body {
    font-size: 1.05rem;
  }

  .header-inner {
    min-height: 4.9rem;
    grid-template-columns: 1fr auto;
  }

  .brand-mark {
    width: 2.2rem;
    flex-basis: 2.2rem;
  }

  .hero-copy {
    padding-block: 4.7rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .survey-plat {
    min-height: 25rem;
    margin-left: 0;
  }

  .plat-seal {
    width: 6rem;
    height: 6rem;
  }

  .trust-list,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .trust-list li,
  .trust-list li:last-child {
    min-height: 0;
    border-top: 1px solid var(--ks-stone);
    border-right: 1px solid var(--ks-stone);
  }

  .trust-list li:first-child {
    border-top: 0;
  }

  .project-card {
    min-height: 20rem;
  }

  .project-card:nth-child(1),
  .project-card:nth-child(5) {
    grid-column: auto;
  }

  .content-layout {
    padding-block: 3.5rem;
  }

  .error-code {
    order: -1;
  }

  .admin-bar .site-header.is-sticky {
    top: 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;
  }

  .survey-plat .plat-boundary {
    stroke-dashoffset: 0;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .button {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .site-main,
  .portal-workspace,
  .content-layout {
    padding: 0;
  }
}
