/* cyberbonsai — plain, green, easy to read */

:root {
  --bg: #0a1a0f;
  --bg-soft: #0f2416;
  --surface: #132a1b;
  --border: #1e3d28;
  --green: #3ecf6e;
  --green-dim: #2a9a52;
  --green-soft: #7ddea0;
  --text: #e8f5ec;
  --text-muted: #8fb89a;
  --focus: #5ee08a;

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 38rem;
  --radius: 10px;
}

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

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(62, 207, 110, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(42, 154, 82, 0.08), transparent 50%),
    var(--bg);
}

.page {
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Header mark */
.header {
  margin-bottom: 2rem;
}

.mark {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green-dim);
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 2.5rem;
}

/* Profile image */
.avatar-wrap {
  width: 8.5rem;
  height: 8.5rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--green), var(--green-dim));
  box-shadow: 0 0 0 1px rgba(62, 207, 110, 0.15), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
}

.name {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.name .reg {
  font-size: 0.45em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 0.1em;
  color: var(--green-dim);
}

.mark sup {
  font-size: 0.7em;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 28ch;
}

/* About & services */
.about,
.services {
  margin-bottom: 1.75rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin-bottom: 0.65rem;
}

.about p,
.services p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about strong,
.services strong {
  font-weight: 500;
  color: var(--text);
}

.inline-reg {
  font-size: 0.65em;
  vertical-align: super;
  color: var(--green-dim);
}

.about a,
.services a {
  color: var(--green-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(125, 222, 160, 0.35);
}

.about a:hover,
.services a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

.about a:focus-visible,
.services a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.service-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.service-list li {
  margin-bottom: 0.35rem;
}

.service-list li::marker {
  color: var(--green-dim);
}

.service-how {
  margin-bottom: 0;
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.link:hover {
  border-color: var(--green-dim);
  background: var(--bg-soft);
}

.link:active {
  transform: scale(0.99);
}

.link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.link-label {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--green-soft);
}

.link-handle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.footer strong {
  font-weight: 500;
  color: var(--text-muted);
}

.footer sup {
  font-size: 0.7em;
}

.legal-tm {
  max-width: 48ch;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .link {
    transition: none;
  }

  .link:active {
    transform: none;
  }
}

/* Slightly larger screens: keep it centered and calm */
@media (min-width: 640px) {
  .page {
    padding: 3rem 2rem 2rem;
  }

  .header {
    margin-bottom: 2.5rem;
  }

  .avatar-wrap {
    width: 10rem;
    height: 10rem;
  }

  .tagline {
    max-width: none;
  }

  .about,
  .services {
    margin-bottom: 2rem;
  }
}
