/* New Diem: shared styles. Colours come from the sunrise-over-skyline artwork. */
:root {
  --navy: #0e1a33;
  --navy-deep: #0a1326;
  --sky: #2f7cc4;
  --sun: #ffc21a;
  --sun-deep: #e08a00;

  --bg: #f5f7fb;
  --ink: #14203a;
  --muted: #5b6680;
  --line: #dde3ee;
  --card: #ffffff;
  --link: #1f63a8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1326;
    --ink: #eef2f9;
    --muted: #9aa6bf;
    --line: #1f2b47;
    --card: #111c35;
    --link: #ffcf4d;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }

/* ---------- Header: the skyline ---------- */
.site-header {
  position: relative;
  min-height: clamp(220px, 34vw, 340px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.skyline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: #fff;
  text-decoration: none;
  font: 600 1.5rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(10, 30, 70, .45);
}
.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .5rem .95rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(14, 26, 51, .25);
  backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.site-header nav a:hover,
.site-header nav a:focus-visible { background: rgba(14, 26, 51, .55); border-color: #fff; }

.hero {
  max-width: 64rem;
  margin: 0 auto;
  padding: .5rem 1.5rem 11.5rem;  /* keeps text above the skyline at every width */
  text-shadow: 0 1px 10px rgba(10, 30, 70, .5);
}
.hero h1 {
  margin: 0 0 .35rem;
  font: 600 clamp(2.25rem, 6vw, 3.75rem)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.015em;
}
.hero p { margin: 0; max-width: 30rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); opacity: .95; }

/* ---------- Main ---------- */
.site-main {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  flex: 1;
}
form#form1 { flex: 1; display: flex; flex-direction: column; }

.section-title {
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.intro { max-width: 40rem; font-size: 1.15rem; margin: 0 0 2.5rem; }

.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.ideas a {
  display: grid;
  gap: .25rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.ideas a:hover, .ideas a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14, 26, 51, .12); }
.ideas .title { font-weight: 600; font-size: 1.1rem; }
.ideas .tagline { color: var(--muted); }
.ideas .url { color: var(--link); font-size: .85rem; }
.empty { color: var(--muted); }

/* ---------- Forms ---------- */
.form-card {
  max-width: 36rem;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: transparent; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  padding: .75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: #ffd34d; }
.notice { max-width: 36rem; padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem; border: 1px solid var(--line); background: var(--card); }
.notice.ok { border-left: 4px solid #2f9e62; }
.notice.error { border-left: 4px solid #d1453b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c3d9;
  font-size: .85rem;
  text-align: center;
  padding: 1.25rem 1.5rem;
}
.site-footer p { margin: 0; }

@media (max-width: 560px) {
  .brand { font-size: 1.25rem; }
}
