/* ============================================================
   Adobe Fonts Web Project — kit iyq6ytw
   ─────────────────────────────────────────────────────────────
   aileron              300  Light   → body text
   aileron              600  SemiBold → tabs, hobbies sub-nav
   articulat-cf         600  SemiBold → page titles, section titles
                             (kit includes 600 only; Medium/500 not in kit)
   bc-eric-machat-script 400 Regular  → "Stay Tuned for New Tabs"

   Fallback chains preserved so layout holds if the CDN is unreachable.
   ============================================================ */

:root {
  --font-body:    'aileron', 'Raleway', sans-serif;
  --font-heading: 'articulat-cf', 'Outfit', sans-serif;
  --font-script:  'bc-eric-machat-script', 'Dancing Script', cursive;

  /* Colour tokens */
  --c-heading:        #474744;
  --c-body:           #5e5e5b;
  --c-tab-text:       #7a5656;
  --c-tab-active-bg:  #eac7c7;
  --c-tab-border:     #7a5656;
  --c-subnav:         #897a63;
  --c-script:         #7a5656;
  --c-link:           #1a5fa8;

  /* Composition geometry
     All values scaled ~28% up from the previous pass.
     portrait-w − panel-overlap = tab-inset (tabs align with panel left edge). */
  --portrait-w:    260px;   /* portrait column width                   */
  --portrait-h:    460px;   /* forced height — keeps head above panel  */
  --panel-overlap: 86px;    /* portrait extends this far into panel    */
  --panel-h:       450px;   /* panel min-height                        */
  --tab-inset:     174px;   /* = portrait-w − panel-overlap            */
  --panel-pad-l:   114px;   /* = panel-overlap + 28px breathing room   */
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Anti-copy deterrent — text selection & image drag disabled site-wide */
img {
  -webkit-user-drag: none;
}

body {
  background: #ffffff;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--c-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

/* ============================================================
   Stage — centred artboard container
   ============================================================ */
.stage {
  width: 100%;
  max-width: 1160px;
  padding: 78px 22px 110px 64px;
  transform: translateX(-30px);
}

/* ============================================================
   Tab bar — above the panel, left edge aligns with panel edge
   ============================================================ */
.tab-bar {
  display: flex;
  gap: 10px;
  padding-left: var(--tab-inset);
  margin-bottom: 22px;
}

.tab-btn {
  padding: 8px 22px;
  border-radius: 8px;
  border: 2.0px solid #ccc8c8;
  background: #ffffff;
  color: var(--c-tab-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  outline: none;
  line-height: 1.4;
}

.tab-btn:hover:not(.active) {
  background: #fdf6f6;
  border-color: #bbb0b0;
}

.tab-btn.active {
  background: var(--c-tab-active-bg);
  border-color: var(--c-tab-border);
  color: var(--c-tab-text);
}

/* ============================================================
   Hero — portrait + gradient panel, bottom-aligned
   ============================================================ */
.hero {
  display: flex;
  align-items: flex-end;
  border-bottom: 3px solid #ddd0d2;
}

/* ============================================================
   Portrait column
   ============================================================ */
.portrait-col {
  width: var(--portrait-w);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.portrait {
  display: block;
  width: 100%;
  height: var(--portrait-h);    /* forced: keeps head above panel top  */
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   Gradient panel
   Fixed height on desktop — all tabs share the same panel size.
   Hobbies content scrolls internally; Home and ? fit without scroll.
   ============================================================ */
.panel {
  flex: 1;
  margin-left: calc(-1 * var(--panel-overlap));
  position: relative;
  z-index: 1;
  height: var(--panel-h);
  overflow-y: auto;
  overflow-x: hidden;

  /* Left-to-right: pink → near-white */
  background: linear-gradient(to right, #f5c0ca 0%, #fef5f7 100%);
  border-radius: 2px 2px 0 0;

  /* Left pad clears portrait overlap; right/top/bottom are normal margins */
  padding: 36px 52px 48px var(--panel-pad-l);

  /* Subtle scrollbar — visible only when hobbies content overflows */
  scrollbar-width: thin;
  scrollbar-color: #dfc8cc transparent;
}

.panel::-webkit-scrollbar          { width: 3px; }
.panel::-webkit-scrollbar-track    { background: transparent; }
.panel::-webkit-scrollbar-thumb    { background-color: #ddc8cc; border-radius: 2px; }

/* ============================================================
   Tab panels — show / hide
   ============================================================ */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================================
   Shared typography
   ============================================================ */
.page-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 3rem;
  color: var(--c-heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 560px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--c-heading);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-body);
  margin-bottom: 5px;
  max-width: 520px;
}

.body-text:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Home panel
   ============================================================ */
#tab-home {
  padding-top: 24px;
}

#tab-home .page-title {
  margin-bottom: 32px;
}

#tab-home .body-text {
  max-width: none;
}

.envelope-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #6b666d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px auto 0;
  position: relative;
  left: -70px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.envelope-circle:hover {
  background: rgba(107, 102, 109, 0.1);
}

.envelope-icon {
  width: 30px;
}

/* ============================================================
   Hobbies panel
   ============================================================ */
#tab-hobbies {
  padding-top: 24px;
}

#tab-hobbies .page-title {
  margin-bottom: 34px;
}

