@charset "UTF-8";

:root {
  --paper: #f5f4ed;
  --white: #fffefa;
  --ink: #26372e;
  --muted: #677368;
  --green: #365d43;
  --green-hover: #294d36;
  --sage: #e5eadc;
  --line: #dce0d4;
  --danger: #a13d32;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8caa62; outline-offset: 5px; }
::selection { color: var(--ink); background: #dbe7be; }
h1, h2, p { margin: 0; }
em { font-weight: inherit; }
.site-shell { max-width: 1264px; margin: 0 auto; padding: 0 64px; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { height: 116px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; font-size: 30px; font-weight: 650; letter-spacing: -1.8px; line-height: 1; text-decoration: none; }
.brand-dot { color: #839167; }
.brand-mark { width: 28px; height: 32px; margin-right: 11px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1.7px solid var(--green); border-radius: 4px 9px 4px 4px; padding: 6px; transform: rotate(-7deg); }
.brand-mark span { height: 1.5px; width: 100%; background: var(--green); }
.brand-mark span:last-child { width: 65%; }
.quiet-link { display: inline-flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 550; text-decoration: none; }
.quiet-link:hover { color: var(--green); text-decoration: underline; }
.quiet-link > span { font-size: 19px; font-weight: 400; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--ink); color: white; border-radius: 5px; z-index: 10; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.public-main { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 76px 0 86px; flex: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.6px; }
.status-dot { display: inline-block; height: 6px; width: 6px; background: #8b9d6b; border-radius: 50%; flex-shrink: 0; }
.intro h1, .login-intro h1 { margin-top: 30px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 5.1vw, 69px); font-weight: 400; letter-spacing: -3.5px; line-height: 1.09; }
.intro h1 em, .login-intro h1 em, .inbox-heading h1 em, .reader-empty h2 em { color: #738264; }
.intro-copy { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 27px; }
.privacy-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 48px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.lock-icon { flex-shrink: 0; position: relative; display: inline-block; width: 10px; height: 9px; border: 1.2px solid currentColor; border-radius: 2px; margin-top: 5px; }
.lock-icon::before { content: ""; position: absolute; width: 5px; height: 5px; border: 1.2px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; top: -6px; left: 1.3px; }
.note-card, .login-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px #293e2a04; padding: 34px; }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.section-number { color: #657254; font-family: "Courier New", monospace; font-size: 11px; }
.small-caps { color: #66735d; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }
.note-card h2, .login-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 32px; letter-spacing: -1px; }
.card-subtitle { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.note-form, .login-form { margin-top: 30px; }
label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
textarea, input[type="password"] { width: 100%; color: var(--ink); background: #fbfbf6; border: 1px solid #dce1d2; border-radius: 6px; padding: 15px; line-height: 1.65; font-size: 13px; transition: border-color 120ms; }
textarea { resize: vertical; display: block; min-height: 180px; max-height: 700px; }
textarea::placeholder { color: #9a9f91; }
textarea:focus, input[type="password"]:focus { border-color: var(--green); }
.field-meta { display: flex; justify-content: space-between; margin-top: 9px; gap: 12px; color: #65725c; font-size: 10px; }
.field-meta > span { color: #6a775e; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 11px; }
.button { border: 1px solid transparent; border-radius: 5px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 44px; padding: 12px 18px; font-size: 12px; font-weight: 550; text-decoration: none; transition: background 120ms, border-color 120ms; }
.button > span { font-size: 19px; line-height: 1; font-weight: 400; }
.button-primary { width: 100%; background: var(--green); color: #fffefa; justify-content: space-between; margin-top: 26px; padding-left: 19px; padding-right: 19px; }
.button-primary:hover { background: var(--green-hover); }
.button-secondary { background: var(--white); border-color: var(--line); }
.button-secondary:hover { background: #ecf0e3; border-color: #aebd9e; }
.button-danger { background: var(--danger); color: var(--white); }
.button-danger:hover { background: #873128; }
.form-footnote { text-align: center; color: #65725c; margin-top: 14px; font-size: 10px; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border-radius: 5px; margin-top: 23px; font-size: 12px; line-height: 1.65; }
.notice strong { font-weight: 600; }
.notice p + p, .notice strong + p { margin-top: 3px; }
.notice-symbol { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #d7e5c5; }
.notice-success { background: #eef3e6; border: 1px solid #d7e4c9; color: #3b5a32; }
.notice-error { background: #fcf0ec; border: 1px solid #e8c9c0; color: var(--danger); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0 27px; color: #6c775f; font-size: 10px; }
.site-footer > span:first-child { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 12px; }
.login-main { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 100px; padding: 90px 30px 110px; }
.login-intro h1 { font-size: clamp(43px, 4.9vw, 63px); }
.login-card { padding: 35px; }
.login-card h2 { margin-top: 25px; }
.login-form input { min-height: 47px; }
.login-footnote { margin-top: 24px; display: flex; align-items: flex-start; justify-content: center; gap: 9px; color: #65725c; font-size: 10px; }
.login-footnote .lock-icon { width: 8px; height: 7px; margin-top: 5px; }
.login-footnote .lock-icon::before { width: 4px; height: 4px; top: -5px; left: 0.8px; }
.admin-shell { max-width: 1424px; padding: 0 64px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.admin-header { height: 96px; }
.admin-brand { display: flex; align-items: center; gap: 19px; }
.admin-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 8px; border: 1px solid #d5ddca; border-radius: 4px; color: #546b42; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.logout-button { border: 0; background: transparent; color: inherit; padding: 8px 0 8px 8px; }
.inbox-main { flex: 1; padding: 51px 0 37px; }
.inbox-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 47px; gap: 30px; }
.inbox-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: 43px; line-height: 1.15; font-weight: 400; letter-spacing: -1.9px; margin-top: 21px; }
.total-count { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 4px; }
.total-count strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -2px; }
.total-count span { color: var(--muted); font-size: 10px; }
.inbox-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.inbox-toolbar h2 { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.count-pill { background: var(--sage); border-radius: 4px; color: #4b613f; padding: 3px 6px; font-size: 10px; font-weight: 500; }
.sort-label { color: #65725c; font-size: 10px; display: flex; align-items: center; gap: 10px; }
.sort-label > span { font-size: 16px; }
.inbox-grid { display: grid; grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.4fr); gap: 23px; align-items: start; }
.notes-list { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.note-list-item { position: relative; display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 21px 22px 17px; transition: background 120ms, border-color 120ms; }
.note-list-item:hover { background: #fbfcf5; border-color: #aebd9e; }
.note-list-item.is-selected { background: #edf1e5; border-color: #9bb184; }
.note-list-item.is-selected::before { position: absolute; content: ""; width: 3px; top: 18px; bottom: 18px; left: -1px; background: #7f9869; border-radius: 0 3px 3px 0; }
.note-list-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 9px; }
.note-label { color: #65725c; text-transform: uppercase; letter-spacing: 0.7px; overflow-wrap: anywhere; }
.note-list-meta time { color: #65725c; text-align: right; font-size: 10px; line-height: 1.5; }
.note-preview { margin-top: 15px; font-size: 12px; line-height: 1.75; color: #46523f; white-space: pre-line; overflow-wrap: anywhere; }
.read-note { margin-top: 17px; display: flex; align-items: center; gap: 8px; color: #4b613f; font-size: 10px; }
.read-note > span { font-size: 15px; }
.note-reader { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 30px 35px; min-height: 450px; min-width: 0; position: sticky; top: 24px; }
.reader-topline { display: flex; justify-content: space-between; align-items: center; }
.reader-icon { color: #8c9f79; font-size: 22px; }
.note-reader h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 30px; letter-spacing: -1px; margin-top: 30px; overflow-wrap: anywhere; }
.reader-date { margin-top: 11px; color: #65725c; font-size: 11px; padding-bottom: 27px; border-bottom: 1px solid #e9ecdf; line-height: 1.6; }
.note-content { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.85; padding: 28px 0 35px; color: #45523c; }
.reader-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; color: #65725c; font-size: 10px; border-top: 1px solid #e9ecdf; padding-top: 12px; }
.reader-privacy { display: inline-flex; align-items: flex-start; gap: 9px; }
.reader-footer .lock-icon { margin-top: 4px; }
.delete-note-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--danger); font-size: 11px; }
.delete-note-link:hover { color: #873128; }
.inbox-notice { margin: 0 0 20px; }
.delete-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 52px 0; }
.delete-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 35px; }
.delete-card h1 { margin-top: 20px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 400; letter-spacing: -1.5px; line-height: 1.2; }
.delete-description { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.delete-preview { margin-top: 28px; padding: 23px 25px 0; border: 1px solid var(--line); border-radius: 7px; background: #fbfbf6; }
.delete-preview h2 { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.delete-preview .reader-date { padding-bottom: 17px; }
.delete-preview .note-content { font-size: 16px; padding: 20px 0 25px; }
.delete-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reader-empty { min-height: 388px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-note-icon { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 47px; height: 57px; border: 1.5px solid #b5c1a6; border-radius: 5px 14px 5px 5px; padding: 11px; transform: rotate(-8deg); margin-bottom: 29px; }
.empty-note-icon span { height: 1px; background: #b5c1a6; width: 100%; }
.empty-note-icon span:last-child { width: 65%; }
.reader-empty .eyebrow { font-size: 8px; }
.reader-empty h2 { font-size: 31px; line-height: 1.2; margin-top: 16px; }
.reader-empty > p:last-child { color: #65725c; font-size: 11px; line-height: 1.8; margin-top: 18px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; }
.pagination > div { flex: 1; }
.pagination > div:last-child { text-align: right; }
.pagination .button { font-size: 10px; min-height: 38px; padding: 8px 13px; gap: 10px; }
.page-number { color: #65725c; font-size: 10px; }
.is-disabled { opacity: 0.45; pointer-events: none; }
.inbox-footnote { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; color: #65725c; font-size: 10px; line-height: 1.7; }
.inbox-footnote .status-dot { width: 4px; height: 4px; }
.inbox-empty { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 66px 25px; min-height: 410px; }
.inbox-empty .empty-note-icon { margin-bottom: 27px; }
.inbox-empty .eyebrow { font-size: 9px; }
.inbox-empty h2 { font-family: Georgia, "Times New Roman", serif; font-size: 39px; font-weight: 400; letter-spacing: -1.5px; margin-top: 17px; }
.inbox-empty > p:not(.eyebrow) { margin-top: 17px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.inbox-empty > a { margin-top: 26px; font-size: 11px; }

@media (min-width: 1440px) {
  .public-main { gap: 110px; }
}

@media (max-width: 1000px) {
  .site-shell, .admin-shell { padding: 0 38px; }
  .public-main { gap: 45px; padding: 65px 0 75px; }
  .intro h1 { letter-spacing: -2.5px; }
  .note-card { padding: 26px; }
  .login-main { gap: 48px; padding: 80px 0; }
  .inbox-grid { grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr); gap: 17px; }
  .note-reader { padding: 25px; }
  .note-list-item { padding: 19px; }
  .note-list-meta { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 720px) {
  .site-shell, .admin-shell { padding: 0 23px; }
  .site-header { height: 89px; }
  .brand { font-size: 28px; }
  .brand-mark { width: 25px; height: 29px; padding: 5px; }
  .quiet-link { font-size: 11px; gap: 10px; }
  .public-main { grid-template-columns: 1fr; gap: 39px; padding: 45px 0 48px; }
  .intro h1 { font-size: 53px; letter-spacing: -2.7px; margin-top: 22px; }
  .intro-copy { font-size: 14px; margin-top: 22px; }
  .privacy-note { margin-top: 25px; }
  .note-card { padding: 27px; }
  .card-heading { margin-bottom: 25px; }
  .note-form { margin-top: 24px; }
  textarea { min-height: 200px; }
  .site-footer { font-size: 9px; line-height: 1.6; padding: 20px 0 24px; gap: 15px; }
  .site-footer > span:first-child { font-size: 11px; }
  .site-footer > span:last-child { text-align: right; }
  .login-main { grid-template-columns: 1fr; gap: 35px; padding: 47px 0 52px; }
  .login-intro h1 { font-size: 48px; letter-spacing: -2.3px; margin-top: 23px; }
  .login-intro .intro-copy { margin-top: 18px; }
  .login-card { padding: 29px; }
  .delete-main { padding: 35px 0; }
  .delete-card { padding: 25px; }
  .delete-card h1 { font-size: 32px; }
  .delete-preview { padding: 20px 18px 0; }
  .delete-actions > .button { flex: 1 1 100%; }
  .inbox-main { padding-top: 35px; }
  .admin-header { height: 83px; }
  .admin-brand { gap: 12px; }
  .admin-badge { font-size: 8px; }
  .inbox-heading { margin-bottom: 32px; gap: 15px; }
  .inbox-heading h1 { font-size: 33px; letter-spacing: -1.7px; margin-top: 17px; }
  .inbox-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; gap: 7px; }
  .total-count { gap: 6px; padding-bottom: 3px; flex-shrink: 0; }
  .total-count strong { font-size: 35px; }
  .total-count span { font-size: 8px; }
  .inbox-grid { display: flex; flex-direction: column-reverse; gap: 18px; }
  .notes-list { width: 100%; }
  .note-reader { width: 100%; min-height: 0; position: static; padding: 25px; }
  .note-reader:has(.reader-empty) { display: none; }
  .note-reader h2 { margin-top: 20px; font-size: 28px; }
  .note-content { font-size: 16px; padding-top: 23px; padding-bottom: 28px; }
  .note-list-item { padding: 20px; }
  .note-list-meta { flex-wrap: nowrap; }
  .note-preview { font-size: 13px; }
  .inbox-footnote { align-items: flex-start; text-align: center; margin-top: 27px; }
  .inbox-footnote .status-dot { margin-top: 6px; }
  .pagination { gap: 10px; }
  .pagination .button { font-size: 9px; padding: 8px 10px; gap: 7px; }
}

@media (max-width: 390px) {
  .site-shell, .admin-shell { padding-left: 18px; padding-right: 18px; }
  .note-card, .login-card { padding: 23px; }
  .intro h1 { font-size: 47px; }
  .inbox-heading h1 { font-size: 29px; }
  .total-count span { max-width: 46px; text-align: right; line-height: 1.5; }
  .field-meta > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
