/* Tailova web pages: "Field Journal" theme, matching the app. */
:root {
  --paper: #F5F0E6;
  --card: #FFFCF6;
  --line: #E7DFCF;
  --line-strong: #C9C0AE;
  --ink: #1E2A21;
  --muted: #6B7466;
  --forest: #2D5A3A;
  --forest-soft: #3E7550;
  --sage: #E3EADB;
  --apricot: #E48A55;
  --apricot-deep: #8A4F2B;
  --apricot-tint: #FBE6D6;
  --danger: #B64A3C;
  --radius: 22px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-soft); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; border-radius: 6px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 240, 230, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
nav, main, footer { width: min(880px, calc(100% - 40px)); margin: 0 auto; }
nav { display: flex; align-items: center; gap: 22px; min-height: 68px; flex-wrap: wrap; }
nav strong, nav .brand {
  margin-right: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  color: var(--ink); text-decoration: none;
}
nav .brand img { width: 34px; height: 34px; object-fit: contain; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--forest); }

/* Content */
main { padding: 48px 0 72px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.1; margin: 0 0 8px; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }
main > p:first-of-type { color: var(--muted); }
.effective { display: inline-block; margin: 0 0 24px; padding: 4px 12px; border-radius: 99px; background: var(--sage); color: var(--forest); font-size: .85rem; font-weight: 600; }
p, li { color: #2c3a30; }
ul { padding-left: 1.2rem; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); }
.doc h2:first-of-type { margin-top: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; }
.toc a:hover { border-color: var(--forest); color: var(--forest); }
.callout { margin: 20px 0; padding: 14px 18px; border-radius: 16px; background: var(--apricot-tint); color: #5b3a24; }
.callout strong { color: var(--apricot-deep); }

/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 8px; font-size: .95rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--sage); color: var(--forest); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td + td, th + th { border-left: 1px solid var(--line); }

/* Buttons and forms (account deletion, email actions) */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  color: #fff; background: var(--forest); border-radius: 14px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--forest-soft); color: #fff; }
.button:active { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.button.danger { background: var(--danger); }
.welcome { min-height: calc(100vh - 220px); display: grid; align-content: center; justify-items: start; }
.welcome h1 { max-width: 720px; }
.brand-logo { width: 88px; height: 88px; object-fit: contain; margin-bottom: 8px; }
.action-page { min-height: calc(100vh - 220px); display: grid; place-items: center; }
.action-panel { width: min(540px, 100%); margin: 24px 0; padding: clamp(22px, 4vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.action-panel h1 { font-size: 2rem; }
.action-panel h2 { margin-top: 0; }
.action-panel form { display: grid; gap: 10px; margin-top: 20px; }
.action-panel label { font-weight: 600; font-size: .95rem; }
.action-panel input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: #fff; font: inherit; color: var(--ink);
}
.action-panel input:focus { outline: 3px solid var(--sage); border-color: var(--forest); }
.action-panel button { border: 0; cursor: pointer; justify-self: start; font: inherit; font-weight: 600; margin-top: 6px; }
.action-panel button:disabled { cursor: wait; opacity: .65; }
.confirmation { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-weight: 400 !important; }
.confirmation input { width: 20px; min-height: 20px; margin: 3px 0 0; accent-color: var(--forest); }
.status { min-height: 1.6em; font-weight: 600; color: var(--forest); }
.field-help { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  padding: 28px 0 44px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
footer a { color: var(--muted); }
footer .spacer { margin-right: auto; }

@media (max-width: 640px) {
  nav { gap: 6px 16px; padding: 10px 0; min-height: 0; }
  nav strong, nav .brand { flex-basis: 100%; }
  main { padding-top: 28px; }
  table { display: block; overflow-x: auto; }
}

/* Self-hosted fonts: no requests to third-party font services. */
@font-face { font-family: "Lora"; src: url("/fonts/Lora-Variable.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.otf") format("opentype"); font-weight: 600 700; font-display: swap; }
