:root {
  --precy-paper: #f5efe4;
  --precy-paper-soft: #fbf7f0;
  --precy-paper-strong: #ede3d2;
  --precy-moss: #3e5a4c;
  --precy-copper: #a96b3c;
  --precy-ink: #2d2926;
  --precy-bark: #6c5846;
  --precy-mist: #cfc0a8;
  --precy-font-display: "Cormorant Garamond", Georgia, serif;
  --precy-font-body: "Manrope", Arial, sans-serif;
  --precy-line: rgba(62, 90, 76, 0.18);
  --precy-shadow: 0 28px 60px rgba(45, 41, 38, 0.12);
  --precy-shadow-soft: 0 18px 34px rgba(45, 41, 38, 0.09);
  --precy-radius-xl: 2rem;
  --precy-radius-lg: 1.25rem;
  --precy-radius-md: 0.85rem;
}

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

html {
  scroll-behavior: smooth;
}

body.precy-body {
  margin: 0;
  min-width: 320px;
  font-family: var(--precy-font-body);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 400;
  background:
    radial-gradient(circle at top left, rgba(169, 107, 60, 0.1), transparent 26rem),
    radial-gradient(circle at top right, rgba(62, 90, 76, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--precy-paper-soft) 0%, var(--precy-paper) 100%);
  color: var(--precy-ink);
}

/* body 18/31 400 */
/* h1 58/62 700 */
/* h2 38/44 650 */
/* h3 28/34 650 */
/* h4 20/28 600 */
/* small 14/22 500 */

.font-body {
  font-family: var(--precy-font-body);
}

.text-precy-ink {
  color: var(--precy-ink);
}

.mt-8 {
  margin-top: 2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.precy-paper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(62, 90, 76, 0.025) 0, rgba(62, 90, 76, 0.025) 10px, transparent 10px, transparent 28px);
  opacity: 0.7;
  z-index: 0;
}

.precy-main,
.precy-header,
.precy-footer {
  position: relative;
  z-index: 1;
}

.precy-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.precy-kicker,
.precy-hero__eyebrow,
.precy-footer__meta,
.precy-brand__meta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--precy-copper);
}

.precy-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 239, 228, 0.88);
  border-bottom: 1px solid rgba(62, 90, 76, 0.12);
}

.precy-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.precy-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--precy-shadow-soft);
}

.precy-brand__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--precy-moss), #24352d);
  color: #fff8ef;
  font-family: var(--precy-font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.precy-brand__title,
.precy-footer__title {
  display: block;
  font-family: var(--precy-font-display);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--precy-moss);
}

.precy-nav--desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.precy-nav__link,
.precy-nav__summary,
.precy-nav__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--precy-moss);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.precy-nav__link:hover,
.precy-nav__summary:hover,
.precy-nav__chip:hover,
.precy-nav__link.is-active,
.precy-nav__chip.is-active {
  background: rgba(62, 90, 76, 0.1);
  color: var(--precy-copper);
  transform: translateY(-1px);
}

.precy-nav__dropdown {
  position: relative;
}

.precy-nav__summary {
  cursor: pointer;
  list-style: none;
}

.precy-nav__summary::-webkit-details-marker {
  display: none;
}

.precy-nav__panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  display: grid;
  gap: 0.3rem;
  min-width: 14rem;
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 250, 243, 0.98);
  border: 1px solid rgba(62, 90, 76, 0.12);
  box-shadow: var(--precy-shadow-soft);
}

.precy-nav__panel-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  color: var(--precy-ink);
}

.precy-nav__panel-link:hover {
  background: rgba(62, 90, 76, 0.08);
  color: var(--precy-copper);
}

.precy-nav__panel-link--lead {
  font-weight: 800;
  color: var(--precy-moss);
}

.precy-nav--mobile {
  display: none;
  border-top: 1px solid rgba(62, 90, 76, 0.1);
}

.precy-nav__track {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 0 0.9rem;
}

.precy-nav__chip {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(62, 90, 76, 0.12);
  white-space: nowrap;
}

