/* Omarchy Yacht Club — Tokyo Night base, salt-water accents */
:root {
  --bg-deep: #13141c;
  --bg: #1a1b26;
  --surface: #1f2230;
  --surface-2: #24283b;
  --border-subtle: #24283b;
  --border-strong: #414868;
  --text: #c0caf5;
  --text-secondary: #a9b1d6;
  --text-muted: #8b93b8;
  --brand: #2ac3de;
  --brand-soft: #2ac3de1f;
  --brand-hover: #73daca;
  --brand-foam: #c2e7e3;
  --brand-ink: #0c0e10;
  --radius: 0;
  --font-sans: "Geist", "Geist Variable", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Variable", ui-monospace, monospace;
  --max: 72rem;
  --pad: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg-deep);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner,
.footer-inner,
.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--brand);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

main {
  flex: 1;
}

.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 16ch;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.hero-art {
  justify-self: center;
  width: min(100%, 22rem);
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.hero-art img {
  width: 100%;
  image-rendering: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--brand-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
}

.btn-ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card .meta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.placeholder {
  padding: 2rem 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

.placeholder strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
}

.placeholder p {
  margin: 0;
  max-width: 40rem;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.photo-slot {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-slot {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.form-slot iframe {
  width: 100%;
  min-height: 28rem;
  border: 0;
  background: var(--bg-deep);
}

.note {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.inline-logo {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  margin-right: 0.35em;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-strong);
  background: var(--bg-deep);
  padding: 2rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand img.wordmark {
  width: min(12rem, 100%);
  height: auto;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 36rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
}

.social-pending {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tool-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.tool-list li {
  margin: 0.25rem 0;
}

.tool-list a {
  text-decoration: none;
}

.tool-list a:hover {
  text-decoration: underline;
}

.card .meta a {
  color: var(--brand);
}
