:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f4ed;
  color: #1d2119;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(247, 244, 237, .92), rgba(247, 244, 237, 1)),
    url("data:image/svg+xml,%3Csvg width='180' height='180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 120c38-18 71-18 108 0s71 18 108 0' fill='none' stroke='%23e6d8bf' stroke-width='2'/%3E%3C/svg%3E");
}

a { color: #7b3f00; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1d2119;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f28a17;
  color: #111;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(77, 48, 15, .18);
}

.brand strong, .brand small { display: block; }
.brand small { color: #626855; font-weight: 600; margin-top: 2px; }

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.hero {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7b3f00;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}

h1 {
  margin: 0;
  max-width: 850px;
  color: #1f2717;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  color: #26301f;
  font-size: 1.16rem;
}

p, li {
  color: #4d5544;
  line-height: 1.65;
}

.lead {
  max-width: 720px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: #3e4636;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.button, button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #f28a17;
  color: #111;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
}

.button.secondary {
  background: #26301f;
  color: #fff;
}

.download-button {
  width: 100%;
  margin: 8px 0 4px;
}

.download-panel {
  margin-top: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.grid article, .panel {
  border: 1px solid #ded3bd;
  border-radius: 8px;
  background: rgba(255, 252, 246, .78);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(69, 45, 12, .08);
}

.document {
  max-width: 820px;
}

.document h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.document h2 {
  margin-top: 30px;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: #26301f;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #b9ad96;
  border-radius: 8px;
  background: #fff;
  color: #111;
}

button {
  width: 100%;
  margin-top: 18px;
  text-transform: none;
}

button:disabled { opacity: .55; cursor: wait; }
.danger { border-color: #c48c7e; }
.status { min-height: 1.5em; margin-top: 14px; font-weight: 800; }
.small { color: #686f5f; font-size: .92rem; }

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #626855;
  border-top: 1px solid #e1d6c1;
}

@media (max-width: 840px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  h1 { font-size: 2.35rem; }
  .grid { grid-template-columns: 1fr; }
  .actions a { width: 100%; }
}