#tab-hobbies .body-text {
  max-width: none;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.sub-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 40px;
}

.sub-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.99rem;
  color: var(--c-subnav);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.sub-link:hover {
  text-decoration: underline;
}

.sub-divider {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-subnav);
  margin: 0 8px;
  user-select: none;
}

.hobby-section {
  margin-bottom: 44px;
  padding-left: 28px;
  scroll-margin-top: 36px; /* matches panel padding-top for internal scroll */
}

.hobby-section:last-child {
  margin-bottom: 0;
}

/* Collaboration line */
.collab {
  margin-top: 32px !important;
  font-weight: 600;
}

.collab a {
  color: #6644cc;
  text-decoration: underline;
}

.collab a:hover {
  opacity: 0.75;
}

/* ============================================================
   Mystery panel (? tab)
   ============================================================ */
.progress-label {
  position: absolute;
  bottom: 40px;
  right: 30px;
  width: 88px;
  height: auto;
  transform: scale(0.02);
  transform-origin: bottom right;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.progress-label.visible {
  transform: scale(1);
}


.mystery-inner {
  display: flex;
  align-items: center;
  height: calc(var(--panel-h) - 36px - 48px); /* fill panel content area: height minus top/bottom padding */
  padding-bottom: 55px;
}

.mystery-text {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--c-script);
  letter-spacing: 0.01em;
}

/* Inchworm animation */
.inchworm-track {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  overflow: hidden;
}

.inchworm-walker {
  position: absolute;
  bottom: 0;
  left: 290px;
}

.inchworm-interim,
.inchworm-straight {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  transition: opacity 0.2s ease;
}

.inchworm-interim {
  width: 58px;
  height: auto;
  opacity: 0;
}

.inchworm-straight {
  width: 65px;
  height: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ============================================================
   Responsive — tablet / mobile
   ============================================================ */
.site-credit {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: #c9a9a9;
  text-align: right;
  margin-top: 18px;
}

@media (max-width: 800px) {
  .stage {
    padding: 30px 22px 70px;
    transform: none;
  }

  .tab-bar {
    padding-left: 0;
    margin-bottom: 12px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
  }

  .portrait-col {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  .portrait {
    width: auto;
    height: 100%;
    object-position: top center;
  }

  .panel {
    margin-left: 0;
    height: auto;
    min-height: 0;
    overflow-y: visible;
    border-radius: 0;
    padding: 26px 24px 40px;
    border-top: 1px solid #e8d8da;
  }

  .page-title {
    font-size: 2rem;
  }

  .mystery-inner {
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .stage {
    padding: 22px 16px 56px;
  }

  .tab-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .page-title {
    font-size: 1.65rem;
  }
}
