/* Global Reset */
@font-face {
  font-family: HomemadeApple;
  src: url(HomemadeApple.ttf);
}

@font-face {
  font-family: Frente;
  src: url(FrenteH1-Regular.otf);
}

@font-face {
  font-family: ChopinScript;
  src: url(ChopinScript.ttf);
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
  background-color: #ffffff;
  padding: 20px 0;
  width: 100%;
  max-width: 900px; /* ensures the header doesn’t stretch too wide */
  margin-left: auto;
  margin-right: auto;
}

.header-container {
  width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'ChopinScript', cursive;
  font-size: 28px;
  color: #999999;
}

/* Main */
main {
  font-family: 'HomemadeApple';
  display: flex;
  justify-content: center;
  margin-top: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  height: 80%;
}

.left-column {
  width: 70%;
  padding-right: 20px;
  box-sizing: border-box;
}

.right-sidebar {
  width: 30%;
  padding: 20px;
  box-sizing: border-box;
}

/* Diary Panel */
.diary-panel {
  background-color: #ffffff;
  background-image: repeating-linear-gradient(to bottom, #ffffff, #ffffff 23px, #dddddd 24px);
  background-size: 100% 24px;
  width: 100%;
  height: 100%;
  padding: 40px;
  position: relative;
  box-sizing: border-box;
}

.diary-header {
  font-family: 'Frente', sans-serif;
  font-size: 20px;
  color: #999999;
  margin-top: 20px;
  margin-right: 30px;
}

.diary-content {
  color: #999;
  font-size: 12pt;
}

.diary-illustration {
  position: absolute;
  bottom: 50px;
  left: 35%;
  transform: translateX(-50%);
  width: 330px;
  height: auto;
  opacity: 0.6;
  object-fit: cover;
}

/* Sidebar */
.version-note {
  font-family: 'HomemadeApple', serif;
  font-size: 12px;
  color: #cccccc;
  padding-top: 30px;
  padding-left: 20px;
}

.updates-heading {
  font-family: 'HomemadeApple', cursive;
  font-size: 24px;
  color: #999999;
  margin-top: 20px;
}

.updates-list {
  margin-top: 10px;
}

.updates-list div {
  font-family: 'HomemadeApple', cursive;
  font-size: 14px;
  color: #999999;
  margin-top: 12px;
}

.profile-section {
  margin-top: 30px;
  text-align: center;
}

.profile-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 80%;
  filter: grayscale(100%) brightness(1.2);
}

.author-note {
  margin-top: 8px;
  font-family: 'HomemadeApple', cursive;
  font-size: 12px;
  color: #999999;
}


@media (max-width: 768px) {
  main {
    flex-direction: column;
    max-width: 100%;
  }
  .left-column, .right-sidebar {
    width: 100%;
  }
}