@charset "UTF-8";


/* ==================================================
 *  BASIC SETTINGS
 *  ================================================== */

:root {

  --paper: #f5f1e8;
  --paper-dark: #e5dece;

  --ink: #27252a;
  --muted: #77716b;

  --line: #aaa193;

  --accent: #8d3d49;
  --accent-light: #ead7d9;

  --white: #fffdf8;
}


/* ==================================================
 *  PAGE
 *  ================================================== */

* {
  box-sizing: border-box;
}


html {
  background: #d7d1c5;
}


body {

  margin: 0;

  min-height: 100vh;

  display: flex;

  flex-direction: column;

  color: var(--ink);

  background:
  repeating-linear-gradient(
    0deg,
    rgba(80, 70, 60, 0.025) 0,
    rgba(80, 70, 60, 0.025) 1px,
    transparent 1px,
    transparent 4px
  ),
  var(--paper);

  font-family:
  "Hiragino Kaku Gothic ProN",
  "Yu Gothic",
  "Meiryo",
  sans-serif;

  font-size: 14px;

  line-height: 1.7;
}


a {
  color: inherit;
}


/* ==================================================
 *  MAIN PAGE WIDTH
 *  ================================================== */

.page {

  width: min(1050px, calc(100% - 28px));

  margin: auto;

  padding: 28px 0;
}


/* ==================================================
 *  GENERAL BOX
 *  ================================================== */

.box {

  border: 1px solid var(--line);

  background:
  rgba(255, 253, 248, 0.92);

  box-shadow:
  4px 4px 0 rgba(80, 70, 60, 0.08);
}


/* ==================================================
 *  INTRODUCTION
 *  ================================================== */

.intro {

  min-height: 145px;

  display: flex;

  align-items: center;

  gap: 25px;

  padding: 25px 30px;

  margin-bottom: 18px;
}


.intro-mark {

  width: 82px;

  height: 82px;

  flex: 0 0 82px;

  display: grid;

  place-items: center;

  border: 1px solid var(--accent);

  color: var(--accent);

  background: var(--accent-light);

  font-family: serif;

  font-size: 30px;

  writing-mode: vertical-rl;

  letter-spacing: 0.12em;
}


h1 {

  margin: 0 0 8px;

  font-family: serif;

  font-size: clamp(23px, 4vw, 34px);

  font-weight: normal;

  letter-spacing: 0.08em;
}


.intro p {
  margin: 3px 0;
}


.intro .sub {

  color: var(--muted);

  font-family: Georgia, serif;

  font-size: 12px;

  letter-spacing: 0.08em;
}


/* ==================================================
 *  TWO COLUMN AREA
 *  ================================================== */

.columns {

  display: grid;

  grid-template-columns: 245px 1fr;

  gap: 18px;
}


/* ==================================================
 *  LEFT DATE BOX
 *  ================================================== */

.archive {

  min-height: 570px;

  padding-bottom: 12px;
}


/* ==================================================
 *  RIGHT BLOG BOX
 *  ================================================== */

.entries {

  min-width: 0;

  min-height: 570px;

  display: flex;

  flex-direction: column;
}


/* ==================================================
 *  BOX HEADERS
 *  ================================================== */

.box-title {

  padding: 7px 12px;

  color: var(--accent);

  background: var(--paper-dark);

  border-bottom: 1px solid var(--line);

  font-family: serif;

  font-size: 15px;

  letter-spacing: 0.08em;
}


/* ==================================================
 *  DATE ORGANIZER
 *  ================================================== */

.date-organizer {

  padding: 10px 13px 18px;
}


/* ==================================================
 *  YEAR BUTTONS
 *  ================================================== */

.year-button {

  width: 100%;

  padding: 7px 8px;

  margin: 1px 0;

  border: 0;

  border-bottom: 1px dotted #bbb2a6;

  background: transparent;

  color: var(--ink);

  text-align: left;

  font-family: Georgia, serif;

  font-size: 16px;

  cursor: pointer;
}


.year-button:hover,
.year-button.open {

  color: var(--accent);

  background: var(--accent-light);
}


/* Plus sign */
.year-button::before {

  content: "＋ ";

  font-family: sans-serif;

  font-size: 11px;
}


/* Minus sign when open */
.year-button.open::before {

  content: "－ ";
}


/* ==================================================
 *  YEAR CONTENT
 *  ================================================== */

.year-content {

  display: none;

  padding: 4px 0 8px 15px;
}


.year-content.open {
  display: block;
}


/* ==================================================
 *  MONTH BUTTONS
 *  ================================================== */

.month-button {

  width: auto;

  display: inline-block;

  margin: 2px 3px 2px 0;

  padding: 2px 6px;

  border: 0;

  background: transparent;

  color: #514b47;

  font-family: Georgia, serif;

  font-size: 13px;

  cursor: pointer;
}

/* ==================================================
 *  MONTHS WITH POSTS
 *  ================================================== */

