:root {
  color-scheme: light;
  --ink: #182b23;
  --forest: #172922;
  --sage: #c5e2c4;
  --paper: #f6f4ec;
  --muted: #52635a;
  --line: #ccd3c6;
  font: 1rem/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #719f75; outline-offset: 5px; border-radius: 2px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: normal; line-height: 1.05; }
h1 { font-size: clamp(3.5rem, 7.7vw, 7rem); letter-spacing: -.067em; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.8rem); letter-spacing: -.044em; }
h3 { font-size: 1.14rem; line-height: 1.35; }
.wrap { width: min(1120px, 100% - 2 * clamp(1.25rem, 5vw, 3.5rem)); margin-inline: auto; }
.site-header, .hero { background: var(--forest); color: var(--paper); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-inner { padding-block: 1rem; border-bottom: 1px solid #40554a; }
.wordmark { font-weight: 725; text-decoration: none; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
nav a { color: #dce7db; font-size: .94rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { padding-block: clamp(2.7rem, 7vw, 5.7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 5vw, 4.5rem); }
.hero-photo { display: block; width: 100%; height: auto; max-width: 360px; justify-self: end; border: 1px solid #647468; border-radius: .35rem; }
.section-label { color: var(--sage); font-size: .85rem; font-weight: 680; margin-bottom: 1rem; }
.lead { color: #dbebdf; font-size: clamp(1.05rem, 2vw, 1.24rem); max-width: 54ch; margin-top: 1.2rem; }
.primary { display: inline-block; margin-top: 1.65rem; padding: .63rem 1.05rem; background: var(--sage); border-radius: .4rem; font-weight: 700; color: var(--forest); text-decoration: none; }
.primary:hover { background: #e0f1dc; }
.focus { padding-block: clamp(2.7rem, 6vw, 5rem); }
.interests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin-top: 1.75rem; }
.interests article { border-top: 2px solid #a6b7a5; padding-top: .95rem; }
.interests p { color: var(--muted); margin-top: .45rem; }
.training { background: #e8ede2; padding-block: clamp(2.7rem, 6vw, 5rem); }
.training-grid { display: grid; grid-template-columns: 1fr 1.65fr; gap: 1.7rem; }
.training dl > div + div { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
dt { font-weight: 750; }
dd { margin-top: .32rem; color: var(--muted); }
.meta { font-size: .94rem; }
.footer-inner { padding-block: 1.4rem; color: var(--muted); font-size: .94rem; }
@media (max-width: 740px) {
  .hero-grid, .training-grid, .interests { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header nav, .primary, .hero-photo { display: none; }
  .hero { color: var(--ink); background: white; }
  .hero-grid, .training-grid { display: block; }
  .section-label, .lead { color: var(--muted); }
}
.brand-x { color: var(--sage); }
.learning-main { padding-block: clamp(2.3rem, 7vw, 5.5rem); }
.learning-panel { background: #fff; border: 1px solid var(--line); border-radius: .6rem; padding: clamp(1.35rem, 4vw, 3rem); }
.learning-main > .learning-panel { max-width: 47rem; }
.learning h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.learning h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
.learning h1 + p, .learning h2 + p { margin-top: .85rem; color: var(--muted); }
.learning-label { color: #305b43; font-size: .88rem; font-weight: 700; margin-bottom: .65rem; }
.learning-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }
.learning-actions .primary { margin: 0; }
.learning button.primary { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.learning-secondary { padding: .56rem 1.03rem; border: 1px solid #82968a; border-radius: .4rem; font-weight: 700; text-decoration: none; }
.learning-secondary:hover { background: #eef3ec; }
.learning-note { margin-top: 1rem; color: var(--muted); font-size: .91rem; }
.learning-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.6rem; }
.learning-grid ul { padding-inline-start: 1.2rem; margin-bottom: 0; }
.learning-grid li + li { margin-top: .85rem; }
.learning-grid li p { color: var(--muted); font-size: .91rem; }
.credentials { display: grid; max-width: 30rem; gap: .4rem; margin-top: 1.2rem; }
.credentials label { font-weight: 700; margin-top: .5rem; }
.credentials input { width: 100%; padding: .62rem .72rem; border: 1px solid #82968a; border-radius: .35rem; font: inherit; }
.credentials input:focus-visible, .learning button:focus-visible { outline: 3px solid #719f75; outline-offset: 4px; }
.credentials p { color: var(--muted); font-size: .91rem; }
.credentials .primary { justify-self: start; }
.learning-error { color: #8a281c !important; }
.learning-logout { background: none; border: 0; padding: 0; color: #dce7db; font: inherit; cursor: pointer; }
@media (max-width: 740px) {
  .learning-grid { grid-template-columns: 1fr; }
}

.home {
  --home-dark: #14251e;
  --home-accent: #b5dbac;
  background: #f7f7f1;
}
.home .site-header, .home-hero { background: var(--home-dark); }
.home-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; padding-block: 1rem; border-bottom: 1px solid #3c5145; }
.tenax-wordmark { color: #fffaf0; font-size: 1.56rem; font-weight: 550; line-height: 1; letter-spacing: .18em; text-decoration: none; }
.tenax-wordmark span { color: var(--home-accent); }
.home-header nav { flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 2.5vw, 1.7rem); }
.home-header .header-login { padding: .35rem .74rem; border: 1px solid #708776; border-radius: .3rem; }
.home-hero { color: #fffaf0; padding-block: clamp(2rem, 6vw, 5.5rem); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 6vw, 5.5rem); }
.home-hero h1 { font-size: clamp(3.3rem, 7.15vw, 6.6rem); line-height: .98; letter-spacing: -.06em; }
.home-hero-copy > p { max-width: 44ch; margin-top: 1.25rem; color: #d5e6d7; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.home-actions { display: flex; align-items: center; gap: .7rem 1.15rem; flex-wrap: wrap; margin-top: 1.55rem; }
.home-actions .primary { margin: 0; background: var(--home-accent); }
.home-actions .primary:hover { background: #d5ebce; }
.home-secondary { color: #e1eee0; font-weight: 650; }
.home-secondary:hover { color: white; }
.home-visual { margin: 0; overflow: hidden; border: 1px solid #5f7865; border-radius: .35rem; }
.home-visual img { display: block; width: 100%; height: auto; aspect-ratio: 9/10; object-fit: cover; object-position: center 43%; }
.home-topics, .home-about { padding-block: clamp(2.6rem, 6vw, 5rem); }
.home-topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.25rem,3vw,2.5rem); margin-top: 1.35rem; }
.home-topic-grid article { border-top: 2px solid #9ab396; padding-top: .9rem; }
.home-topic-grid p, .home-about-grid p { color: var(--muted); margin-top: .45rem; }
.home-about { background: #e8ede2; }
.home-about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 1rem 2.6rem; align-items: start; }
.about-role { font-weight: 650; }
.about-detail { font-size: .94rem; }
.skip { position: absolute; top: .7rem; left: .7rem; padding: .5rem .75rem; background: white; color: var(--ink); transform: translateY(-200%); z-index: 1; }
.skip:focus { transform: none; }
@media (max-width: 740px) {
  .home-hero-grid, .home-topic-grid, .home-about-grid { grid-template-columns: 1fr; }
  .home-visual { width: min(100%,28rem); }
  .desktop-break { display: none; }
}
@media print {
  .home .site-header, .home-actions, .home-visual { display: none; }
  .home-hero { color: var(--ink); background: white; }
  .home-hero-copy > p { color: var(--ink); }
  .home-hero-grid { display: block; }
}

.share-page { background: #13241d; color: #f7f3e9; }
.share-frame { display: grid; width: min(100% - 2rem, 59rem); min-height: 100svh; align-content: center; margin-inline: auto; padding-block: clamp(1rem,6vw,4rem); }
.share-card { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); background: #1b3026; border: 1px solid #526b5a; border-radius: 1rem; overflow: hidden; box-shadow: 0 1.3rem 4rem #0c1913; }
.share-content { display: grid; align-content: center; gap: clamp(1.25rem,3vw,2.15rem); padding: clamp(1.45rem,5vw,3.9rem); }
.share-brand { width: fit-content; border-bottom: 1px solid #78917d; padding-bottom: .45rem; color: #fffaf0; font-size: 1.15rem; font-weight: 650; letter-spacing: .23em; }
.share-brand span { color: #b5dbac; }
.share-content h1 { font-size: clamp(2.4rem,5.1vw,4.35rem); letter-spacing: -.058em; }
.share-content header p { color: #d5e4d4; margin-top: .82rem; max-width: 34ch; }
.share-destinations { display: grid; gap: .65rem; }
.share-destination { display: grid; padding: .72rem 1rem; border-radius: .45rem; border: 1px solid transparent; text-decoration: none; line-height: 1.45; transition: background-color .16s ease; }
.share-destination span { font-size: .9rem; }
.share-main { background: #d0e7ca; color: #162c22; }
.share-main:hover { background: #edf6e9; }
.share-portfolio { color: #f7f3e9; border-color: #839b87; }
.share-portfolio span { color: #d5e4d4; }
.share-portfolio:hover { background: #2a4637; }
.share-visual { margin: 0; position: relative; min-height: 20rem; background: #0c221a; }
.share-visual img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.share-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; margin-top: 1rem; font-size: .94rem; color: #d5e4d4; }
.share-tools button { font: inherit; color: #f7f3e9; background: transparent; border: 1px solid #839b87; border-radius: .4rem; padding: .42rem .78rem; min-height: 44px; cursor: pointer; }
.share-tools button:hover { background: #2a4637; }
.share-tools button:focus-visible { outline: 3px solid #b5dbac; outline-offset: 4px; }
.share-status { font-size: .94rem; color: #d5e4d4; }
.share-status:not(:empty) { margin-top: .4rem; }
@media (max-width: 640px) {
  .share-card { grid-template-columns: 1fr; }
  .share-visual { min-height: 0; height: clamp(13rem,58vw,20rem); }
}
@media (prefers-reduced-motion: reduce) { .share-destination { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .share-content h1 {
      width: fit-content;
      background: linear-gradient(112deg, #f7f3e9 42%, #edce83 48%, #fff6d8 50%, #edce83 52%, #f7f3e9 58%);
      background-size: 300% 100%;
      background-position: right center;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: share-name-light 5s linear infinite;
    }
  }
  .share-visual img { animation: share-art-settle 1.3s cubic-bezier(.18,.65,.25,1) both; }
  .share-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(113deg, transparent 43%, #d8bf8330 50%, transparent 58%);
    background-size: 260% 100%;
    animation: share-art-light 6s linear infinite;
  }
}
@media (forced-colors: active) {
  .share-content h1 { animation: none; background: none; color: CanvasText; }
}
@keyframes share-name-light {
  0%, 9% { background-position: right center; }
  47%, 100% { background-position: left center; }
}
@keyframes share-art-settle {
  from { opacity: .6; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes share-art-light {
  0% { opacity: 0; background-position: 100% center; }
  8% { opacity: 1; }
  32% { opacity: 1; background-position: 0% center; }
  36%, 100% { opacity: 0; background-position: 0% center; }
}
