:root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #142e29;
  background: #eef4f0;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; }

.portal {
  width: min(100% - 40px, 644px);
  margin-inline: auto;
  padding: clamp(38px, 8vh, 92px) 0 44px;
}

header { margin-bottom: 30px; }

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 19px;
  border-radius: 12px;
  background: #173c33;
  color: #daefb3;
}

.brand i {
  width: 17px;
  height: 19px;
  border-inline-start: 2px solid;
  border-block-end: 2px solid;
  transform: skewY(-18deg);
  position: relative;
}

.brand i::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px currentColor;
}

h1 {
  margin: 0 0 9px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

p { margin: 0; }

header p {
  color: #48635a;
  font-size: 16px;
  line-height: 1.65;
}

nav { display: grid; gap: 12px; }

.entry {
  min-height: 113px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 19px 22px;
  border: 1px solid transparent;
  border-radius: 17px;
  text-decoration: none;
}

.entry-today { color: #f6fcf4; background: #173c33; }
.entry-history { color: #142e29; background: #fff; border-color: #d5e1d8; }
.entry-today:hover { background: #214b40; }
.entry-history:hover { background: #f9fdf9; border-color: #7a9a89; }
.entry:focus-visible { outline: 3px solid #205f47; outline-offset: 3px; }

.entry-content { display: grid; gap: 4px; }
.entry-content strong { font-size: clamp(21px, 4.8vw, 27px); line-height: 1.35; }
.entry-content span { font-size: 14px; line-height: 1.45; color: #466257; }
.entry-today .entry-content span { color: #e0eee5; }

.entry-icon, .arrow {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 11px;
}

.entry-icon { position: relative; color: #ddd; background: #264d41; }
.entry-history .entry-icon { color: #286047; background: #e7f1e8; }
.entry-today .entry-icon { color: #daefb3; }

.calendar::before, .history::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid;
}

.calendar::before { border-radius: 4px; }
.calendar::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 13px;
  width: 19px;
  border-top: 2px solid;
}

.history::before { border-radius: 50%; }
.history::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 22px;
  width: 5px;
  height: 7px;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.arrow {
  width: 33px;
  height: 33px;
  font-size: 19px;
  border-radius: 50%;
  border: 1px solid #ccdcd1;
}

.entry-today .arrow { border-color: #607e70; color: #daefb3; }

footer {
  margin: 26px 0 0;
  padding-top: 17px;
  border-top: 1px solid #d1ded5;
  color: #48635a;
  font-size: 13px;
  line-height: 1.7;
}

footer p + p { margin-top: 3px; }

@media (min-width: 760px) {
  .portal { width: min(100% - 96px, 880px); }
  header { margin-bottom: 36px; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .entry { min-height: 135px; padding: 22px; }
  footer { margin-top: 30px; }
}

@media (max-width: 400px) {
  .portal { width: calc(100% - 30px); }
  .entry { padding-inline: 14px; gap: 12px; }
  .entry-icon { width: 42px; height: 42px; }
  .calendar::after { left: 12px; top: 18px; width: 18px; }
  .history::after { left: 20px; top: 15px; }
}