.precy-main {
  padding-bottom: 4.5rem;
}

.precy-breadcrumbs {
  padding-top: 1rem;
}

.precy-breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(45, 41, 38, 0.65);
  font-size: 0.88rem;
}

.precy-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.precy-breadcrumbs li + li::before {
  content: "/";
  color: rgba(45, 41, 38, 0.35);
}

.precy-hero {
  padding: 2rem 0 1rem;
}

.precy-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border-radius: var(--precy-radius-xl);
  background: linear-gradient(130deg, rgba(32, 47, 40, 0.9), rgba(62, 90, 76, 0.76));
  color: #fff9f1;
  box-shadow: var(--precy-shadow);
}

.precy-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.precy-display {
  margin: 0;
  font-family: var(--precy-font-display);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.precy-lead {
  margin: 0;
  max-width: 42rem;
  color: rgba(255, 249, 241, 0.86);
  font-size: 1.125rem;
  line-height: 1.72;
  font-weight: 400;
}

.precy-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.precy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.precy-chip--solid {
  background: var(--precy-copper);
  color: #fff9f1;
}

.precy-chip--ghost {
  border: 1px solid rgba(255, 249, 241, 0.36);
  color: #fff9f1;
}

.precy-hero__media,
.precy-stage {
  overflow: hidden;
  min-height: 18rem;
  border-radius: calc(var(--precy-radius-xl) - 0.4rem);
  background: rgba(255, 255, 255, 0.12);
}

.precy-hero__media img,
.precy-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.precy-section {
  padding-top: 1.5rem;
}

.precy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.precy-layout--article {
  grid-template-columns: minmax(0, 1fr);
}

.precy-layout--article-toc {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.45fr);
}

.precy-panel,
.precy-document,
.precy-card,
.precy-content-card,
.precy-aside-card {
  border-radius: var(--precy-radius-lg);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid rgba(62, 90, 76, 0.1);
  box-shadow: var(--precy-shadow-soft);
}

.precy-panel,
.precy-document {
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

.precy-document {
  max-width: 56rem;
}

.precy-document--wide {
  max-width: 68rem;
}

.precy-display {
  overflow-wrap: anywhere;
}

.precy-sidebar {
  display: grid;
  gap: 1rem;
}

.precy-sidebar--toc {
  align-self: start;
  position: sticky;
  top: 6.5rem;
}

.precy-aside-card {
  padding: 1.2rem;
}

.precy-aside-card--muted {
  background: rgba(237, 227, 210, 0.86);
}

.precy-aside-card--visual {
  overflow: hidden;
  padding: 0;
}

.precy-aside-card--visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.precy-aside-card--visual div {
  padding: 1rem 1.2rem 1.2rem;
}

.precy-aside-card h3,
.precy-panel h2,
.precy-document h2,
.precy-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--precy-font-display);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.16;
  font-weight: 650;
  color: var(--precy-moss);
}

.precy-side-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.precy-side-list a,
.precy-card__link {
  color: var(--precy-moss);
  font-weight: 700;
}

.precy-side-list a:hover,
.precy-card__link:hover {
  color: var(--precy-copper);
}

.precy-stream {
  display: grid;
  gap: 1rem;
}

.precy-toc {
  display: grid;
  gap: 0.75rem;
}

.precy-toc h2 {
  margin: 0;
}

.precy-toc-mobile {
  display: none;
}

.precy-block {
  display: block;
}

.precy-heading {
  margin: 0;
  font-family: var(--precy-font-display);
  color: var(--precy-moss);
  line-height: 1.16;
}

.precy-heading--h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.07;
  font-weight: 700;
}

.precy-heading--h2 {
  font-size: clamp(2.15rem, 3vw, 3rem);
  line-height: 1.16;
  font-weight: 650;
}

.precy-heading--h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  line-height: 1.21;
  font-weight: 650;
}

.precy-heading--h4,
.precy-heading--h5,
.precy-heading--h6 {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 600;
}

