:root {
  --paper: #fbfaf7;
  --ink: #151515;
  --muted: #5f6368;
  --accent: #1aa6a6; /* teal accent */
}

html, body {
  height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Asap", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.site-wordmark {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-hero {
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1, h2, h3 {
  line-height: 1.25;
}

a, .btn-link {
  color: var(--accent);
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.scrapbook-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.scrapbook-thumb {
  height: 140px;
  width: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.scrapbook-md {
  color: var(--muted);
}

.scrapbook-md p:last-child {
  margin-bottom: 0;
}

.scrapbook-md a {
  color: var(--accent);
  text-decoration: none;
}

.scrapbook-md a:hover {
  text-decoration: underline;
}

.scrapbook-carousel-img {
  height: 420px;
  object-fit: cover;
}

@media (max-width: 576px) {
  .scrapbook-carousel-img {
    height: 280px;
  }
}

.post-md p:last-child {
  margin-bottom: 0;
}

.post-md a {
  color: var(--accent);
  text-decoration: none;
}

.post-md a:hover {
  text-decoration: underline;
}

.portfolio-tile {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.portfolio-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.portfolio-cover {
  height: 220px;
  object-fit: cover;
  display: block;
}

.portfolio-card {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.portfolio-media {
  position: relative;
  height: 220px;
  background: rgba(0,0,0,0.03);
}

.portfolio-cover {
  height: 220px;
  object-fit: cover;
  display: block;
}

.portfolio-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.portfolio-media-fallback .portfolio-fallback {
  display: flex;
}

.portfolio-fallback-inner {
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
}

.portfolio-excerpt {
  line-height: 1.4;
}

.accordion-button {
  background: var(--paper);
}

.accordion-button:not(.collapsed) {
  color: var(--ink);
  background: var(--paper);
  box-shadow: none;
}

.accordion-item {
  border-color: rgba(0,0,0,0.08) !important;
}

.nav-link.active {
  color: var(--accent) !important;
  font-weight: 600;
}

.reading-width {
  max-width: 820px;
}

.card-like {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card-like:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.post-md,
.scrapbook-md {
  line-height: 1.65;
}

.post-md h2, .scrapbook-md h2 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-md code, .scrapbook-md code {
  padding: 0.1rem 0.3rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
}

.globe-wrap {
  position: relative;
  height: 72vh;
  min-height: 520px;
  max-height: 820px;
  overflow: visible;
}

/* smooth base state */
#globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1);
  transform-origin: 50% 55%;
}

/* hover = subtle hero expansion */
.globe-wrap:hover #globe {
  transform: scale(1.05);
}

#globe canvas {
  background: transparent !important;
  outline: none;
}

/* make the globe feel "hero" sized */
.globe-wrap #globe {
  transform: scale(1.04);
  transform-origin: 50% 55%;
}

/* ensure the layout doesn't clip the globe */
#travelGlobeRow,
#travelGlobeRow > div,
#travelGlobeRow .globe-wrap {
  overflow: visible !important;
}

.globe-wrap {
  z-index: 5;
}

#globe {
  z-index: 5;
}

.details-panel {
  position: relative;
  z-index: 10; /* stays above globe */
}

@media (max-width: 768px) {
  .globe-wrap {
    height: 56vh;
    min-height: 420px;
  }
}

.globe-wrap:active {
  cursor: grabbing;
}

.globe-wrap {
  cursor: grabbing;
}

.map-pin {
  width: 26px;
  height: 26px;
  transform: translate(-50%, -100%); /* anchor bottom tip to lat/lng */
  cursor: pointer;
  user-select: none;
}

.map-pin svg {
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

.map-pin.is-active svg {
  transform: scale(1.12);
}

.map-pin.is-active svg path {
  fill: #b91c1c; /* slightly deeper red */
}

/* Split-Flap Board Styles */
.split-flap-board {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 900px;
  width: 100%;
  margin: 0;
}

.board-title {
  color: #ffd700;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  text-align: left;
  text-shadow: 0 2px 10px rgba(255,215,0,0.3);
}

.board-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.row-label {
  color: #ffd700;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 140px;
  text-align: right;
  text-transform: uppercase;
}

.flap-container {
  display: flex;
  gap: 4px;
  flex: 1;
}

.flap {
  width: 22px;
  height: 40px;
  position: relative;
  perspective: 600px;
  flex-shrink: 0;
}

.flap-half {
  position: absolute;
  width: 100%;
  height: 20px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
  border: 1px solid #3a3a3a;
  overflow: hidden;
  backface-visibility: hidden;
}

.flap-top {
  top: 0;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}

.flap-bottom {
  bottom: 0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.3);
}

.flap-content {
  position: absolute;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  user-select: none;
}

.flap-top .flap-content {
  top: 0;
}

.flap-bottom .flap-content {
  top: -20px;
}

.flap.flipping .flap-top {
  animation: flipTop 0.08s ease-in forwards;
}

.flap.flipping .flap-bottom {
  animation: flipBottom 0.08s 0.08s ease-out forwards;
}

@keyframes flipTop {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-90deg);
  }
}

@keyframes flipBottom {
  0% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.home-hero{
  display: grid;
  grid-template-columns: minmax(520px, 900px) 280px;
  gap: 28px;
  align-items: center;
}

.split-flap-board{
  margin: 0; /* left aligned */
}

/* Airport-style buttons */
.wayfinding{
  display: grid;
  gap: 14px;
  align-content: start;
}

.wayfinding-btn{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;

  background: #0b0f12;                    /* black */
  color: #ffd000;                          /* yellow */
  border: 1px solid rgba(255,208,0,0.22);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);

  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

/* subtle diagonal sheen like plastic signage */
.wayfinding-btn{
  position: relative;
  overflow: hidden;
}

.wayfinding-btn::before{
  content:"";
  position:absolute;
  inset:-40% -30%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,208,0,0.10) 50%,
    transparent 65%
  );
  transform: translateX(-60%) rotate(6deg);
  transition: transform 600ms ease;
  pointer-events:none;
}

.wayfinding-btn:hover::before{
  transform: translateX(60%) rotate(6deg);
}

.wayfinding-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,208,0,0.40);
  box-shadow: 0 18px 40px rgba(0,0,0,0.26);
}

.wf-emoji{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;

  background: #ffd000; /* yellow tile */
  color: #0b0f12;
  flex: 0 0 auto;
}

.wf-text{
  font-weight: 800;
  letter-spacing: 0.02em;
}

.airport-wayfinding .wayfinding-btn{
  width: fit-content;
  padding-right: 24px;   /* breathing room after text */
}

/* Responsive */
@media (max-width: 992px){
  .home-hero{ grid-template-columns: 1fr; }
  .wayfinding{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px){
  .wayfinding{ grid-template-columns: 1fr; }
}
