/* FONT */
body {
  font-family: 'Red Hat Mono', monospace;
  background: #f3e4c7;
  margin: 0;
  padding: 0;
  color: #000;
}

/* LOGO */
.line-1,
.line-2 {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawLine 0.6s ease-out forwards;
  animation-fill-mode: forwards;
}

.line-2 {
  animation-delay: 0.5s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f3e4c7;
  border-bottom: 1px solid #ccc;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrap svg {
  height: 44px;
  width: auto;
  display: block;
}

.site-title {
  font-family: 'Red Hat Mono', monospace;
  font-size: 0.85rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  color: #000;
}

/* LANDSCAPE: 2 rows, horizontal scroll */
.envelope-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

.envelope-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2.5rem;
  margin-bottom: 1rem; /* spacing between rows */
}

.memo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-bottom: 1rem; /* spacing for meta text */
}

.memo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #c54500;
  border: 1px solid #000;
  background-size: cover;
  background-position: center;
  z-index: 2;
}

.meta {
  margin-top: 1rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.75rem;
  color: #444;
  text-align: center;
  max-height: 200px;
}

/* PORTRAIT: 2 columns, vertical scroll */
@media (orientation: portrait), (max-aspect-ratio: 3/4) {
  .envelope-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
  }

  .envelope-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
  }

  .memo-column {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .meta {
    writing-mode: horizontal-tb;
    transform: none;
    margin-left: 1rem;
    margin-top: 0;
  }
}