/* =====================================================================
   gloss-research.com — shared stylesheet for every page. Copied verbatim from the Connelly site: same house tokens.

   HOUSE STYLE. These tokens, the type stack, the oxblood margin rule and
   the card treatment are lifted from the GLOSS desk (cn1:8887) so every
   Connelly Research / Gondolin Labs surface looks like one estate.
   Change a colour here and it changes site-wide.
   ===================================================================== */

/* ==== PALETTE — house tokens, do not drift from GLOSS ==== */
:root{
  --bg:#14110e;
  --bg2:#1b1713;
  --panel:#1d1814;
  --line:#322a22;
  --ink:#ece4d6;
  --mut:#9b9082;
  --faint:#6f655a;
  --ox:#9a3b34;        /* oxblood accent */
  --gold:#c9a25a;      /* rubrication gold */
}

*{box-sizing:border-box}

html,body{
  margin:0;
  background:radial-gradient(1200px 600px at 50% -10%,#221c16 0%,var(--bg) 60%) fixed;
  color:var(--ink);
  font:16px/1.6 "Iowan Old Style",Georgia,"Times New Roman",serif;
}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}

.wrap{max-width:1000px;margin:0 auto;padding:0 24px}

/* ==== TOP BAR ==== */
.top{
  display:flex;align-items:center;gap:12px;padding:16px 0 0;
  color:var(--faint);font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;
}
.top .house{display:flex;align-items:center;gap:8px}
.top a.house:hover{color:var(--gold)}
.top .dot{width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 8px var(--gold)}
.top .right{margin-left:auto;display:flex;flex-wrap:wrap;gap:18px}
.top .right a:hover{color:var(--mut)}
.top .right a.here{color:var(--gold)}

/* ==== HERO — margin rule + lead, exactly as the desk ==== */
.hero{padding:72px 0 8px;display:flex;gap:34px;align-items:flex-start}
.marg{
  flex:0 0 auto;width:3px;align-self:stretch;
  background:linear-gradient(var(--ox),transparent);
  position:relative;margin-top:10px;border-radius:2px;
}
.marg::before{content:"";position:absolute;left:-7px;top:14px;width:17px;height:2px;background:var(--ox)}
.marg::after{content:"";position:absolute;left:-7px;top:64px;width:11px;height:2px;background:var(--gold)}

.crest{
  flex:0 0 auto;width:128px;height:128px;display:block;
  border-radius:4px;align-self:center;
  box-shadow:0 2px 18px rgba(0,0,0,.45);
}

.lead{min-width:0}
.lead h1{
  margin:0;font-weight:600;font-size:68px;letter-spacing:.055em;line-height:.96;
  text-transform:uppercase;
}
.lead h1 .by{
  display:block;font-size:13.5px;letter-spacing:.34em;color:var(--gold);
  text-transform:uppercase;margin:18px 0 0;font-weight:400;
}
.lead .tag{font-size:26px;color:var(--ink);margin:22px 0 6px;font-style:italic}
.lead .sub{font-size:16.5px;color:var(--mut);max-width:62ch;margin:0}

/* ==== CARDS ==== */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:46px 0 10px}
.card{
  display:block;position:relative;
  background:linear-gradient(var(--panel),var(--bg2));
  border:1px solid var(--line);border-radius:12px;padding:22px 22px 24px;
  transition:border-color .15s,transform .15s;
}
.card:hover{border-color:#463a2e}
.card h3{margin:0 0 6px;font-size:18.5px;font-weight:600;letter-spacing:.01em;line-height:1.25}
.card p{margin:0;color:var(--mut);font-size:14px;line-height:1.5}
.card p em{color:var(--faint);font-style:italic}
.card .arr{position:absolute;right:18px;top:20px;color:var(--faint);font-size:18px;transition:.15s}
.card:hover .arr{color:var(--ox);transform:translateX(3px)}

/* ==== INTERIOR PAGES ==== */
.page-head{padding:56px 0 0;display:flex;gap:34px;align-items:flex-start}
.page-head h1{
  margin:0;font-weight:600;font-size:40px;letter-spacing:.03em;line-height:1.05;
  text-transform:uppercase;
}
.page-head .kicker{
  display:block;font-size:12px;letter-spacing:.3em;color:var(--gold);
  text-transform:uppercase;margin:0 0 14px;font-weight:400;
}
.page-head .lede{font-size:19px;color:var(--ink);margin:20px 0 0;max-width:58ch;font-style:italic}

.body-copy{padding:34px 0 0;max-width:66ch}
.body-copy p{margin:0 0 1.05rem;color:var(--mut);font-size:16.5px}
.body-copy p:last-child{margin-bottom:0}
.body-copy a{color:var(--gold);border-bottom:1px dotted var(--faint)}
.body-copy a:hover{color:#e7c984}

h2.sub{
  margin:2.6rem 0 .6rem;font-size:13px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);font-weight:400;
}
h2.sub em{font-style:italic;letter-spacing:.1em}

.functions{
  list-style:none;margin:2rem 0 0;padding:0;
  display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;
  color:var(--faint);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;
}

.note{
  margin:2.2rem 0 0;padding:16px 18px;
  background:linear-gradient(var(--panel),var(--bg2));
  border:1px solid var(--line);border-radius:12px;
  color:var(--mut);font-size:14.5px;font-style:italic;line-height:1.55;
}

/* ==== OFFICES (About) ==== */
.offices{list-style:none;margin:1.4rem 0 0;padding:0;display:flex;flex-direction:column;gap:1.05rem}
.offices li{display:grid;gap:.08rem;padding-left:14px;border-left:2px solid var(--line);max-width:60ch}
.offices li:hover{border-left-color:var(--ox)}
.role{font-weight:600;font-size:16.5px;color:var(--ink)}
.where{color:var(--mut);font-size:15px;line-height:1.5}
.where a{color:var(--gold);border-bottom:1px dotted var(--faint)}
.where a:hover{color:#e7c984}
.gloss{color:var(--faint);font-size:14px;line-height:1.5;margin-top:.2rem}

/* ==== FOOTER ==== */
.foot{
  margin:54px 0 40px;padding-top:20px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:14px;align-items:baseline;
  color:var(--faint);font-size:13px;
}
.foot a{color:var(--mut)}
.foot a:hover{color:var(--gold)}
.foot .right{margin-left:auto;display:flex;flex-wrap:wrap;gap:16px}
.foot .lab{letter-spacing:.12em;text-transform:uppercase;font-size:11px}

@media(max-width:760px){
  .cards{grid-template-columns:1fr}
  .lead h1{font-size:40px}
  .crest{width:74px;height:74px}
  .page-head h1{font-size:30px}
  .hero{gap:20px;padding-top:40px}
  .page-head{gap:20px}
  .top{letter-spacing:.1em;font-size:11.5px}
}
