/* AIPhO. Quiet, academic, warm paper and ink. One narrow column, hairline rules. */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1b1a17;
  --body: #403e39;
  --muted: #726f68;
  --line: #e5e2db;
  --logo-slate: #6b7280;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* AI PhO logotype pieces: "AI" in ink, "Ph" + orbit "O" in a quiet slate */

.wm-ai {
  color: var(--text);
}

.wm-gap {
  display: inline-block;
  width: 0.24em;
}

.wm-ph {
  color: var(--logo-slate);
}

.wm-o {
  height: 0.94em;
  width: auto;
  align-self: center;
  flex: none;
  color: var(--logo-slate);
  position: relative;
  top: 0.02em;
  margin-left: 0.02em;
  overflow: visible; /* never clip the orbit ellipse */
}

/* Main column */

main {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.5rem 4rem;
  flex: 1;
}

h1 {
  margin: 0 0 1.1rem;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Homepage hero: big centered AI PhO lockup with tagline */

.hero {
  margin: 0 0 2.8rem;
  text-align: center;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.hero-mark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-size: clamp(3rem, 10vw, 5.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
}

.hero-tagline {
  display: block;
  margin-top: 1.1rem;
  padding-left: 0.36em; /* balances the trailing tracking so it reads centered */
  font-size: clamp(0.72rem, 2.1vw, 0.9rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .hero-tagline {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 2.4rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c4c0b6;
}

a:hover {
  text-decoration-color: var(--text);
}

.muted {
  color: var(--muted);
}

/* At-a-glance facts */

.facts {
  margin: 0 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.facts dt {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

@media (max-width: 34rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

/* Sections */

section {
  margin-top: 2.8rem;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .bar {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer a {
  color: var(--muted);
}

/* Form (kept for when the application page returns) */

form {
  margin-top: 2.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.field {
  margin: 0 0 1.5rem;
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.opt {
  color: var(--muted);
  font-weight: 400;
}

.hint {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #cdc9c0;
  border-radius: 3px;
}

input::placeholder,
textarea::placeholder {
  color: #9b988f;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.field input + input,
.field input + textarea {
  margin-top: 0.55rem;
}

textarea {
  resize: vertical;
}

button {
  margin-top: 0.6rem;
  padding: 0.6rem 1.3rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 3px;
  cursor: pointer;
}

button:hover {
  background: #38362f;
  border-color: #38362f;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.form-status.ok {
  color: #15803d;
}

.form-status.err {
  color: #b91c1c;
}
