/* One brand colour to change: --accent. Everything else follows. */
:root {
  --accent: #9A6B3F;
  --accent-dark: #7C5430;
  --ink: #1F2233;
  --ink-2: #5A6075;
  --ground: #FAF8F4;
  --surface: #FFFFFF;
  --rule: #E6E1D8;
  --error: #9B2C3A;
  --serif: "Newsreader", Georgia, "Songti TC", "PingFang TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
          "Microsoft JhengHei", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.shell { max-width: 36rem; margin: 0 auto; padding: 0 20px 72px; }

.topline { height: 4px; background: var(--accent); }
header.hero { padding: 44px 0 8px; }
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.18;
  letter-spacing: -0.015em; margin: 0; text-wrap: balance;
}
.intro { margin: 18px 0 0; color: var(--ink-2); font-size: 1.05rem; }

form { margin: 30px 0 0; display: grid; gap: 20px; }
.field { display: grid; gap: 7px; position: relative; }
label { font-size: .88rem; font-weight: 600; letter-spacing: .01em; }
.hint { font-size: .8rem; color: var(--ink-2); font-weight: 400; }
input {
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: 13px 14px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--surface); color: var(--ink); width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

button {
  font: inherit; font-weight: 600; font-size: 1.02rem;
  padding: 16px 20px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; cursor: pointer; width: 100%;
}
button:hover { background: var(--accent-dark); }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.privacy { margin: 4px 0 0; font-size: .82rem; color: var(--ink-2); }
.error {
  background: #FBEDEE; border-left: 3px solid var(--error); color: var(--error);
  padding: 12px 14px; border-radius: 4px; font-size: .92rem; margin: 22px 0 0;
}

/* city autocomplete */
.suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  margin-top: 4px; max-height: 240px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(31,34,51,.1);
}
.suggestions:empty { display: none; }
.suggestions button {
  display: block; width: 100%; text-align: left; background: none; color: var(--ink);
  border-radius: 0; padding: 12px 14px; font-weight: 400; font-size: .95rem;
  border-bottom: 1px solid var(--rule);
}
.suggestions button:last-child { border-bottom: 0; }
.suggestions button:hover { background: var(--ground); }

/* results */
.reading { margin: 34px 0 0; display: grid; gap: 34px; }
.section h2 {
  font-family: var(--serif); font-weight: 500; font-size: 1.45rem;
  line-height: 1.25; margin: 0 0 4px; letter-spacing: -0.01em;
}
.placement {
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.section p { margin: 0 0 1em; }
.section p:last-child { margin-bottom: 0; }

.transition {
  margin: 44px 0 0; padding: 28px 24px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 12px;
}
.transition p { margin: 0 0 1em; }
.transition p:last-of-type { margin-bottom: 20px; }
.cta { display: block; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 16px 20px; border-radius: 8px; }
.cta:hover { background: var(--accent-dark); }

.mailed {
  margin: 26px 0 0; padding: 14px 16px; border: 1px dashed var(--rule);
  border-radius: 8px; font-size: .9rem; color: var(--ink-2); background: var(--surface);
}
.mailed b { color: var(--ink); }
