/*
Theme Name: Aperture Institute
Theme URI: https://aperture.pub
Author: Aperture Institute
Description: Custom journal and newsroom for aperture.pub. Not the WordPress.org Aperture theme. Do not press Update.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Update URI: https://aperture.pub/
Text Domain: aperture-institute
*/

:root {
  --paper: #eef3f8;
  --ink: #0e1626;
  --muted: #526075;
  --faint: #7d8b9e;
  --line: #d5dfeb;
  --card: #ffffff;
  --signal: #0c8f88;
  --signal-deep: #08756f;
  --dark: #0b1220;
  --on-dark: #eef6f8;
  --band: #9eb0c3;
  --ice: #dff4f2;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #e8eef6;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr, .skip { position: absolute; left: -999px; }
.skip:focus, .sr:focus { left: 12px; top: 12px; z-index: 30; background: var(--ink); color: white; padding: 8px 12px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: relative;
  background: #ffffff;
  border-bottom: 3px solid #0c8f88;
}
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 0 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.word { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.6rem; line-height: 0.9; letter-spacing: -0.03em; }
.word small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal); margin-top: 5px; }
.mark { width: 28px; height: 28px; color: var(--signal); flex: none; }
.mast-search {
  display: flex; flex: 1; min-width: min(100%, 240px); max-width: 440px; margin-left: auto;
  background: #f4f7fb; border: 1px solid #d5e0ec; border-radius: 999px; overflow: hidden;
}
.mast-search input {
  flex: 1; border: 0; background: transparent; min-height: 40px; padding: 0 16px; outline: none;
}
.mast-search button {
  border: 0; background: #0e1626; color: white; padding: 0 18px; cursor: pointer; letter-spacing: 0.04em;
}
.mast-search button:hover { background: var(--signal-deep); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; border-top: 0; padding: 4px 0 12px; }
.nav a, .foot-links a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #526075; }
.nav .enter { margin-left: auto; color: #08756f; }
.nav a[aria-current="page"] { color: #08756f; box-shadow: inset 0 -2px 0 #0c8f88; }
.stage { background: #07131c; color: #e8f4f3; }
.stage .kicker { color: #7ee0d6; }
.stage h1, .stage .deck { color: #fff; }
.stage .lede { color: #9eb0c3; }
.stage .btn { background: #12a89a; color: #04221f; border-color: #12a89a; }
.stage .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero { display: grid; gap: 28px; align-items: center; padding: 48px 0 64px; }
.hero-copy { max-width: 40rem; animation: rise 0.7s ease both; }
.kicker, .eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal-deep); margin: 0; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); margin: 12px 0 0; color: var(--ink); }
h1 em { font-style: italic; }
.deck { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.3; max-width: 36rem; margin: 18px 0 0; }
.lede { color: var(--muted); max-width: 36rem; margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn, button.btn, .actions a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  background: var(--dark); color: white; text-decoration: none; border: 1px solid var(--dark); cursor: pointer;
}
.btn.ghost, .actions a:last-child { background: transparent; color: var(--ink); }
.page .actions a { margin-right: 8px; }
.btn:hover, button.btn:hover, .actions a:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: white; }
.cover {
  position: relative; min-height: 420px; display: grid; place-items: center;
  overflow: hidden; text-decoration: none; color: var(--on-dark);
  background:
    radial-gradient(circle at 50% 42%, #16343a 0%, var(--dark) 68%);
  box-shadow: 0 20px 50px rgba(11, 18, 32, 0.16);
  animation: rise 0.9s ease 0.08s both;
}
.cover::before {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  border: 1px dashed rgba(158, 231, 225, 0.45);
  animation: spin 36s linear infinite;
}
.cover svg.iris { width: min(250px, 68%); height: auto; color: #2ec4b6; position: relative; }
.crop { position: absolute; width: 16px; height: 16px; border-color: rgba(214, 244, 241, 0.55); border-style: solid; }
.crop.tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.crop.tr { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.crop.bl { bottom: 76px; left: 16px; border-width: 0 0 1px 1px; }
.crop.br { bottom: 76px; right: 16px; border-width: 0 1px 1px 0; }
.spin { transform-origin: 80px 80px; animation: spin 22s linear infinite; }
.spin-rev { animation-duration: 34s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cover-label {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(6, 12, 22, 0.35);
}
.cover-label b { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.cover-label small, .open { letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.cover-label small { color: var(--band); }
.open { color: #8ef0e8; }
.story {
  display: grid; gap: 16px; margin: -28px 0 36px; padding: 12px; position: relative; z-index: 2;
  background: #fff; border: 1px solid #d5e2ee; text-decoration: none;
  box-shadow: 0 18px 50px rgba(7, 19, 28, 0.12);
}
.story:hover { border-color: #9fd6d2; transform: translateY(-2px); }
.story img { width: 100%; height: 180px; object-fit: cover; }
.story strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.12; }
.story .more { display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-deep); font-weight: 600; }
.desks { display: grid; border-block: 1px solid var(--line); background: transparent; }
.desk { padding: 32px 0; }
.desk h2 { font-size: clamp(1.55rem, 2vw, 1.9rem); margin: 10px 0; }
.desk p, .muted { color: var(--muted); }
.desk > a { color: var(--signal-deep); font-weight: 600; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding: 10px 0 0; margin-top: 10px; }
.steps span { color: var(--signal); font-size: 12px; font-weight: 600; }
.steps b { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.rows { list-style: none; margin: 8px 0 0; padding: 0 0 56px; }
.rows a {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 6px 14px;
  padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none;
  transition: padding 0.2s ease;
}
.rows a:hover { padding-left: 8px; }
.rows a:hover strong { color: var(--signal-deep); }
.rows li:last-child a { border-bottom: 1px solid var(--line); }
.rows em { color: var(--signal); font-style: normal; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; }
.rows strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
.rows span { grid-column: 2; color: var(--muted); font-size: 14px; }
.band { background: var(--dark); color: var(--on-dark); }
.band-grid { display: grid; gap: 24px; padding: 64px 0; }
.band h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 10px 0 0; }
.band .four { display: grid; gap: 1px; background: rgba(255,255,255,.1); }
.band article { background: #10192b; padding: 20px 16px 24px; }
.page { padding: 36px 0 72px; }
.crumbs { color: var(--faint); font-size: 13px; margin: 0 0 18px; }
.page h1 { max-width: 46rem; }
.page .deck { margin-top: 18px; }
.themes { width: 100%; border-collapse: collapse; margin-top: 8px; background: white; }
.themes th { text-align: left; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 12px 16px 12px 0; }
.themes td { border-top: 1px solid var(--line); padding: 16px 16px 16px 0; vertical-align: baseline; }
.themes td:first-child { font-weight: 600; }
.themes td:last-child { color: var(--muted); }
.kinds { display: grid; gap: 12px; margin-top: 20px; }
.kinds article { background: white; border: 1px solid var(--line); padding: 18px 16px; }
.kinds b { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-deep); }
.briefing {
  display: grid; gap: 18px; margin-top: 28px; padding: 14px;
  background: white; border: 1px solid var(--line); text-decoration: none;
}
.briefing:hover { border-color: #9fd6d2; }
.briefing img { width: 100%; height: 200px; object-fit: cover; }
.briefing h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 0; }
.article { max-width: 40rem; }
.article h1 { font-size: clamp(1.65rem, 2.1vw, 2.05rem); line-height: 1.18; letter-spacing: -0.02em; max-width: 22em; }
.article .figure { margin: 28px 0 0; }
.article img { width: 100%; object-fit: cover; }
.article figcaption, .source { color: var(--muted); font-size: 14px; }
.article h2 { font-size: 1.7rem; margin: 2rem 0 0; }
.article h3 { font-size: 1.25rem; margin: 1.3rem 0 0; }
.article p { margin: 12px 0 0; }
.source { border-block: 1px solid var(--line); padding: 18px 0; margin-top: 32px; }
.form { display: grid; gap: 14px; max-width: 32rem; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.form input, .form select, .form textarea {
  min-height: 44px; border: 1px solid var(--line); background: white; padding: 8px 12px;
  text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink);
}
.form textarea { min-height: 140px; }
.note { max-width: 38rem; border-block: 1px solid var(--line); padding: 18px 0; margin-top: 24px; }
.four b { display: block; margin: 0 0 8px; }
.site-footer { background: #07131c; color: #e8f4f3; border-top: 1px solid rgba(12, 143, 136, 0.7); }
.foot { display: grid; gap: 36px; padding: 56px 0 40px; }
.foot-name { margin: 0; font-family: var(--serif); font-size: 2.4rem; line-height: 0.95; letter-spacing: -0.03em; }
.foot-tag { margin: 10px 0 0; max-width: 16rem; color: #9eb0c3; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; }
.foot-col { display: grid; align-content: start; gap: 8px; }
.foot-col p { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7ee0d6; }
.foot-col a { color: #d5e4ea; text-decoration: none; font-size: 15px; min-height: 32px; display: inline-flex; align-items: center; }
.foot-col a:hover { color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0 22px; }
.foot-base p { margin: 0; color: #7d8b9e; font-size: 13px; }
.search-hit { display: block; border-top: 1px solid var(--line); padding: 14px 0; text-decoration: none; }
.search-hit strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.15; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 56px; padding: 52px 0 28px; }
  .desks { grid-template-columns: 1.1fr 1.1fr 0.85fr; }
  .desk { padding: 36px 28px 36px 0; }
  .desk + .desk { border-left: 1px solid var(--line); padding-left: 28px; }
  .story { grid-template-columns: 280px 1fr; align-items: center; }
  .story img { height: 160px; }
  .rows a { grid-template-columns: 3.2rem 14rem 1fr; align-items: baseline; }
  .rows span { grid-column: auto; }
  .band-grid { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
  .band .four { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .foot { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .kinds { grid-template-columns: 1fr 1fr 1fr; }
  .briefing { grid-template-columns: 16rem 1fr; align-items: center; }
  .briefing img { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
.auth { max-width: 32rem; }
.auth-note { color: #8a2a2a; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; margin: 16px 0 0; }
.auth-ok { color: var(--signal-deep); text-transform: none; letter-spacing: 0; font-size: 15px; margin: 16px 0 0; }
.oauth { display: grid; gap: 10px; margin-top: 18px; }
.oauth a, .form button.btn { justify-content: center; text-align: center; }
.oauth a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 0 16px; border-radius: 6px; font-weight: 600; }
.oauth a.with-google { border: 1px solid #747775; background: white; color: #1f1f1f; }
.oauth a.with-x { border: 1px solid #000; background: #000; color: #fff; }
.oauth a.with-google:hover { background: #f8f9fa; }
.oauth a.with-x:hover { background: #1a1a1a; }
.or { margin: 22px 0 0; color: var(--faint); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.phone-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 8px; }
.phone-row select, .phone-row input { min-width: 0; }
@media (max-width: 560px) {
  .phone-row { grid-template-columns: 1fr; }
  .nav .enter { margin-left: 0; }
}
.hp { position: absolute; left: -999px; }
.code input { letter-spacing: 0.28em; font-size: 20px; }
.account-list { list-style: none; padding: 0; margin: 20px 0 0; max-width: 32rem; }
.account-list li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; }
.account-list span { color: var(--muted); }
