* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #223b30;
  background: #fbfaf6;
  font: 1.12rem/1.7 Georgia, "Times New Roman", serif;
}

a {
  color: #285d46;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover {
  color: #994d2d;
}

a:focus-visible,summary:focus-visible {
  outline: 3px solid #387553;
  outline-offset: 4px;
}

h1,h2,h3,p {
  margin-top: 0;
}

.windowsill,.home-notes,.evening {
  width: min(1150px, calc(100% - 52px));
  margin-inline: auto;
}

.windowsill {
  border-bottom: 1px solid #aeb9a8;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.word {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(1.45rem,2.5vw,2rem);
  font-style: italic;
  text-decoration: none;
  color: #234032;
  letter-spacing: -.034em;
}

.windowsill nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font: .94rem/1.4 "Segoe UI",sans-serif;
}

.window-scene {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(220px,.84fr);
  grid-template-areas: "photo title";
  align-items: stretch;
}

.window-scene img {
  grid-area: photo;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1.8;
  max-height: 460px;
  object-fit: cover;
}

.window-label {
  grid-area: title;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #244a38;
  color: #fff9ec;
  padding: clamp(26px,4vw,58px);
}

.window-label p {
  font: .95rem/1.5 "Segoe UI", sans-serif;
  max-width: 32ch;
  color:#e4eedf;
}

h1 {
  font-size: clamp(2.15rem,4vw,3.8rem);
  line-height: 1.12;
  font-weight: normal;
  letter-spacing: -.045em;
  margin: .15em 0;
}

.under-window {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(250px,1fr);
  gap: clamp(28px,6vw,88px);
  margin: 44px auto 70px;
}

.open-entry h2,.daybook > h2 {
  font-weight: 400;
  font-size: 1.8rem;
  border-bottom: 3px double #899d88;
  padding-bottom: .35em;
}

.daybook .diary-entry {
  padding: .75em 0;
  border-bottom: 1px dotted #97a595;
}

.diary-entry h3 {
  margin: 0 0 .4em;
  font-size: 1.22rem;
  line-height: 1.28;
}

.diary-entry h3 a {
  color: #274836;
}

.diary-entry p {
  margin: 0;
  font: .96rem/1.5 "Segoe UI",sans-serif;
  color: #4a594d;
}

.single-note {
  width: min(740px,calc(100% - 38px));
  margin: 50px auto 65px;
}

.bookmark,.another small {
  color:#624f38;
  font: .9rem/1.35 "Segoe UI",sans-serif;
}

.single-note h1 {
  margin: .45em 0 .35em;
}

.preface {
  border-bottom: 3px double #97a595;
  padding-bottom: 20px;
  color: #425748;
  font-size: 1.26rem;
  font-style: italic;
}

.written h2 {
  margin: 1.5em 0 .5em;
  font-size: clamp(1.55rem,2.6vw,2rem);
  font-weight: 400;
  line-height: 1.16;
}

.reading-list {
  background: #eef0e7;
  padding: 17px 22px;
  margin: 24px 0;
}

.reading-list summary {
  cursor: pointer;
  font-weight: bold;
}

.reading-list ul {
  padding-left: 1.15em;
}

.another {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.evening {
  border-top: 1px solid #849881;
  padding: 25px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: .98rem;
}

@media (max-width:740px) {
  .window-scene,.under-window {
    grid-template-columns: 1fr;
  }
  .window-scene {
    grid-template-areas: "photo" "title";
  }
  .window-scene img {
    max-height: 325px;
  }
  .under-window {
    margin-top: 30px;
  }
  .windowsill,.home-notes,.evening {
    width: calc(100% - 32px);
  }
  .windowsill {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 15px;
  }
}
