:root {
  --paddy: #2F6B3A;
  --paddy-deep: #1E3A2A;
  --jute: #D9A93B;
  --jute-deep: #B9862A;
  --silt: #EAF2E6;
  --ink: #16241B;
  --muted: #4E5F53;
  --focus: #D9A93B;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  background: var(--silt);
  color: var(--ink);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, .about-name, .topbar-name {
  font-family: "Noto Serif Bengali", "Noto Sans Bengali", serif;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}
.mark { width: 2.375rem; height: 2.375rem; display: block; flex-shrink: 0; }
.topbar-name { font-weight: 700; color: #fff; font-size: 1.0625rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }

.hero {
  position: relative;
  min-height: min(46rem, 92vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paddy-deep);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 18, 0.55) 0%, rgba(15, 26, 18, 0.15) 32%, rgba(15, 26, 18, 0.35) 68%, rgba(11, 20, 14, 0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7rem 1.5rem 3rem;
}
h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  line-height: 1.16;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 32rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
p.lead {
  font-size: 1.125rem;
  color: #dce8dc;
  margin: 0;
  max-width: 30rem;
}

.wave { display: block; width: 100%; height: 3rem; margin-top: -1px; }

main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.about {
  padding: 1.5rem 0 3rem;
  max-width: 38rem;
}
.about-eyebrow {
  color: var(--jute-deep);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}
.about-name { font-weight: 700; color: var(--paddy-deep); margin: 0 0 0.625rem; font-size: 1.5rem; }
.about-line { color: var(--muted); margin: 0; font-size: 1.0625rem; }

.work { padding: 1rem 0 1rem; border-top: 1px solid #d7e3d2; }
.work h2 {
  font-size: 1.625rem;
  color: var(--paddy-deep);
  margin: 2.5rem 0 1.75rem;
  font-weight: 700;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.work-item {
  background: #fff;
  border: 1px solid #d7e3d2;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.work-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--silt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-icon { width: 1.5rem; height: 1.5rem; color: var(--paddy); }
.work-item p { margin: 0; color: var(--ink); font-size: 1.0625rem; }

.sitefoot { margin-top: auto; }
.river { display: block; width: 100%; height: 5.5rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cfdccb;
  font-size: 0.9375rem;
}
.dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #9aa89d; }
.status[data-state="ok"] .dot { background: var(--paddy); }
.status[data-state="down"] .dot { background: #B3261E; }


/* Homepage actions */
.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0.5rem 0 3rem;
}
.action {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 1.25rem 1.375rem;
  border-radius: 1rem;
  background: var(--paddy-deep);
  color: #fff;
  text-decoration: none;
  border-bottom: 4px solid var(--jute);
  transition: background-color 120ms ease;
}
.action:hover { background: var(--paddy); }
.action-title { font-family: "Noto Serif Bengali", "Noto Sans Bengali", serif; font-weight: 700; font-size: 1.1875rem; }
.action-text { color: #cfe0cf; font-size: 0.9375rem; line-height: 1.5; }

/* Inner pages */
.topbar--solid { position: static; background: var(--paddy-deep); }
.topbar--solid .topbar-inner { padding-bottom: 1.25rem; }
.topbar-home { text-decoration: none; }
.page { max-width: 44rem; padding-top: 2.5rem; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { color: var(--paddy-deep); text-shadow: none; max-width: none; font-size: clamp(2rem, 5vw, 2.75rem); }
.page-head .lead { color: var(--muted); max-width: 36rem; }

/* Forms */
.form { display: grid; gap: 1.375rem; }
.field { display: grid; gap: 0.375rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; color: var(--ink); padding: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.field-hint { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #bfd1ba;
  border-radius: 0.625rem;
  padding: 0.75rem 0.875rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.check input:focus-visible, .chip input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--paddy);
}
[aria-invalid="true"] { border-color: #B3261E !important; }
.field-error { margin: 0; color: #B3261E; font-size: 0.9375rem; min-height: 0; }
.field-error:empty { display: none; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--paddy); }
.check label { color: var(--ink); }
.check input:disabled + label { color: #8a9a8d; }
.check .field-error { grid-column: 2; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid #bfd1ba;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}
.chip input { accent-color: var(--paddy); width: 1.125rem; height: 1.125rem; margin: 0; }
.chip:has(input:checked) { border-color: var(--paddy); background: #e2efdd; }

.turnstile { min-height: 65px; }

.button {
  font: inherit;
  font-weight: 600;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  border-radius: 0.75rem;
  border: 0;
  background: var(--paddy-deep);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { background: var(--paddy); }
.button:disabled { background: #9aa89d; cursor: not-allowed; }
.button--ghost { background: transparent; color: var(--paddy-deep); border: 1.5px solid var(--paddy-deep); }
.button--ghost:hover { background: #e2efdd; }

.form-status { margin: 0; padding: 0.75rem 1rem; border-radius: 0.625rem; font-weight: 500; }
.form-status[data-tone="info"] { background: #e2efdd; color: var(--paddy-deep); }
.form-status[data-tone="error"] { background: #fbe9e7; color: #8C1D18; }

.success {
  background: #fff;
  border: 1px solid #d7e3d2;
  border-top: 5px solid var(--jute);
  border-radius: 1rem;
  padding: 1.75rem;
}
.success:focus { outline: none; }
.success h2 { margin: 0 0 0.5rem; color: var(--paddy-deep); font-size: 1.5rem; }
.success p { margin: 0 0 1rem; color: var(--muted); }
.success-code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink) !important;
  margin: 0.5rem 0 1.25rem !important;
}
.success-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Tracking */
.form--inline { grid-template-columns: 1fr auto; align-items: end; gap: 0.75rem; }
.form--inline input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
#track-status { margin-top: 1rem; }
.track-result { margin-top: 1.5rem; background: #fff; border: 1px solid #d7e3d2; border-radius: 1rem; padding: 1.5rem; }
.track-head { display: grid; gap: 0.25rem; margin-bottom: 1.25rem; }
.track-code { margin: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 1.25rem; }
.track-meta { margin: 0; color: var(--muted); }
.track-badge {
  justify-self: start;
  margin: 0.5rem 0 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #e2efdd;
  color: var(--paddy-deep);
  font-weight: 600;
}
.track-badge[data-status="resolved"] { background: var(--paddy-deep); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid #cfdccb; display: grid; gap: 1rem; }
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 6px);
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jute);
}
.timeline-title { margin: 0; font-weight: 600; }
.timeline-when { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.timeline-note { margin: 0.375rem 0 0; }

/* Privacy prose */
.prose { max-width: 40rem; }
.prose h2 { font-size: 1.25rem; color: var(--paddy-deep); margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 0.75rem; }
.prose a, .check a { color: var(--paddy); }
.prose-meta { color: var(--muted); font-size: 0.875rem; margin-top: 2rem !important; }

/* Footer links */
.footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  padding: 0 1.5rem 1.25rem;
}
.footlinks a { color: var(--paddy-deep); font-weight: 500; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 900px) {
  .actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .hero { min-height: 34rem; }
  .hero-inner { padding: 6rem 1.25rem 2.5rem; }
  .work-grid { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .form--inline { grid-template-columns: 1fr; }
  .button { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