.month-button.has-posts {
  color: #514b47;
  cursor: pointer;
}

.month-button.has-posts:hover,
.month-button.has-posts.open {
  color: var(--accent);
  text-decoration: underline;
}


/* ==================================================
 *  MONTHS WITHOUT POSTS
 *  ================================================== */

.month-button.no-posts {
  color: #c5c0b8;

  opacity: 0.65;

  cursor: default;
}


.month-button.no-posts:disabled {
  color: #c5c0b8;

  background: transparent;

  opacity: 0.65;

  cursor: default;
}


.month-button.no-posts:hover {
  color: #c5c0b8;

  background: transparent;

  text-decoration: none;
}

.month-button:hover,
.month-button.open {

  color: var(--accent);

  text-decoration: underline;
}


/* ==================================================
 *  MONTH CONTENT / CALENDAR
 *  ================================================== */

.month-content {

  display: none;

  padding: 3px 4px 8px;

  border-left: 1px solid #c8c0b5;
}


.month-content.open {
  display: block;
}


/* ==================================================
 *  DAYS
 *  ================================================== */

.days {

  display: grid;

  grid-template-columns:
  repeat(7, 1fr);

  gap: 2px;
}


/* ==================================================
 *  DAY BUTTON
 *  ================================================== */

.day-link {

  width: 100%;

  padding: 2px 1px;

  border: 0;

  background: transparent;

  color: #5c5752;

  text-align: center;

  font-family: inherit;

  font-size: 12px;

  cursor: pointer;
}


/* ==================================================
 *  DAYS THAT HAVE BLOG POSTS
 *  ================================================== */

.day-link.has-post {

  color: var(--accent);

  font-weight: bold;
}


.day-link.has-post:hover {

  color: var(--accent);

  background: var(--accent-light);
}


/* ==================================================
 *  DAYS WITHOUT BLOG POSTS
 *  ================================================== */

.day-link.no-post {

  color: #c5c0b8;

  opacity: 0.65;

  cursor: default;
}


/*
 * Disabled buttons normally get browser-specific
 * styling, so explicitly override it here.
 */

.day-link.no-post:disabled {

  color: #c5c0b8;

  background: transparent;

  opacity: 0.65;

  cursor: default;
}


/* Don't highlight unavailable dates */
.day-link.no-post:hover {

  color: #c5c0b8;

  background: transparent;
}


/* ==================================================
 *  EMPTY CALENDAR CELLS
 *  ================================================== */

.day-link.empty {

  visibility: hidden;

  cursor: default;
}


/* ==================================================
 *  BLOG IFRAME
 *  ================================================== */

.entries iframe {

  width: 100%;

  flex: 1;

  min-height: 520px;

  border: 0;

  background: var(--white);
}


/* ==================================================
 *  FOOTER
 *  ================================================== */

footer {

  display: flex;

  justify-content: space-between;

  gap: 15px;

  margin-top: 10px;

  color: var(--muted);

  font-size: 11px;

  letter-spacing: 0.04em;
}


/* ==================================================
 *  BLOG POSTS INSIDE THE IFRAME
 *  ================================================== */

.post {

  max-width: 760px;

  margin: auto;

  padding: 28px 32px 45px;
}


.post-date {

  color: var(--accent);

  font-family: Georgia, serif;

  font-size: 12px;

  letter-spacing: 0.08em;
}


.post h2 {

  margin: 3px 0 20px;

  padding-bottom: 8px;

  border-bottom: 1px dotted var(--line);

  font-family: serif;

  font-size: 25px;

  font-weight: normal;
}


.post p {

  margin: 0 0 1.2em;
}


.post img {

  max-width: 100%;

  height: auto;
}


/* ==================================================
 *  MOBILE
 *  ================================================== */

@media (max-width: 700px) {

  body {

    min-height: auto;

    display: block;
  }


  .page {

    width: min(
      100% - 14px,
      1050px
    );

    margin: 10px auto;

    padding: 0;
  }


  .intro {

    padding: 18px;
  }


  .intro-mark {

    width: 60px;

    height: 60px;

    flex-basis: 60px;

    font-size: 23px;
  }


  .columns {

    grid-template-columns: 1fr;
  }


  .archive {

    min-height: auto;
  }


  .entries {

    min-height: 600px;
  }


  footer {

    flex-direction: column;
  }
  
/* ==================================================
 *  BOX HEADERS
 *  ================================================== */

/* ==================================================
 *  BOX HEADERS
 *  ================================================== */

.box-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;

  padding: 7px 12px;
  color: var(--accent);
  background: var(--paper-dark);
  border-bottom: 1px solid var(--line);
  font-family: serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* Forces the button to look like plain text link with matching serif aesthetic */
.box-title .copy-link-btn {
  all: unset;
  cursor: pointer;
  display: inline-block;

  color: var(--accent);
  font-family: serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.box-title .copy-link-btn:hover {
  filter: brightness(1.2);
}
}