/*
Theme Name: APT Trading
Theme URI: https://adjacentpossibletrading.com/
Author: APT
Description: Minimal custom WordPress theme for Adjacent Possible Trading.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: apt-trading
*/

:root {
  --bg: #05060a;
  --surface: rgba(10, 11, 18, 0.72);
  --text: #f6f3ee;
  --muted: #b9bbc7;
  --line: rgba(255, 255, 255, 0.15);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.apt-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(90deg, rgba(2,3,7,.38), rgba(2,3,7,.58)),
    var(--apt-background);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.apt-nav {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .08em;
  font-size: 16px;
}
.apt-brand img { width: 44px; height: 44px; object-fit: contain; }

.apt-nav-links { display: flex; gap: 26px; align-items: center; }
.apt-nav-links a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.apt-nav-links a:hover,
.apt-nav-links a[aria-current='page'] { color: var(--text); }

.apt-page {
  width: min(calc(100% - 48px), 880px);
  margin: 0 auto;
  padding: 110px 0 140px;
  flex: 1;
}
.apt-page-wide { width: min(calc(100% - 48px), 1000px); }
.apt-eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.apt-page h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(54px, 8vw, 96px);
  line-height: .95;
  letter-spacing: -.045em;
}
.apt-page p {
  color: #d8d8df;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.7;
  max-width: 900px;
}
.apt-rule { height: 1px; background: var(--line); margin: 48px 0; }

.apt-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: auto auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: #888b96;
  font-size: 11px;
  line-height: 1.5;
}

/* Landing page */
body.home { overflow: hidden; }
.apt-landing-center {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 40px 32px 80px;
}
.apt-landing-logo {
  display: block;
  width: min(340px, 55vw);
  height: auto;
}

/* About */
.apt-about h1 { max-width: 920px; font-size: clamp(48px, 7vw, 88px); }
.apt-about-copy p { font-size: clamp(18px, 2.1vw, 24px); line-height: 1.65; }
.apt-founders { margin-top: 96px; }
.apt-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 820px;
}
.apt-headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.025);
}
.apt-founder h2 {
  margin: 22px 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
}
.apt-founder p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--muted);
}

/* Contact */
.apt-contact a { text-decoration: underline; text-underline-offset: 4px; }

/* Documentation */
.apt-login { max-width: 520px; }
.apt-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  padding: 28px;
}
.apt-card label {
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.apt-card input {
  width: 100%;
  padding: 15px 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.apt-button {
  margin-top: 14px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--bg);
  background: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.apt-error { color: #f0b5b5 !important; margin-top: 14px !important; font-size: 14px !important; font-family: Arial, Helvetica, sans-serif !important; }
.apt-document-list { border-top: 1px solid var(--line); }
.apt-document-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
}
.apt-logout { margin-top: 42px; }

@media (max-width: 700px) {
  .apt-nav, .apt-page, .apt-footer { width: calc(100% - 32px); }
  .apt-nav-links { gap: 14px; }
  .apt-nav-links a { font-size: 10px; }
  .apt-brand span { display: none; }
  .apt-landing-logo { width: min(290px, 66vw); }
  .apt-founders-grid { grid-template-columns: 1fr; gap: 56px; }
  .apt-headshot { max-width: 100%; }
}
