/* Classic editorial theme */

:root,
body.theme-classic {
  --bg: #E4E2D4;
  --bg-alt: #F1EFE7;
  --text: #111;
  --text-muted: #5a5a5a;
  --accent: #527DF1;
  --accent-hover: #1D54ED;
  --rule: #111;
  --card-bg: #F1EFE7;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Literata', Georgia, serif;
  --container: min(1100px, 92vw);
  --section-pad: clamp(2rem, 5vw, 4rem);
}

body.theme-classic {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "liga", "kern";
}

body.theme-classic a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

body.theme-classic a:hover {
  opacity: 0.6;
}

.amend-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.amend-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.amend-nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.amend-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
}

.amend-nav__links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.amend-nav__theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 0.55rem 1.1rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-style: italic;
  transition: border-color 0.15s ease, border-radius 0.3s ease;
}

.amend-nav__theme-squiggle {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
  overflow: visible;
}

.amend-nav__theme-squiggle path {
  fill: none;
  stroke: var(--rule);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  stroke-dasharray: 5 4;
  transition: opacity 0.15s ease;
}

.amend-nav__theme:hover {
  background: var(--bg-alt);
  border-color: transparent;
  border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  animation: amend-cursive-wobble 2.5s ease-in-out infinite;
}

.amend-nav__theme:hover .amend-nav__theme-squiggle path {
  opacity: 1;
  animation: amend-squiggle-flow 1.4s linear infinite;
}

@keyframes amend-squiggle-flow {
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes amend-cursive-wobble {
  0%, 100% {
    border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  }
  33% {
    border-radius: 62% 38% 42% 58% / 55% 48% 52% 45%;
  }
  66% {
    border-radius: 45% 55% 68% 32% / 42% 58% 38% 62%;
  }
}

.amend-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.25rem;
}

.amend-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

.amend-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 4vw 2rem;
  text-align: center;
}

.amend-hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.amend-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding: 0;
}

.amend-hero__tagline {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

.amend-hero__meta {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.amend-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 4vw var(--section-pad);
}

.amend-section {
  padding-top: 2rem;
}

.amend-section__head {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1.5rem;
}

.amend-section__head--link a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.amend-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.amend-split__text {
  font-size: 1.05rem;
  line-height: 1.75;
}

.amend-split__aside {
  display: flex;
  justify-content: center;
}

.amend-oval {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #F4794D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
}

.amend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.amend-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  transition: opacity 0.2s;
}

.amend-card:hover {
  opacity: 0.85;
}

.amend-card__thumb {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--accent) 30%, #1D54ED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
}

.amend-card__body {
  padding: 1rem;
}

.amend-card__title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
}

.amend-card__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.amend-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.amend-card .tag {
  border: 1px solid var(--rule);
  padding: 0.15rem 0.4rem;
  background: var(--bg);
}

.amend-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.amend-skill-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.amend-skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amend-skill-group li {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.amend-soft-skills {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.amend-soft-skills ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
}

.amend-soft-skills li {
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.amend-soft-skills li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.amend-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.amend-list-item:first-child {
  padding-top: 0;
}

.amend-list-item__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
}

.amend-list-item__meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.amend-list-item__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.amend-cta {
  text-align: center;
  padding: 2rem 0;
}

.amend-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.amend-cta__links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
  .amend-grid {
    grid-template-columns: 1fr;
  }

  .amend-split {
    grid-template-columns: 1fr;
  }

  .amend-skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .amend-nav__theme {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.7rem;
  }

  .amend-mobile-toggle {
    display: flex;
  }

  .amend-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 4vw 1.5rem;
  }

  .amend-nav__links.is-open {
    display: flex;
  }

  .amend-nav {
    position: relative;
  }
}
