:root {
  color-scheme: dark;
  --bg: #0f1419;
  --card: #1b232d;
  --text: #e6edf3;
  --muted: #8b98a5;
  --border: #2c3947;
  --link: #4caf50;
  --link-hover: #66bb6a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--link);
}

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

.container {
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

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

.home {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.profile {
  /* 90x55mm business-card proportions (NZ/AU standard); collapses to auto height on narrow screens */
  width: min(460px, 92vw);
  aspect-ratio: 18 / 11;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.45);
}

/* Accent edge, like a printed bleed */
.profile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--link);
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.identity {
  flex: 1 1 12rem;
  min-width: 0;
}

.identity h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.handle {
  margin: 0.1rem 0 0;
  color: var(--link);
  font-size: 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.headline {
  color: var(--muted);
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}

.domain {
  margin: 0.9rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-links {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-links span {
  color: var(--muted);
}

.card-links a {
  text-decoration: none;
}

.card-links a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .profile {
    aspect-ratio: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}

header.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand h1 {
  margin: 0;
}

.get {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 1.25rem 0 1.75rem;
}

@media (max-width: 480px) {
  .get {
    flex-direction: column;
  }
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--link-hover);
  color: #fff;
}

.btn small {
  font-size: 0.7rem;
  font-weight: 400;
}

.btn.disabled {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

h1, h2, h3 {
  margin: 0 0 0.7rem;
  line-height: 1.25;
}

h2 {
  margin-top: 2rem;
}

h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
}

th, td {
  text-align: left;
  padding: 0.55rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.job {
  margin: 1rem 0 1.2rem;
}

.job-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.job-logo {
  width: 90px;
  height: auto;
  object-fit: contain;
  margin-top: 0.2rem;
}

.job-meta p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

ul {
  margin-top: 0.5rem;
}

.footer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}
