/* Irel quiet desk. Local assets, no external fonts or motion required. */
:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --surface: #fffcf6;
  --ink: #343c36;
  --muted: #626a60;
  --sage: #526d5e;
  --sage-light: #e2e9dc;
  --lavender: #e9e3ed;
  --clay: #ede0d3;
  --line: #dad9ca;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
  font-size: 15px;
}
body {
  background: radial-gradient(ellipse at 0 0, #e4e8dc80, transparent 50%),
              radial-gradient(ellipse at 100% 0, #e8dfea80, transparent 48%), var(--paper);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #c4cabb;
  border-radius: 12px;
  padding: .6rem 1.1rem;
  min-height: 44px;
  transition: background-color 160ms ease, border-color 160ms ease;
}
button:hover { background: var(--sage-light); border-color: #8a9b84; }
button:disabled { opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid #796682;
  outline-offset: 4px;
}
input:not([type=checkbox]), select, textarea {
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #aeb7a6;
  border-radius: 12px;
  padding: .8rem 1rem;
}
input[type=checkbox] {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 .6rem 0 0;
  vertical-align: middle;
  accent-color: var(--sage);
}
label { color: var(--muted); font-size: .92rem; }
header {
  background: #f4f0e8ed;
  color: var(--ink);
  padding: 1.5rem max(4vw, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}
.brand {
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: -.04em;
  padding-left: 2.4rem;
  position: relative;
}
.brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(155deg, #c9b987 0 48%, #80947b 49% 68%, #536d61 69%);
}
.brand small {
  color: var(--muted);
  font-family: 'Segoe UI', sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .1rem;
}
nav {
  padding: .8rem 4vw;
  background: #f9f6efb3;
  border-bottom: 1px solid var(--line);
  gap: .35rem;
}
nav button { color: var(--muted); font-size: .85rem; padding: .55rem .85rem; }
nav button[aria-current] { color: #354d3e; background: var(--sage-light); border-color: #becbb5; }
main { max-width: 1440px; padding: 2rem 4vw 3rem; }
.title {
  min-height: 165px;
  padding: 1.5rem 2rem;
  border: 1px solid #d9d8c9;
  border-radius: 24px;
  background: #eeeee2 url('./quiet-hills.svg') right center / auto 100% no-repeat;
  position: relative;
  overflow: hidden;
  gap: 1rem;
  margin: 0 0 1.8rem;
}
.title > div { position: relative; max-width: 72%; }
.title > button { position: relative; background: #fffdf8ed; }
.eyebrow { color: #5c6859; font-size: .68rem; letter-spacing: .15em; line-height: 1.7; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 2.6rem; font-weight: 400; letter-spacing: -.045em; line-height: 1.2; }
h2 { font-size: 1.05rem; font-weight: 600; color: #455442; line-height: 1.5; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.2rem 0;
  box-shadow: 0 5px 18px #3c443107;
}
.grid { gap: 1.2rem; }
.grid > .panel:nth-child(3n+2) { border-top: 3px solid #cbc3d3; }
.grid > .panel:nth-child(3n+1) { border-top: 3px solid #bdcbb5; }
.grid > .panel:nth-child(3n) { border-top: 3px solid #d8c4ad; }
.muted { color: var(--muted); }
.badge { color: #405a43; background: var(--sage-light); border-color: #c0cdb8; border-radius: 8px; padding: .2rem .6rem; }
.notice { background: #efe7d6; border-color: #ad9163; color: #5b503c; border-radius: 0 12px 12px 0; }
.error { background: #f3e3df; border-color: #bf8f82; color: #7c3e33; border-radius: 12px; }
form { max-width: 650px; }
form > label { display: block; margin: .8rem 0; }
form > button, .login button { background: var(--sage); border-color: var(--sage); color: #fffdf8; margin-top: .7rem; }
form > button:hover, .login button:hover { background: #405c4d; }
details { background: #faf8f1; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
details[open] { background: #fffdf8; }
summary { color: #4c5a49; font-weight: 600; overflow-wrap: anywhere; }
summary::marker { color: #7b8a72; }
details[open] > summary { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
dl > div { padding: .65rem 0; border-color: #e9e7db; }
dt { color: #63715e; font-size: .75rem; letter-spacing: .025em; }
dd { margin-top: .2rem; }
dd dl { border-color: #d9dfce; }
th { background: #eeeee3; color: #56624e; }
td, th { border-color: #e2e4d8; padding: 1rem .8rem; }
tbody tr:nth-child(even) { background: #f8f7f0; }
.table-wrap { border-radius: 12px; }
footer { text-align: center; color: var(--muted); padding: 2rem 4vw; border-top: 1px solid var(--line); }
.login {
  max-width: 460px;
  margin: 9vh auto;
  padding: 2.2rem;
  padding-top: 155px;
  background: var(--surface) url('./quiet-hills.svg') right top / auto 125px no-repeat;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 70px #535c4410;
}
.login h1 { font-size: 2.25rem; }
@media (max-width: 700px) {
  header { padding: 1rem 5vw; }
  nav { padding: .65rem 4vw; gap: .15rem; }
  nav button { font-size: .78rem; padding: .45rem .65rem; }
  main { padding: 1.2rem 4vw 2rem; }
  .title { min-height: 155px; padding: 1.2rem; align-items: flex-start; background-position: 75% center; }
  .title > div { max-width: 72%; }
  .title h1 { font-size: 2rem; }
  .title .eyebrow { max-width: 22ch; }
  .title > button { padding: .4rem .65rem; }
  .panel { padding: 1rem; border-radius: 16px; }
  .login { width: calc(100% - 2rem); padding: 145px 1.5rem 1.5rem; margin: 5vh auto; }
  .brand { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
