/* ============================================================
   Artificial Consciousness Initiative — shared stylesheet
   Every page links this file; edit here once, not per page.

   Principles
   - One typeface (ET Book, Edward Tufte's Bembo revival) for everything,
     nav and captions included.
   - Hierarchy from size and italics, not from weight, caps, or colour.
   - Warm paper, near-black ink, one accent used sparingly.
   - A reading column on the left, a margin column on the right for
     notes, captions, and key facts — like the page of a book.
   ============================================================ */

/* ET Book — MIT licensed (github.com/edwardtufte/et-book; see fonts/LICENSE-ET-Book.txt),
   hosted with the site so pages don't depend on an outside font service. */
@font-face{font-family:"ET Book";src:url("fonts/et-book-roman-line-figures.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"ET Book";src:url("fonts/et-book-display-italic-old-style-figures.woff") format("woff");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"ET Book";src:url("fonts/et-book-bold-line-figures.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}

:root{
  --paper:#fdfcf6;
  --ink:#0d0d0c;
  --mute:#5d5a52;
  --rule:rgba(20,20,18,.15);
  --accent:#5e4a87;
  --rose:#7e5560;
  --blue:#4b5a7e;
  --measure:680px;
  --margin:300px;
  --gutter:64px;
  --serif:"ET Book",Palatino,"Palatino Linotype","Book Antiqua",Georgia,serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* Paper texture: a laid-paper weave (fine horizontal chain lines crossed by fainter
   vertical ones in the ACI purple), over a barely visible fibrous grain. Everything is
   at 1–2% opacity, so it reads as paper rather than a pattern. */
body{
  margin:0;color:var(--ink);
  background-color:var(--paper);
  background-image:
    repeating-linear-gradient(0deg,rgba(14,14,12,.01) 0 1px,transparent 1px 4px),
    repeating-linear-gradient(90deg,rgba(94,74,135,.005) 0 1px,transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  font-family:var(--serif);font-size:21px;line-height:1.43;
  font-kerning:normal;text-rendering:optimizeLegibility;
}
/* no -webkit-font-smoothing:antialiased — on Macs it thins the type noticeably */
p,li,dd{text-wrap:pretty}
h1,h2,h3{text-wrap:balance}
p,h1,h2,h3,ul,ol,dl,dd,figure{margin:0}
img{max-width:100%;display:block}

/* ---------- links: underlined, in ink; the accent appears on hover ---------- */
a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.16em;text-decoration-color:rgba(20,20,18,.38);transition:color .15s,text-decoration-color .15s}
a:hover{color:var(--accent);text-decoration-color:var(--accent)}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

/* ---------- page frame: reading column + margin column ---------- */
.frame{max-width:calc(var(--measure) + var(--gutter) + var(--margin) + 80px);margin:0 auto;padding:0 40px}
.cols{display:grid;grid-template-columns:minmax(0,var(--measure)) minmax(0,var(--margin));column-gap:var(--gutter);align-items:start}
.cols > .main{grid-column:1}
.cols > .side{grid-column:2}
.span{grid-column:1 / -1}
/* a wider reading column, for list pages like Events */
.cols.wide{grid-template-columns:minmax(0,840px)}

/* margin notes */
.note{font-size:16px;line-height:1.45;color:var(--mute)}
.note em{color:var(--ink)}

/* ---------- header ---------- */
/* menu bar: sticks to the top, with a rule running the full width of the window */
html{scroll-padding-top:92px}
.site-head{position:sticky;top:0;z-index:20;padding:18px 0 16px;background:rgba(253,252,246,.92);-webkit-backdrop-filter:saturate(140%) blur(8px);backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid rgba(20,20,18,.55)}
.site-head .frame{display:flex;justify-content:space-between;align-items:center;gap:12px 40px;flex-wrap:wrap}
.wordmark{display:inline-flex;align-items:center;gap:11px;text-decoration:none;font-size:20px;letter-spacing:-.005em}
.wordmark svg{width:30px;height:auto;flex:none;position:relative;top:1px}
.wordmark:hover{color:var(--ink)}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;font-size:13.5px;letter-spacing:.16em;text-transform:uppercase}
.site-nav a{position:relative;padding:.35rem 0;text-decoration:none;color:var(--ink)}
.site-nav a + a{margin-left:1.35rem;padding-left:1.35rem}
.site-nav a + a::before{content:"";position:absolute;left:0;top:50%;height:12px;margin-top:-6px;border-left:1px solid rgba(20,20,18,.28)}
.site-nav a:hover{color:var(--accent)}
.site-nav a[aria-current="page"]{color:var(--accent)}

/* ---------- type scale ---------- */
.masthead{padding:92px 0 0}
.masthead .over{font-size:22px;font-style:italic;color:var(--mute);margin-bottom:.35rem}
.masthead h1{font-weight:400;font-size:clamp(46px,7vw,74px);line-height:1;letter-spacing:-.018em}
.masthead h1 .a{color:var(--rose)}
.masthead h1 .c{color:var(--blue)}
.masthead h1 .i{color:var(--accent)}
.masthead .byline{margin-top:1.1rem;font-size:18.5px;letter-spacing:-.01em}

.page-title{padding:88px 0 0}
.page-title h1{font-weight:400;font-size:clamp(42px,5.6vw,60px);line-height:1.02;letter-spacing:-.016em}
.page-title .lede{margin-top:1.3rem}

.lede{font-size:23px;line-height:1.42}
.prose p + p{margin-top:1em}
.runin{font-weight:700}

h2.h{font-weight:400;font-size:34px;line-height:1.1;letter-spacing:-.01em;margin:0 0 1.1rem}
h3.h{font-weight:400;font-style:italic;font-size:24px;line-height:1.2;margin:0 0 .6rem}

.section{padding-top:84px}
.fig{padding-top:10px}
.fig svg{width:100%;max-width:260px;height:auto;display:block}
.fig figcaption{margin-top:.9rem}

/* ---------- chips ---------- */
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:1.8rem}
.chip{
  display:inline-block;font-size:18px;line-height:1.3;text-decoration:none;color:var(--ink);
  border:1.25px solid var(--ink);border-radius:4px;padding:.2em .62em .24em;
  transition:background .15s,color .15s;
}
.chip:hover{background:var(--ink);color:var(--paper)}

