:root {
  --paper: #f6f5ef;
  --white: #fffef9;
  --ink: #243b32;
  --muted: #59665e;
  --green: #315c48;
  --line: #d8ddd2;
  --warm: #9a4a30;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 "DM Sans",
    sans-serif;
}
::selection {
  background: #d6e3ce;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}
input,
textarea,
select {
  caret-color: var(--green);
}
[hidden] {
  display: none !important;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 38px 28px;
  background: #e9ede3;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 34px;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span {
  color: var(--warm);
  margin-left: -10px;
}
.brand svg {
  width: 32px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
}
.aside-note {
  font-size: 13px;
  color: var(--muted);
  margin: 28px 0 40px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav a {
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 500;
}
nav a:hover {
  background: #dfe5d8;
}
nav a.active {
  background: var(--green);
  color: white;
}
nav span {
  float: right;
  font-size: 12px;
}
.aside-bottom {
  margin-top: auto;
  font-family: Literata, Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
}
.aside-bottom small {
  display: block;
  font:
    12px/1.5 "DM Sans",
    sans-serif;
  margin-top: 24px;
  color: var(--muted);
}
main {
  margin-left: 240px;
  max-width: 1600px;
  padding: 0 54px;
}
header {
  padding: 29px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.local-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.local-tag:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.heading {
  margin: 40px 0 32px;
}
h1 {
  font:
    400 clamp(32px, 3.5vw, 52px) / 1.15 Literata,
    Georgia,
    serif;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.heading p {
  color: var(--muted);
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 20px;
}
h3 {
  font:
    400 25px/1.4 Literata,
    Georgia,
    serif;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
p {
  margin: 0 0 18px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
  gap: 36px;
}
.workpanel {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.panel-head > span {
  font-size: 12px;
  color: var(--warm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 18px 0 8px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #bdc8bb;
  background: var(--white);
  padding: 11px 13px;
  border-radius: 6px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #697469;
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
.duration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.duration-row select {
  margin-top: 8px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 20px;
}
.primary,
.secondary {
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid var(--green);
  transition: background 0.15s;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #244535;
}
.secondary {
  background: transparent;
  color: var(--green);
}
.secondary:hover {
  background: #e8eedf;
}
.wide {
  width: 100%;
  margin-top: 16px;
}
.wide span {
  float: right;
}
.status {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
}
.daily {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
}
.daily > p {
  color: var(--muted);
  font-size: 13px;
}
.daily strong {
  font:
    400 42px Literata,
    Georgia,
    serif;
  color: var(--ink);
  margin-right: 7px;
}
.ruled {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.thoughts {
  margin-top: 28px;
}
.thoughts > p {
  font-size: 13px;
  color: var(--muted);
}
.thoughts h2 {
  margin-bottom: 8px;
}
.inline {
  display: flex;
}
.inline input {
  border-radius: 6px 0 0 6px;
  min-width: 0;
}
.inline button {
  background: #e5eadf;
  color: var(--ink);
  border: 1px solid #bdc8bb;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  font-size: 22px;
  width: 42px;
  flex-shrink: 0;
}
ul {
  list-style: none;
  padding: 0;
}
#thought-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#thought-list button {
  border: 0;
  background: none;
  color: var(--warm);
  font-size: 18px;
}
footer {
  margin: 50px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.subject-text {
  font-size: 12px;
  color: var(--warm);
  margin: 18px 0 0;
}
#timer {
  font-size: clamp(64px, 8vw, 100px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  margin: 20px 0;
}
.time-track {
  height: 3px;
  background: #e5eadf;
}
#time-fill {
  height: 100%;
  width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s linear;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 16px 0 0;
}
.summary-strip {
  display: flex;
  gap: 50px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.summary-strip strong {
  display: block;
  font:
    400 40px Literata,
    serif;
}
.summary-strip span {
  font-size: 12px;
  color: var(--muted);
}
.week {
  display: flex;
  gap: 12px;
  height: 150px;
  align-items: flex-end;
  margin: 20px 0 45px;
}
.day {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.bar {
  background: #afc2a6;
  margin: 4px auto 8px;
  width: 65%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}
.entry {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.entry h3 {
  font-size: 21px;
}
.entry .meta {
  font-size: 12px;
  color: var(--muted);
}
.entry details {
  font-size: 13px;
  margin: 12px 0;
}
.entry details p {
  white-space: pre-wrap;
  margin-top: 12px;
}
.entry button {
  margin-top: 12px;
}
.empty {
  padding: 35px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.settings-grid p,
.settings-grid li {
  font-size: 13px;
}
.instructions {
  padding: 8px 0;
}
.instructions li {
  margin: 12px 0;
}
.instructions input {
  margin-bottom: 16px;
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.checkbox input {
  width: auto;
  margin-top: 5px;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font:
    400 24px Literata,
    serif;
  margin: 32px 0 12px;
}
.prose p {
  color: var(--muted);
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  max-width: 90vw;
  z-index: 10;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
body.focusing aside nav,
body.focusing .aside-note {
  opacity: 0.45;
}
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #b5c2af;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
@media (min-width: 1500px) {
  main {
    padding: 0 80px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 200px;
    padding: 30px 20px;
  }
  main {
    margin-left: 200px;
    padding: 0 28px;
  }
  .workspace {
    gap: 24px;
  }
  .workpanel {
    padding: 24px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .heading {
    margin-top: 30px;
  }
}
@media (max-width: 800px) {
  aside {
    position: static;
    width: auto;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 28px;
  }
  .aside-note,
  .aside-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    margin-top: 16px;
  }
  nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 10px;
  }
  nav span {
    float: none;
    margin-left: 5px;
  }
  main {
    margin: 0;
    padding: 0 22px;
  }
  header {
    padding: 18px 0;
    font-size: 12px;
  }
  .local-tag {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .daily {
    border-bottom: 0;
  }
  .thoughts {
    margin: 0;
  }
  h1 {
    font-size: 36px;
  }
  .summary-strip {
    gap: 24px;
  }
  .summary-strip strong {
    font-size: 32px;
  }
}
@media (max-width: 480px) {
  .right-column {
    grid-template-columns: 1fr;
  }
  .daily {
    border-bottom: 1px solid var(--line);
  }
  .workpanel {
    padding: 22px 18px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .heading {
    margin-bottom: 26px;
  }
  footer span {
    display: none;
  }
  .summary-strip {
    gap: 15px;
  }
  .summary-strip span {
    font-size: 12px;
  }
  .actions {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
