/* one good thing — quiet field notebook. Ported from the live product's
   shared delight.module.css (Domain Studio), renamed to plain classes. */

* { box-sizing: border-box; }
html { min-height: 100%; }

.og-shell {
  min-height: 100vh;
  background: #e7dfca;
  color: #24392f;
  font-family: Georgia, "Times New Roman", serif;
  padding: 24px clamp(16px, 4vw, 64px) 60px;
  background-image:
    linear-gradient(90deg, transparent 79px, #bd665855 80px, transparent 81px),
    repeating-linear-gradient(#0000 0 31px, #54726522 32px);
}
.og-shell button, .og-shell input, .og-shell textarea { font: inherit; }
/* Author `display: grid/flex` rules below win the cascade over the UA
   stylesheet's `[hidden] { display: none }` (author beats UA regardless of
   specificity) — without this, toggled sections show at the same time.
   Caught live: write page + archive + restore form all visible at once. */
.og-shell [hidden] { display: none !important; }

.og-header {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #24392f;
  padding: 10px 0 16px 94px;
}
.og-header a { color: inherit; text-decoration: none; font-size: 1.2rem; font-style: italic; }
.og-header button {
  border: 0; background: none; color: inherit; text-decoration: underline;
  cursor: pointer; font: 700 .68rem "Courier New", monospace; text-transform: uppercase;
}

.og-page {
  max-width: 940px;
  margin: 70px auto;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(20px, 5vw, 70px);
  padding-left: 80px;
}
.og-date {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #9a493c; font: 700 .65rem "Courier New", monospace;
  text-align: center; text-transform: uppercase; min-height: 5rem;
}
.og-date strong { font: 400 5rem/.8 Georgia, serif; }
.og-writing > p { font-size: clamp(1.5rem, 3vw, 2.5rem); font-style: italic; margin: 0 0 30px; }
.og-writing textarea {
  width: 100%; resize: vertical; border: 0; border-bottom: 2px solid #24392f;
  background: transparent; color: inherit; outline: none; padding: 5px 0 16px;
  font: 400 clamp(2rem, 5vw, 4.8rem)/1.12 Georgia, serif;
}
.og-writing textarea::placeholder { color: #6e7e7566; }
.og-writing > div { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font: .65rem "Courier New", monospace; }
.og-writing button { border: 1px solid #24392f; background: #24392f; color: #f4eedf; padding: 12px 18px; cursor: pointer; }
.og-writing button:disabled { opacity: .4; cursor: default; }
.og-note { grid-column: 2; font: .72rem "Courier New", monospace; color: #9a493c; }
.og-memory { grid-column: 2; border-top: 1px solid #24392f66; padding-top: 32px; margin-top: 40px; }
.og-memory span { font: 700 .6rem "Courier New", monospace; letter-spacing: .12em; }
.og-memory blockquote { margin: 18px 0; font-size: 1.35rem; font-style: italic; color: #465a50; }

.og-archive { max-width: 1120px; margin: 70px auto; padding-left: 80px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; }
.og-archive-title > span { color: #9a493c; font: 700 .64rem "Courier New", monospace; letter-spacing: .12em; }
.og-archive-title h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: .88; letter-spacing: -.055em; margin: 20px 0; font-weight: 400; }
.og-archive-title p { line-height: 1.55; font-style: italic; }
.og-months { display: grid; gap: 50px; }
.og-months section h2 { color: #9a493c; font: 700 .7rem "Courier New", monospace; text-transform: uppercase; border-bottom: 1px solid; padding-bottom: 10px; }
.og-months article { display: grid; grid-template-columns: 70px 1fr; border-bottom: 1px solid #24392f44; padding: 20px 0; }
.og-months time { font: .65rem "Courier New", monospace; }
.og-months p { margin: 0; font-size: 1.2rem; line-height: 1.4; }

.og-footer { max-width: 1120px; margin: 80px auto 0; border-top: 1px solid #24392f; padding: 24px 0 0 80px; display: grid; gap: 18px; font: .68rem/1.5 "Courier New", monospace; }
.og-footer > div { display: flex; gap: 10px; flex-wrap: wrap; }
.og-footer button { border: 1px solid; background: transparent; color: inherit; padding: 9px 12px; cursor: pointer; }
.og-footer form { max-width: 680px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.og-footer label { display: grid; gap: 5px; }
.og-footer input { border: 1px solid; background: #f4eedf; padding: 10px; width: 100%; }

@media (max-width: 680px) {
  .og-shell { background-image: repeating-linear-gradient(#0000 0 31px, #54726522 32px); }
  .og-header { padding-left: 0; }
  .og-page, .og-archive { padding-left: 0; grid-template-columns: 1fr; margin-top: 45px; }
  .og-date { flex-direction: row; justify-content: flex-start; }
  .og-date strong { font-size: 3rem; order: -1; }
  .og-note, .og-memory { grid-column: 1; }
  .og-footer { padding-left: 0; }
  .og-footer form { grid-template-columns: 1fr; }
  .og-writing textarea { font-size: 2.6rem; }
}
