/* masters.ormus.solutions: layout over the fusion layer (tokens.css + fusion.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ormus-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ormus-fg);
  background: var(--ormus-deep);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

/* top strip */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ormus-border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.wordmark { display: flex; align-items: center; gap: 0.625rem; font-family: var(--ormus-font-display); font-weight: 500; font-size: 1.05rem; }
.wordmark img { width: 22px; height: 22px; }
.section-link:hover { color: var(--ormus-gold); }

/* index */
main.wrap { padding-top: 3.5rem; padding-bottom: 4rem; }
.intro { padding: 1.5rem 0; }
.intro h1 { font-size: 2.25rem; margin: 0.75rem 0; }
@media (min-width: 640px) { .intro h1 { font-size: 3rem; } }
.lede { color: var(--ormus-ink-muted); line-height: 1.7; max-width: 42rem; }
.council { padding: 2rem 0; border-top: 1px solid var(--ormus-border); }
.council-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.seal { width: 4rem; height: 4rem; border-radius: var(--ormus-radius); flex-shrink: 0; }
.council-head h2 { font-size: 1.5rem; }
@media (min-width: 640px) { .council-head h2 { font-size: 1.875rem; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { display: block; padding: 0; overflow: hidden; height: 100%; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s var(--ormus-ease-reveal); }
.card:hover img { transform: scale(1.02); }
.card-body { display: block; padding: 0.75rem; }
.card h3 { font-size: 1.125rem; transition: color 0.15s ease; }
.card:hover h3 { color: var(--ormus-gold); }
.card p { font-size: 0.75rem; color: var(--ormus-ink-muted); margin-top: 0.25rem; line-height: 1.35; }

/* profile */
.profile { padding: 2rem 0; }
.back { font-size: 0.875rem; color: var(--ormus-ink-muted); }
.back:hover { color: var(--ormus-gold); }
.hero { display: grid; gap: 2rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 768px) { .hero { grid-template-columns: minmax(0, 360px) 1fr; gap: 3rem; } .portrait { position: sticky; top: 6rem; } }
.portrait { margin: 0; }
.portrait img { width: 100%; border-radius: var(--ormus-radius); border: 1px solid rgba(255, 255, 255, 0.05); border-top-color: rgba(210, 158, 61, 0.7); }
.hero h1 { font-size: 2.25rem; margin: 0.75rem 0 1rem; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
.councils { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem; font-family: var(--ormus-font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ormus-ink-muted); }
.hero .lede { font-size: 1.125rem; }

.prose { margin-top: 2.5rem; max-width: 46rem; }
.prose h2 { font-size: 1.625rem; margin: 2.5rem 0 1rem; }
.prose p { line-height: 1.75; margin: 1rem 0; }
.prose a { color: var(--ormus-gold); border-bottom: 1px solid rgba(210, 158, 61, 0.3); }
.prose a:hover { border-bottom-color: var(--ormus-gold); }
.prose strong { color: var(--ormus-fg); font-weight: 600; }
.prose ul { margin: 1.5rem 0; padding-left: 1.5rem; }
.prose li { margin: 0.5rem 0; padding-left: 0.5rem; line-height: 1.7; }
.prose li::marker { color: var(--ormus-gold); }
.prose blockquote {
  margin: 2rem 0; padding: 1rem 1.5rem;
  border-left: 2px solid rgba(210, 158, 61, 0.6);
  background: rgba(210, 158, 61, 0.05);
  border-radius: 0 var(--ormus-radius) var(--ormus-radius) 0;
}
.prose blockquote p { margin: 0.5rem 0; opacity: 0.85; }
.prose blockquote p:first-child::before { content: '\201C'; }
.prose blockquote p:first-child::after { content: '\201D'; }
.prose blockquote .src { font-size: 0.8rem; opacity: 0.6; letter-spacing: 0.02em; }

.peers { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ormus-border); }
.peer-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1rem; }
.peer-row a { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--ormus-ink-muted); }
.peer-row a:hover { color: var(--ormus-gold); }
.peer-row img { width: 3rem; height: 3rem; border-radius: var(--ormus-radius); }

/* footer */
.foot { margin-top: auto; padding: 2rem 0; border-top: 1px solid var(--ormus-border); }
.foot .wrap { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .foot .wrap { flex-direction: row; } }
.foot .serif { font-family: var(--ormus-font-display); font-weight: 500; font-size: 1.05rem; }
.foot .mono-label { display: inline; margin-left: 0.5rem; }
.foot .mono-label::before { content: ''; }
.foot .links { display: flex; gap: 1rem; font-size: 0.875rem; color: var(--ormus-ink-muted); }
.foot .links a:hover { color: var(--ormus-gold); }
