/* ============================================================
   style.css
   Design: "digital ID card" — a single frosted-glass badge
   floating on a textured paper ground. Ink black / warm ivory /
   sunflower gold. Cormorant Garamond carries the name, tagline
   and the "come along" line — used sparingly, nowhere else.
   Nunito carries everything else. JetBrains Mono marks structure
   (eyebrows, category dividers) so the page reads like a labeled
   index card, not a wall of prose.
   ============================================================ */

/* ---------- Tokens ------------------------------------------------ */
:root {
  /* Light (default) */
  --bg: #f6f2e9;
  --bg-2: #efe9db;
  --grain-opacity: 0.05;
  --ink: #1b1a17;
  --muted: #6e6b60;
  --faint: #8f8b7c;
  --surface: rgba(255, 253, 248, 0.6);
  --surface-solid: #fffdf8;
  --border: rgba(27, 26, 23, 0.1);
  --border-strong: rgba(27, 26, 23, 0.18);
  --gold: #bf8f0a;
  --gold-light: #e8b923;
  --gold-tint: rgba(191, 143, 10, 0.12);
  --danger: #b3402f;
  --danger-tint: rgba(179, 64, 47, 0.1);
  --success: #4f7a3f;
  --success-tint: rgba(79, 122, 63, 0.1);
  --shadow: 0 1px 2px rgba(27, 26, 23, 0.04), 0 16px 40px -20px rgba(27, 26, 23, 0.25);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Nunito", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-dev: "Noto Sans Devanagari", var(--font-body);

  --radius-card: 28px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 220ms;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #14130f;
  --bg-2: #1c1a14;
  --grain-opacity: 0.06;
  --ink: #f2eee2;
  --muted: #a9a392;
  --faint: #7d7867;
  --surface: rgba(34, 31, 24, 0.55);
  --surface-solid: #1c1a14;
  --border: rgba(242, 238, 226, 0.1);
  --border-strong: rgba(242, 238, 226, 0.18);
  --gold: #f0c64a;
  --gold-light: #f0c64a;
  --gold-tint: rgba(240, 198, 74, 0.14);
  --danger: #e18272;
  --danger-tint: rgba(225, 130, 114, 0.14);
  --success: #8fbf7a;
  --success-tint: rgba(143, 191, 122, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(191, 143, 10, 0.045) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(191, 143, 10, 0.045) 32px);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

/* subtle paper grain, layered above the gradient, below content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

[data-theme="dark"] body::before {
  mix-blend-mode: screen;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--speed) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout shell -------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 28px 16px 72px;
}

.topbar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--muted);
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease),
    transform 150ms var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

#theme-icon-dark {
  display: none;
}

[data-theme="dark"] #theme-icon-light {
  display: none;
}

[data-theme="dark"] #theme-icon-dark {
  display: block;
}

/* ---------- The card -------------------------------------------------- */
.card {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-top: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background: radial-gradient(circle at 92% 6%, var(--gold-tint), transparent 30%),
    repeating-linear-gradient(135deg, transparent 0 27px, rgba(191, 143, 10, 0.035) 28px 29px);
}

/* grommet: the badge "hole", echoing a lanyard ID card */
.grommet {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  z-index: 2;
  box-shadow: 0 0 0 5px var(--gold-tint);
}

.grommet::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.card-section {
  padding: 32px 34px;
}

/* perforated divider — the "tear line" between card sections */
.tear {
  position: relative;
  --tear-inset: 34px;
  height: 1px;
  margin: 0 var(--tear-inset);
  background-image: linear-gradient(to right, var(--border-strong) 55%, transparent 0%);
  background-size: 9px 1px;
  background-repeat: repeat-x;
}

.tear::before,
.tear::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}

.tear::before {
  left: calc(-1 * (var(--tear-inset) + 9px));
}

.tear::after {
  right: calc(-1 * (var(--tear-inset) + 9px));
}

/* ---------- Profile / hero -------------------------------------------- */
.profile {
  padding-top: 42px;
  text-align: center;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px var(--gold-tint), 0 14px 26px -18px var(--ink);
}

.name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.6rem);
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0 0 6px;
}

.role {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  color: var(--gold);
  margin: 0 0 10px;
  line-height: 1;
}

.identifiers {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
}

#social-links-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease),
    transform 150ms var(--ease);
  animation: social-link-in 420ms var(--ease) both;
}

.social-link svg {
  width: 19px;
  height: 19px;
  display: block;
}

