.voice-art {
  width: 85px;
  float: right;
}
.empty img {
  vertical-align: middle;
  margin-right: 8px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #faf8f1;
  color: #17332f;
  font:
    16px/1.55 "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: #09584f;
  text-underline-offset: 4px;
}
header {
  border-bottom: 1px solid #c9cfc3;
  background: #faf8f1;
}
.bar,
main,
footer {
  max-width: 1280px;
  margin: auto;
  padding: 0 clamp(18px, 4vw, 65px);
}
.bar,
nav,
.actions,
footer,
.heading,
.split,
.filters {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bar {
  min-height: 78px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 29px Georgia;
  color: #133e37;
  letter-spacing: -1.7px;
  text-decoration: none;
}
.brand img {
  width: 42px;
  animation: arrive 0.45s ease-out;
}
nav a,
footer a {
  text-decoration: none;
  font-weight: 600;
}
nav form,
nav button {
  margin: 0;
}
.btn,
button,
.outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  font: 600 15px/1.3 inherit;
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn,
button {
  background: #09584f;
  color: white;
}
.outline {
  background: transparent;
  border-color: #a2b2a7;
  color: #154940;
}
.plain {
  background: transparent;
  color: #15564c;
  padding: 8px;
  text-decoration: underline;
}
button:disabled {
  background: #697570;
  cursor: default;
}
a:hover {
  text-decoration: underline;
}
button:hover:not(:disabled),
.btn:hover {
  filter: brightness(0.92);
}
:focus-visible {
  outline: 3px solid #bc7615;
  outline-offset: 3px;
}
main {
  min-height: 72vh;
  padding-top: 36px;
  padding-bottom: 70px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  padding: 12px 0 56px;
}
.eyebrow {
  font:
    700 12px/1.4 "Courier New",
    monospace;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #38675a;
}
.eyebrow i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bd832b;
  margin-right: 7px;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(42px, 5.15vw, 78px);
  margin: 20px 0;
}
h1 em {
  display: block;
  color: #0b6152;
}
h2 {
  font-size: clamp(29px, 3vw, 44px);
  margin: 32px 0 18px;
}
.lead,
article > p {
  font-size: 19px;
  max-width: 65ch;
}
.hero .lead {
  color: #475c52;
  margin: 20px 0 28px;
}
figure {
  margin: 0;
  position: relative;
  background: #ead9ad;
  border-radius: 12px;
  overflow: hidden;
}
figure img {
  width: 100%;
  height: clamp(320px, 35vw, 520px);
  object-fit: cover;
  display: block;
}
figcaption {
  background: #104f45;
  color: #f4e4c0;
  font: italic 18px Georgia;
  text-align: center;
  padding: 15px;
}
#walk {
  border-top: 1px solid #bac5ba;
  padding-top: 28px;
}
.steps,
.workspace {
  display: grid;
  gap: 20px;
}
.steps {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
details,
aside,
.rows,
article,
.voice {
  background: #fffdf7;
  border: 1px solid #cdd3c8;
  border-radius: 12px;
  padding: 20px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
footer {
  border-top: 1px solid #cdd3c8;
  padding-top: 24px;
  padding-bottom: 28px;
  font-size: 14px;
}
footer span {
  margin-right: auto;
}
article {
  max-width: 760px;
  margin: 10px auto;
  padding: clamp(22px, 4vw, 50px);
}
article h1,
.heading h1 {
  font-size: clamp(38px, 4vw, 60px);
}
label,
small {
  display: block;
}
label {
  font-weight: 600;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  background: white;
  color: #17332f;
  border: 1px solid #97aa9e;
  border-radius: 6px;
  padding: 11px;
  font: inherit;
}
textarea {
  resize: vertical;
}
form p {
  margin: 14px 0;
}
blockquote,
.notice,
.empty {
  border-left: 4px solid #cf9b45;
  background: #f7edcd;
  padding: 14px 18px;
  margin: 12px 0;
}
.errorlist {
  color: #983214;
}
.workspace {
  grid-template-columns: 1.6fr 1fr;
  margin: 20px 0;
}
.voice {
  background: #e2eee4;
  padding: clamp(20px, 3vw, 40px);
}
.voice h2,
aside h2 {
  margin-top: 8px;
}
.voice #mic {
  padding: 18px 24px;
  border-radius: 40px;
  background: #084f44;
  letter-spacing: 0.06em;
  gap: 12px;
}
.voice #mic span {
  font-size: 24px;
  color: #ffdb91;
}
#wave {
  color: #09584f;
  animation: pulse 0.85s infinite alternate;
}
#controls {
  margin: 10px 0;
}
.actions {
  margin: 16px 0;
  gap: 10px;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
}
dt,
dd {
  border-bottom: 1px solid #d1d8cb;
  padding: 10px 0;
  margin: 0;
}
dd {
  font-weight: 700;
}
.rows a,
.split,
.heading {
  display: flex;
  justify-content: space-between;
}
.rows a {
  padding: 14px 0;
  border-bottom: 1px solid #d5d9ce;
  text-decoration: none;
}
.rows a:last-child {
  border: 0;
}
small {
  color: #526659;
}
.filters {
  align-items: end;
  margin: 18px 0;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #d8e5da;
  display: grid;
  place-items: center;
}
.steps details {
  min-height: 78px;
}
.screen details {
  margin-top: 25px;
}
@keyframes pulse {
  to {
    opacity: 0.42;
  }
}
@keyframes arrive {
  from {
    transform: translateY(5px);
    opacity: 0.4;
  }
}
@media (max-width: 760px) {
  .hero,
  .workspace,
  .steps {
    grid-template-columns: 1fr;
  }
  .bar {
    padding-top: 12px;
    padding-bottom: 10px;
    gap: 8px;
  }
  nav {
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    font-size: 14px;
  }
  nav > * {
    white-space: nowrap;
  }
  main {
    padding-top: 20px;
  }
  .hero {
    padding-bottom: 30px;
  }
  figure img {
    height: auto;
  }
  .steps details {
    min-height: 0;
  }
  footer {
    gap: 12px;
  }
  .actions > * {
    flex-grow: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  html {
    animation: none !important;
    scroll-behavior: auto;
  }
}
@media print {
  header,
  footer,
  .screen,
  .notice {
    display: none;
  }
  main,
  article {
    max-width: none;
    border: 0;
    padding: 0;
  }
  body {
    background: white;
  }
}

/* Raised ledger covers and inset writing surfaces */
body {background:radial-gradient(ellipse at 90% 7%,#e4ecd9 0,transparent 38rem),#faf8f1}
header {background:rgba(250,248,241,.94);box-shadow:0 3px 18px #163c3010}
.brand img {width:46px;height:46px;filter:drop-shadow(2px 4px 2px #173c3530);animation:turn-cover 6s ease-in-out infinite}
@keyframes turn-cover {0%,70%,100%{transform:perspective(180px) rotateY(0)}85%{transform:perspective(180px) rotateY(-26deg) rotateZ(-4deg)}}
.hero figure,.account-art,.steps details,article,.workspace aside,.voice,.rows {box-shadow:0 3px 0 #c1cbb9,0 17px 40px -26px #183e35}
.hero figure {transform:perspective(1200px) rotateY(-4deg) rotateZ(1deg);transition:transform .55s}
.hero figure:hover {transform:perspective(1200px) rotateY(0)}
.steps details,.rows a,.btn,button {transition:transform .25s,box-shadow .25s}
.steps details:hover {transform:perspective(800px) translateY(-4px) rotateX(2deg)}
.btn:hover,button:enabled:hover {transform:translateY(-2px)}
article{border-top:4px solid #37705c}
#dictation-language{max-width:220px;display:block;margin:5px 0 17px}
.voice #mic{box-shadow:0 5px 0 #05372f,0 11px 22px #164f3a30}
.voice:has(#controls:not([hidden])){border-color:#237a59}
.account-layout{display:grid;grid-template-columns:1fr 1fr;max-width:940px;margin:24px auto;perspective:1300px}
.account-layout article{width:100%;margin:0;align-self:center;padding:clamp(26px,4vw,58px);z-index:1}
.account-art{position:relative;overflow:hidden;background:#084d43;color:#fff5d3;border-radius:18px;min-height:480px;transform:rotateY(4deg)}
.account-art>img{width:100%;height:100%;position:absolute;object-fit:cover}
.account-art>div{position:absolute;inset:0;padding:34px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(transparent,#073f37 94%)}
.account-art div img{width:66px;filter:drop-shadow(2px 5px 4px #08362d88)}
.account-art h2{font-style:italic;font-size:48px}
.password-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.85rem}
.password-tools button{font-size:.85rem}
@media(max-width:760px){.account-layout{grid-template-columns:1fr;margin:0}.account-art{min-height:128px;transform:none}.account-art>div{padding:18px;flex-direction:row;align-items:center}.account-art h2{font-size:23px;margin:0}.hero figure{transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;transform:none!important}}
@media print{body{background:white}article{box-shadow:none;border:0}}

[hidden]{display:none!important}
.voice #mic span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 31% 23%,#ffe8a4,#b6853b 63%,#664a2a);color:#264d3e;box-shadow:inset 0 -3px 5px #866439,0 3px 5px #06352d}
.voice:has(#controls:not([hidden])) #mic span{animation:voice-orbit 1.3s ease-in-out infinite alternate}
@keyframes voice-orbit{to{transform:perspective(180px) translateZ(10px);box-shadow:0 0 0 7px #d7b45838}}
@media(prefers-reduced-motion:reduce){.voice #mic span{animation:none!important}}