/* ---------- homepage "now" items: text left, note in the margin ---------- */
.item + .item{margin-top:1.2rem}

/* ---------- numbered research questions (numbers hang in the gutter) ---------- */
.qs{list-style:none;padding:0;counter-reset:q}
.qs.cont{counter-reset:q 3}
.qs li{counter-increment:q;position:relative;margin:0 0 .5rem}
.qs li::before{content:counter(q);position:absolute;right:calc(100% + 16px);top:0;color:var(--accent);font-size:.92em}
.qgroup + .qgroup{margin-top:1.8rem}

/* ---------- people ---------- */
/* framed portrait, "gallery mat": a wide paper mat that lifts slightly off the page,
   with a fine bevel line around the print */
.mount{background:#fffefa;padding:14px;border:1px solid rgba(20,20,18,.2);box-shadow:0 1px 0 rgba(20,20,18,.04),0 8px 20px -12px rgba(20,20,18,.25)}
.mount img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;box-shadow:0 0 0 1px rgba(20,20,18,.28)}

/* people page: one person per row */
.person{display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:40px;align-items:start;padding:44px 0;border-top:1px solid var(--rule);scroll-margin-top:24px}
.person:first-child{border-top:none;padding-top:8px}

.person h2{font-weight:400;font-size:34px;line-height:1.08;letter-spacing:-.01em}
.person .rl{margin-top:.4rem;font-style:italic;color:var(--mute);font-size:19px;line-height:1.4}
.person .rl .lead{color:var(--accent)}
.person .focus{margin-top:1rem;max-width:34em}

