/* reset */
html {
  overflow-x: hidden;
}

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

/* page */
body {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  cursor: url('images/cursor-sparkle.png') 16 16, auto;
}

/* window */
.window {
  width: 560px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.22),
    0 8px 24px rgba(0,0,0,0.14),
    0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.1);
}

.window-body.inner-page {
  max-height: 360px;
  overflow-y: auto;
}

/* title bar */
.titlebar {
  background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
  border-bottom: 1px solid #bbb;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  min-height: 30px;
}

.btns {
  display: flex;
  gap: 6px;
}

.btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.btn-close { background: #ff5f57; }
.btn-min   { background: #ffbd2e; }
.btn-max   { background: #28c840; }

.win-title {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: #444;
  letter-spacing: 0.03em;
}

.btn-placeholder {
  width: 46px;
}

/* address bar */
.addressbar {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
  border-bottom: 1px solid #bbb;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-arrows {
  display: flex;
  gap: 0px;
}

.nav-arrows a,
.nav-arrows span {
  width: 26px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #444;
  background: linear-gradient(180deg, #e2e2e2 0%, #c8c8c8 100%);
  border: 1px solid #aaa;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-arrows a:first-child,
.nav-arrows span:first-child {
  border-radius: 5px 0 0 5px;
  border-right: none;
}

.nav-arrows a:last-child,
.nav-arrows span:last-child {
  border-radius: 0 5px 5px 0;
}

.nav-arrows a:hover {
  background: linear-gradient(180deg, #d0d0d0 0%, #b8b8b8 100%);
  color: #111;
}

.nav-arrows span.dim {
  color: #bbb;
  cursor: default;
}

.address-field {
  flex: 1;
  background: #fff;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
}

/* object grid */
.window-body {
  background: #ffffff;
  padding: 32px 32px 40px;
  display: flex;
  justify-content: center;
  height: 360px;
  overflow-y: auto;
  min-height: 360px;
}

.window-body.inner-page {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.object-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  text-align: center;
}

/* each object */
.object-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #222;
}

.object-img {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.object-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.object-item:hover img {
  transform: scale(1.06);
}

.object-item span {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* inner pages */
.inner-page {
  padding: 40px 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inner-page h1 {
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.1em;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: #999;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-links a {
  font-size: 13px;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

/* make back arrow clickable */
.nav-arrows a {
  color: #666;
  text-decoration: none;
}

.contact-label {
  font-size: 13px;
  color: #999;
  margin-right: 6px;
}


/* about layout */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.about-photo {
  width: 180px;
}

.about-photo img {
  width: 100%;
  display: block;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-bio p {
  font-size: 12.5px;
  line-height: 1.75;
  color: #222;
}

/* about photo */
.about-photo {
  width: 160px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.about-photo img {
  width: 100%;
  display: block;
}

/* bio tree */
.bio-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tree-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.tree-arrow {
  font-size: 9px;
  color: #888;
  width: 12px;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.tree-arrow.open {
  transform: rotate(90deg);
}

.tree-label {
  font-size: 12px;
  color: #111;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tree-content {
  padding-left: 18px;
  font-size: 12px;
  color: #444;
  line-height: 1.7;
  border-left: 1px solid #e0e0e0;
  margin-left: 5px;
  padding-top: 4px;
  padding-bottom: 2px;
}

.bio-intro {
  font-size: 12px;
  line-height: 1.7;
  color: #444;
}

.tree-content a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tree-content a:hover {
  color: #555;
}

.photo-credit {
  font-size: 10px;
  color: #aaa;
  margin-top: -8px;
}

.butter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.butter-wrap img {
  width: 220px;
}

.butter-caption {
  font-size: 12px;
  color: #444;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 600px) {
  body {
    align-items: center;
    padding: 16px;
    overflow-x: hidden;
  }

  .window {
    width: calc(100vw - 32px);
    min-width: calc(100vw - 32px);
  }

  .window-body {
    min-height: unset;
  }

  .object-grid {
    gap: 24px 32px;
  }

  .object-img {
    width: 80px;
    height: 80px;
  }

  .about-photo {
    max-width: 100%;
  }

  .about-photo img {
    max-width: 100%;
  }
}