.precy-paragraph,
.precy-note,
.precy-footer__copy {
  margin: 0;
  color: rgba(45, 41, 38, 0.82);
  font-size: 1.125rem;
  line-height: 1.72;
  font-weight: 400;
}

.precy-figure {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.precy-figure img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--precy-shadow-soft);
}

.precy-figure figcaption {
  color: rgba(45, 41, 38, 0.68);
  font-size: 0.875rem;
  line-height: 1.57;
  font-weight: 500;
}

.precy-figure--inline {
  min-width: 7rem;
}

.precy-feature-image {
  float: right;
  width: min(32%, 18rem);
  margin: 0 0 1rem 1.25rem;
}

.precy-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem;
}

.precy-list-block {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.precy-list-block a {
  color: var(--precy-moss);
  font-weight: 600;
}

.precy-table-wrap {
  overflow-x: auto;
}

.precy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 18rem;
}

.precy-table th,
.precy-table td {
  padding: 0.9rem 0.95rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(62, 90, 76, 0.12);
  text-align: left;
}

.precy-table th {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--precy-copper);
}

.precy-table-stack {
  display: grid;
  gap: 0.55rem;
}

.precy-quote {
  margin: 0;
  padding: 1.2rem 1.25rem;
  border-left: 4px solid var(--precy-copper);
  background: rgba(169, 107, 60, 0.08);
  font-family: var(--precy-font-display);
  font-size: 1.35rem;
  color: var(--precy-bark);
}

.precy-code {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 1rem;
  background: #24211e;
  color: #fff6ed;
}

.precy-embed {
  overflow: hidden;
  border-radius: 1rem;
}

.precy-separator {
  border: 0;
  border-top: 1px solid rgba(62, 90, 76, 0.14);
}

.precy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.precy-card {
  overflow: hidden;
}

.precy-content-grid {
  display: grid;
  gap: 1rem;
}

.precy-content-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.precy-content-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.precy-content-card {
  overflow: hidden;
}

.precy-content-card--horizontal {
  display: grid;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 0.58fr);
}

.precy-content-card--minimal {
  border-left: 4px solid var(--precy-copper);
  background: rgba(255, 250, 243, 0.68);
  box-shadow: none;
}

.precy-content-card__media {
  display: block;
}

.precy-content-card__body {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem;
}

.precy-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.precy-card__body {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem;
}

.precy-card__link {
  margin-top: 0.2rem;
}

.precy-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 3rem;
  background: rgba(62, 90, 76, 0.96);
  color: #f7efe2;
}

.precy-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 1.5rem;
}

.precy-footer__title {
  color: #fff5e7;
}

.precy-footer__copy,
.precy-footer__meta {
  color: rgba(247, 239, 226, 0.78);
}

.precy-footer__column h3 {
  margin: 0 0 0.65rem;
  font-family: var(--precy-font-display);
  font-size: 1.5rem;
}

.precy-footer__links {
  display: grid;
  gap: 0.45rem;
}

.precy-footer__links a {
  color: rgba(247, 239, 226, 0.86);
}

.precy-footer__links a:hover {
  color: #ffffff;
}

@media (max-width: 1024px) {
  .precy-hero__grid,
  .precy-layout,
  .precy-footer__grid {
    grid-template-columns: 1fr;
  }

  .precy-nav--desktop {
    display: none;
  }

  .precy-nav--mobile {
    display: block;
  }

  .precy-toc-mobile {
    display: block;
  }

  .precy-sidebar--toc {
    position: static;
  }

  .precy-content-grid--2,
  .precy-content-grid--3,
  .precy-content-card--horizontal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .precy-header__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .precy-shell {
    width: min(100% - 1rem, 1180px);
  }

  .precy-display {
    font-size: 3rem;
  }

  .precy-feature-image {
    float: none;
    width: 100%;
    margin: 0;
  }

  .precy-panel,
  .precy-document,
  .precy-aside-card {
    padding: 1.1rem;
  }
}