/* ---------- dated entries (events, publications, talks) ---------- */
.entries{list-style:none;padding:0}
.entry{display:grid;grid-template-columns:132px minmax(0,1fr);column-gap:28px;padding:.75rem 0;border-top:1px solid var(--rule)}
.entry:last-child{border-bottom:1px solid var(--rule)}
.entry .when{font-size:17px;line-height:1.75;color:var(--mute);font-style:italic}
.entry .what cite{font-style:italic}
.entry .meta{display:block;font-size:17px;color:var(--mute);margin-top:.15rem}
.entry .status{font-style:italic;color:var(--accent)}
.entry.past .what{color:var(--mute)}
.group + .group{margin-top:2.6rem}

/* ---------- opportunities ---------- */
.ad h2.h{font-size:27px;margin:2.2rem 0 .6rem}
.ad h2.h:first-child{margin-top:0}
.ad ul{margin:.7rem 0 0;padding-left:1.1em}
.ad li{margin:.2rem 0}
.ad li::marker{color:var(--accent)}
.ad .fine{font-size:17px;line-height:1.5;color:var(--mute)}
.ad code{font-family:var(--serif);font-style:italic;background:rgba(20,20,18,.05);padding:.02em .3em;border-radius:3px;overflow-wrap:anywhere}
.facts{position:sticky;top:96px}
.facts dl{border-top:1px solid var(--ink)}
.facts .row{padding:.6rem 0;border-bottom:1px solid var(--rule)}
.facts dt{font-size:15.5px;font-style:italic;color:var(--mute)}
.facts dd{font-size:19px;line-height:1.35}
.facts .chip{margin-top:1.2rem}

/* ================================================================
   HOMEPAGE — centred title page, "now" band, initiative + questions
   ================================================================ */
.hero{padding:96px 0 0;text-align:center}
.hero-logo{width:clamp(110px,13vw,150px);margin:0 auto 1.4rem}
.hero-logo svg{width:100%;height:auto;display:block}
.hero h1{font-weight:400;font-size:clamp(46px,7.2vw,84px);line-height:.93;letter-spacing:-.01em}
.hero h1 .a{color:var(--rose)}
.hero h1 .c{color:var(--blue)}
.hero h1 .i{color:var(--accent)}
.hero .lede{max-width:35em;margin:1.8rem auto 0;text-wrap:balance}
/* byline under the lede: host and start date, in the same tracked capitals as the section labels.
   Each half stays whole; on narrow screens the two halves stack and the dot is hidden. */