.social-link:hover {
  color: var(--gold);
  background: var(--gold-tint);
  transform: translateY(-3px) rotate(-5deg) scale(1.08);
}

.social-link:active {
  transform: scale(0.94);
}

.social-link-1 {
  animation-delay: 35ms;
}

.social-link-2 {
  animation-delay: 70ms;
}

.social-link-3 {
  animation-delay: 105ms;
}

.social-link-4 {
  animation-delay: 140ms;
}

.social-link-5 {
  animation-delay: 175ms;
}

.social-link-6 {
  animation-delay: 210ms;
}

@keyframes social-link-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-note {
  max-width: 360px;
  margin: 0 auto 26px;
  color: var(--ink);
  opacity: 0.82;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 150ms var(--ease), border-color var(--speed) var(--ease),
    background var(--speed) var(--ease);
}

.pill-btn svg {
  width: 16px;
  height: 16px;
}

.pill-btn:hover {
  border-color: var(--gold);
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-btn.is-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

[data-theme="dark"] .pill-btn.is-primary {
  background: var(--gold);
  color: #14130f;
  border-color: var(--gold);
}

/* ---------- Eyebrows / structural labels ----------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

/* ---------- Right now -------------------------------------------------- */
.currently-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.currently-list li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
  padding-left: 19px;
}

.currently-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Find me: category dividers ---------------------------------- */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.links-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 6px 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.links-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.links-divider:first-child {
  padding-top: 0;
}

/* ---------- Find me: link rows ------------------------------------------- */
.link-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 6px;
  border-radius: var(--radius-md);
  transition: background var(--speed) var(--ease), transform 150ms var(--ease);
}

.link-item a:hover {
  background: var(--gold-tint);
}

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

.link-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: none;
  border: 0;
  color: var(--ink);
}

.link-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-name {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
}

.link-desc {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.4;
}

.link-arrow {
  flex: none;
  color: var(--faint);
  display: grid;
  place-items: center;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* ---------- Come along -------------------------------------------------------- */
.come-along {
  position: relative;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
  color: #f4efe2;
  overflow: hidden;
  background-image: linear-gradient(180deg,
      rgba(20, 18, 13, 0.78) 0%,
      rgba(20, 18, 13, 0.6) 45%,
      rgba(20, 18, 13, 0.85) 100%),
    url("../assets/images/come-along.jpg");
  background-size: cover;
  background-position: center 30%;
}

.come-along .eyebrow {
  color: var(--gold-light);
}

.come-along-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.5rem, 4.2vw, 1.95rem);
  line-height: 1.25;
  max-width: 300px;
  margin: 0 auto 12px;
}

.come-along-copy {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
  color: rgba(244, 239, 226, 0.82);
}

/* ---------- Philosophy line ------------------------------------------------ */
.philosophy {
  text-align: center;
  padding: 26px 30px;
}

.philosophy p#philosophy-text {
  font-family: var(--font-dev);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}

.philosophy-gloss {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ---------- Main website callout ------------------------------------------ */
.website-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: var(--surface-solid);
}

.website-name {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}

.website-url {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--gold);
  margin: 0 0 8px;
}

.website-desc {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.website-card .link-out {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.website-card .link-out:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
}

.website-card .link-out svg {
  width: 15px;
  height: 15px;
}

/* ---------- Contact form ------------------------------------------------------ */
.contact-intro {
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 150ms var(--ease), opacity var(--speed) var(--ease);
}

[data-theme="dark"] .submit-btn {
  background: var(--gold);
  color: #14130f;
}

.submit-btn:hover {
  opacity: 0.92;
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--success-tint);
  color: var(--success);
}

.form-status.is-error {
  background: var(--danger-tint);
  color: var(--danger);
}

/* ---------- Footer ----------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 24px 30px 32px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- Toast (copy/share confirmation) ----------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  z-index: 50;
  box-shadow: var(--shadow);
}

.toast-icon {
  display: grid;
  place-items: center;
  color: var(--gold-light);
}

.toast-icon svg {
  width: 15px;
  height: 15px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Motion -------------------------------------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Breakpoints ---------------------------------------------------------- */
@media (min-width: 600px) {
  .page {
    padding-top: 64px;
  }

  .card {
    margin-top: 40px;
  }

  .avatar {
    width: 124px;
    height: 124px;
  }
}

@media (max-width: 359px) {
  .card-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .tear {
    --tear-inset: 22px;
  }
}