/* Palette
   Deep coastal green/black: #0B1A16, #122821
   Warm off-white:           #F3EEE4, #E8E1D4
   Copper / amber accent:    #C8884A, #D4A574
*/

:root {
  --bg: #0B1A16;
  --bg-soft: #122821;
  --ink: #F3EEE4;
  --ink-muted: #E8E1D4;
  --accent: #C8884A;
  --accent-soft: #D4A574;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --hub-max: 28rem;
  --radius: 0.875rem;
}

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(11, 26, 22, 0.58) 0%, rgba(11, 26, 22, 0.72) 42%, rgba(11, 26, 22, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200, 136, 74, 0.1), transparent 55%),
    url("assets/backdrop-v1.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 35%;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hub {
  flex: 1;
  width: 100%;
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.15rem, 4vw, 1.5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.profile { text-align: center; margin-bottom: 1.75rem; }
.avatar { display: inline-flex; margin-bottom: 1rem; }
.avatar svg {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(200, 136, 74, 0.25);
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.4);
}

.handle {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

.quiet {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  opacity: 0.7;
}

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

.link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(18, 40, 33, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 225, 212, 0.1);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.link-btn:hover {
  background: #16352c;
  border-color: rgba(200, 136, 74, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.link-btn:active { transform: translateY(0); }
.link-btn.is-placeholder { cursor: default; }
.link-btn.is-placeholder:hover {
  transform: none;
  box-shadow: none;
  background: #152e27;
  border-color: rgba(232, 225, 212, 0.12);
}

.link-btn__label { display: block; }

.link-btn.has-icon {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  padding: 0.75rem 1rem;
}
.link-btn__marks {
  position: relative;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
}
.link-btn.has-icon .link-btn__icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(200, 136, 74, 0.35);
}
.link-btn__badge {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: cover;
  border-radius: 50%;
  background: #0b1a16;
  box-shadow: 0 0 0 2px rgba(11, 26, 22, 0.95), 0 0 0 3px rgba(212, 165, 116, 0.85);
}
.link-btn.has-icon .link-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.link-btn__secondary {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  opacity: 0.85;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.55;
  text-align: center;
}

.socials { margin-top: 1.75rem; text-align: center; }

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.social-chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(18, 40, 33, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 136, 74, 0.28);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.social-chip:hover {
  border-color: rgba(200, 136, 74, 0.55);
  background: #16352c;
}

.social-chip.is-placeholder { cursor: default; opacity: 0.75; }
.social-chip.is-placeholder:hover {
  background: var(--bg-soft);
  border-color: rgba(200, 136, 74, 0.28);
}

/* —— Latest feed window —— */
.latest {
  margin-top: 1.75rem;
  text-align: center;
}

.feed-window {
  border-radius: 1rem;
  border: 1px solid rgba(200, 136, 74, 0.32);
  background:
    linear-gradient(180deg, rgba(18, 40, 33, 0.95), rgba(11, 26, 22, 0.98));
  box-shadow:
    0 0 0 1px rgba(11, 26, 22, 0.8) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-align: left;
}

.feed-window__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(232, 225, 212, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.feed-window__chrome .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(232, 225, 212, 0.22);
}

.feed-window__chrome .dot:nth-child(1) { background: rgba(200, 136, 74, 0.55); }
.feed-window__chrome .dot:nth-child(2) { background: rgba(212, 165, 116, 0.4); }

.feed-window__title {
  margin-left: 0.45rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.7;
}

.feed-track {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 136, 74, 0.35) transparent;
}

.feed-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.feed-card {
  position: relative;
  flex: 0 0 9.5rem;
  width: 9.5rem;
  height: 12.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(232, 225, 212, 0.1);
  background: #0e201b;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feed-card__media {
  position: absolute;
  inset: 0;
}

.feed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(11, 26, 22, 0.72);
  border: 1px solid rgba(200, 136, 74, 0.35);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.feed-card__caption {
  position: relative;
  z-index: 2;
  padding: 0.65rem 0.65rem 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  background: linear-gradient(180deg, transparent, rgba(11, 26, 22, 0.92) 40%);
}

/* Abstract tones — placeholders until real photos */
.tone-a .feed-card__media {
  background:
    radial-gradient(circle at 30% 25%, rgba(200, 136, 74, 0.45), transparent 45%),
    linear-gradient(160deg, #1a3a31, #0b1a16 70%);
}
.tone-b .feed-card__media {
  background:
    radial-gradient(circle at 70% 60%, rgba(232, 225, 212, 0.18), transparent 40%),
    linear-gradient(200deg, #204338, #0f221c);
}
.tone-c .feed-card__media {
  background:
    radial-gradient(ellipse at 40% 80%, rgba(200, 136, 74, 0.25), transparent 50%),
    linear-gradient(135deg, #16352c, #0b1a16);
}
.tone-d .feed-card__media {
  background:
    linear-gradient(45deg, rgba(212, 165, 116, 0.2) 0%, transparent 40%),
    linear-gradient(180deg, #1c322b, #122821);
}
.tone-e .feed-card__media {
  background:
    radial-gradient(circle at 50% 30%, rgba(200, 136, 74, 0.3), transparent 55%),
    linear-gradient(210deg, #142820, #0b1a16);
}
.tone-f .feed-card__media {
  background:
    linear-gradient(120deg, #1f3d34 0%, #0e1f1a 55%, #1a3028 100%);
}
.tone-g .feed-card__media {
  background:
    radial-gradient(circle at 20% 70%, rgba(232, 225, 212, 0.12), transparent 45%),
    linear-gradient(160deg, #18342c, #0b1a16);
}
.tone-h .feed-card__media {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(200, 136, 74, 0.35), transparent 50%),
    linear-gradient(190deg, #1b3830, #0d1c18);
}

.feed-hint {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  opacity: 0.55;
}

.footer {
  padding: 1.25rem 1.25rem 2rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .profile, .links, .socials, .latest {
    animation: rise 0.75s ease-out both;
  }
  .links { animation-delay: 0.06s; }
  .socials { animation-delay: 0.1s; }
  .latest { animation-delay: 0.14s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.5rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile, .links, .socials, .latest { animation: none; }
}

a:focus-visible,
.link-btn:focus-visible,
.social-chip:focus-visible,
.feed-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* backdrop mobile */
@media (max-width: 720px) {
  body {
    background-attachment: scroll, scroll, scroll;
    background-position: center, center, center 30%;
  }
}