.hero-meta{margin:1.1rem auto 0;font-size:14px;line-height:1.6;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.hero-meta span{white-space:nowrap}
.hero-meta .dot{margin:0 .75em;color:rgba(20,20,18,.3)}
/* "just getting started" note under the lede */
.hero-note{max-width:33em;margin:2.1rem auto 0;text-wrap:balance;font-size:18px;line-height:1.5;color:var(--mute)}
.hero-note::before{content:"";display:block;width:36px;height:1px;margin:0 auto 1.3rem;background:var(--accent)}
.hero-note a{color:var(--ink);text-decoration-color:var(--accent);text-underline-offset:.22em}

/* section label: short accent rule + tracked capitals */
.label{display:flex;align-items:center;gap:.8rem;margin:0 0 1.6rem;font-size:14.5px;font-weight:400;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.label::before{content:"";width:28px;height:1.5px;background:var(--accent)}
.home-section{padding-top:88px}
/* a little more air before the team, so it reads as its own section rather than a continuation */
#team{padding-top:128px}

/* "now" bar — a single announcement under the hero */
/* two columns — announcement left, deadline right — inset from both ends of the rules
   so the two sides sit close together rather than at the far edges of the page */
.now{margin-top:64px;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.now > a{display:grid;grid-template-columns:auto auto;justify-content:center;column-gap:52px;align-items:center;padding:22px 0 24px;text-align:left;text-decoration:none;color:inherit}
.now .lhs{display:flex;flex-direction:column;gap:.3rem;max-width:450px}
.now .k{font-style:italic;font-size:18px;color:var(--accent)}
.now .t{font-size:20px;line-height:1.4;text-wrap:balance;color:var(--ink);transition:color .15s}
.now .m{font-size:17px;color:var(--mute);white-space:nowrap}
.now .m .go{color:var(--accent);display:inline-block;transition:transform .2s}
.now > a:hover .m .go{transform:translateX(3px)}
.now > a:hover .t{color:var(--accent)}

/* statement + focal questions */
/* both columns run the full height of the row: the statement and the research-areas line
   share a first baseline (the small top padding on .focals-intro), and the funder line
   sits at the foot of the right column, level with the statement's last line */
.initiative{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(36px,5vw,64px);align-items:stretch}
.statement p{font-size:21px;line-height:1.45}
.statement p + p{margin-top:1em}
.research-col{display:flex;flex-direction:column}
.statement p.open::first-letter{float:left;font-size:4.3em;line-height:.8;padding:.06em .08em 0 0;color:var(--accent)}
/* browsers with real drop-cap support fit the capital to exactly three lines, flush against the text */
@supports (initial-letter:3) or (-webkit-initial-letter:3){
  .statement p.open::first-letter{float:none;font-size:inherit;line-height:inherit;padding:0 .32em 0 0;-webkit-initial-letter:3;initial-letter:3}
}
.initiative .funder{margin-top:auto;padding-top:1rem;border-top:1px solid var(--rule);font-size:15px;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.initiative .funder b{font-weight:700;color:var(--accent)}
.focals-intro{font-size:19px;line-height:1.45;margin:0 0 1.3rem;max-width:30em;padding-top:3px}
/* question pairs share row heights, so the dividers line up across the two columns:
   each column (heading + 3 questions) spans the same 4 rows of a shared subgrid */
.focals{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,auto);column-gap:36px}
.focal{display:grid;grid-row:1 / span 4;grid-template-rows:subgrid}
.focal ul{display:grid;grid-row:2 / span 3;grid-template-rows:subgrid}
.focal{border-top:2px solid var(--ink);padding-top:14px}
.focal h3{font-weight:400;font-size:26px;line-height:1.1;margin:0 0 .7rem}
.focal ul{list-style:none;padding:0}
.focal li{font-size:20px;line-height:1.35;padding:.6rem 0;border-top:1px solid var(--rule)}
.focal li:first-child{border-top:none;padding-top:0}
.focal li:last-child{padding-bottom:0}

.team-blurb{max-width:34em;margin:-.4rem 0 1.8rem}
/* core team: one person per row — ACI role | photo | name, title, research focus */
.members{border-top:1px solid var(--ink)}
.member:last-child{border-bottom:none}
.member{display:grid;grid-template-columns:150px 208px minmax(0,1fr);grid-template-areas:"role photo head" "role photo focus";grid-template-rows:auto 1fr;column-gap:44px;padding:36px 0;border-bottom:1px solid var(--rule)}
.m-role{grid-area:role;align-self:center;font-size:14px;line-height:1.5;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.m-role.lead{color:var(--accent)}
.member .photo{grid-area:photo}
.m-head{grid-area:head;padding-top:10px}
.m-head h3{font-weight:400;font-size:30px;line-height:1.1;letter-spacing:-.005em}
.m-head h3 a{text-decoration:none}
.m-head h3 a:hover{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.14em}
.m-title{margin-top:.4rem;font-style:italic;font-size:18.5px;line-height:1.35;color:var(--mute)}
.m-focus{grid-area:focus;margin-top:1.15rem;padding-top:1.05rem;border-top:1px solid var(--rule);max-width:34em}
.m-focus p:last-child{font-size:19.5px;line-height:1.5}
.m-areas{margin-bottom:.45rem;font-size:13.5px;line-height:1.5;letter-spacing:.15em;text-transform:uppercase;color:var(--accent)}
.m-areas .dot{margin:0 .2em;color:var(--rule);color:rgba(94,74,135,.45)}
.more{margin-top:2rem;font-size:19px}
.more a{text-decoration-color:var(--accent);text-underline-offset:.3em}

/* ---------- footer ---------- */
.site-foot{margin-top:120px;padding:40px 0 56px;border-top:1px solid var(--rule)}
.site-foot .main p{font-size:19px;line-height:1.5}
.site-foot .main p + p{margin-top:.7rem}
.site-foot .colophon{margin-top:2.2rem;padding-top:1rem;border-top:1px solid var(--rule);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.site-foot .colophon{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem 2rem}
/* each name in its own colours: ACI's rose, blue and purple (from the mark and the hero title);
   Longview's teal and orange (#3B878C, #C44536), deepened slightly so small capitals stay legible */
.site-foot .colophon .aci-a{color:var(--rose)}
.site-foot .colophon .aci-c{color:var(--blue)}
.site-foot .colophon .aci-i{color:var(--accent)}
.lv-teal{color:#2f7479}
.lv-orange{color:#b5402f}

/* ---------- a11y ---------- */
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:var(--paper);padding:.5rem .9rem;z-index:10}
.skip:focus{left:0}

/* ---------- responsive ---------- */
@media (max-width:1060px){
  :root{--margin:240px;--gutter:48px}
}
@media (max-width:900px){
  .member{grid-template-columns:168px minmax(0,1fr);grid-template-areas:"role role" "photo head" "photo focus";column-gap:32px}
  .m-role{padding:0 0 1rem}
  .initiative{grid-template-columns:1fr;gap:40px}
  .initiative .funder{margin-top:1.6rem}
  .focals-intro{padding-top:0}
  .now > a{grid-template-columns:1fr;justify-content:stretch;row-gap:.5rem;padding:18px 0 20px}
  .now .lhs{max-width:none}
  .now .m{white-space:normal}
  .cols{grid-template-columns:minmax(0,1fr)}
  .cols > .side{grid-column:1;margin-top:.8rem}
  /* margin notes drop beneath their text, set off by a short rule */
  .cols > .side .note{padding-left:14px;border-left:2px solid var(--rule)}
  .fig{display:none}
  .ad.cols > .side{grid-row:1;margin:0 0 2.4rem}
  .facts{position:static}
  .qs li{padding-left:1.5em}
  .qs li::before{right:auto;left:0}
}
@media (max-width:600px){
  body{font-size:19px}
  .frame{padding:0 20px}
  .site-head{padding:12px 0 10px}
  html{scroll-padding-top:100px}
  .site-head .frame{flex-direction:column;align-items:flex-start;gap:6px}
  .site-nav{font-size:12.5px;letter-spacing:.11em}
  .site-nav a + a{margin-left:.7rem;padding-left:.7rem}
  .masthead,.page-title{padding-top:56px}
  .hero{padding-top:56px}
  .hero-meta{font-size:min(12.5px,3.25vw);letter-spacing:.1em}
  .hero-meta span:not(.dot){display:block}
  .hero-meta .dot{display:none}
  /* single-line labels on phones: sizes scale with the screen width so each stays on one line
     (the same size for every member's research areas) */
  .initiative .funder{font-size:min(15px,3.3vw);letter-spacing:.12em}
  .m-areas{font-size:min(13.5px,2.75vw);letter-spacing:.05em}
  .site-foot .colophon{font-size:min(13px,3.05vw);letter-spacing:.1em}
  .member{grid-template-columns:104px minmax(0,1fr);grid-template-areas:"role role" "photo head" "focus focus";column-gap:18px;padding:28px 0}
  .member .mount{padding:6px}
  .m-head h3{font-size:25px}
  .m-head{padding-top:2px}
  .m-title{font-size:17px}
  .m-focus{margin-top:1rem;padding-top:.9rem}
  .home-section{padding-top:64px}
  #team{padding-top:88px}
  .focals{grid-template-columns:1fr;grid-template-rows:none;row-gap:30px}
  .focal{display:block;grid-row:auto}
  .focal ul{display:block}
  .statement p{font-size:20px}
  .lede{font-size:20.5px}
  h2.h{font-size:29px}
  .section{padding-top:64px}
  /* portrait floats beside the name; the research focus wraps full width below */
  .person{display:flow-root;padding:32px 0}
  .person h2{font-size:26px}
  .person .rl{font-size:17px}
  .person .focus{clear:both;padding-top:.4rem}
  .entry{grid-template-columns:1fr;padding:.7rem 0}
  .entry .when{line-height:1.4}
  .site-foot{margin-top:88px}
}
@media print{
  body{background:#fff;font-size:11pt}
  .site-nav,.chips{display:none}
  .facts{position:static}
}
