:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --ink: #252a25;
  --muted: #75776f;
  --edge: #d8d8d1;
  --panel: #fbfaf7;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.hero {
  width: 100%;
  text-align: center;
  transform: translateY(-4vh);
}
h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3.45rem, 7.3vw, 7.2rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.053em;
}
.subtitle {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(.9rem, 1.2vw, .97rem);
  line-height: 1.7;
  letter-spacing: .005em;
}
.contact-link {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0 7px;
  margin-top: 29px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .02em;
  transition: border-color .2s ease, color .2s ease;
}
.contact-link span { font-size: 1.05rem; font-weight: 400; line-height: 1; }
.contact-link:hover { color: #76796c; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

.contact-dialog {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: min(760px, calc(100svh - 32px));
  overflow-y: auto;
  padding: 38px 42px 36px;
  margin: auto;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #e3e1d9;
  border-radius: 2px;
  box-shadow: 0 23px 80px rgb(18 23 18 / .12);
}
.contact-dialog::backdrop { background: rgb(26 31 26 / .32); backdrop-filter: blur(2px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.03em;
}
.close-dialog {
  appearance: none;
  padding: 0 1px;
  border: 0;
  background: none;
  color: #70746b;
  font-family: Arial, sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1;
}
.close-dialog:hover { color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; color: #4b504a; font-size: .76rem; font-weight: 500; }
.field .optional { color: #85877e; font-weight: 400; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid #cecec6;
  border-radius: 2px;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: #525d4f; box-shadow: 0 0 0 1px #525d4f; }
.form-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; margin-top: 5px; }
.escrow-note { margin: 5px 0 0; color: #696e66; font-size: .77rem; line-height: 1.65; max-width: 42ch; }
/* Länkstil för kort personuppgiftsinformation, utan en extra sida. */
.privacy-details { max-width: 100%; color: var(--muted); font-size: .73rem; line-height: 1.6; }
.privacy-details summary { display: inline; cursor: pointer; text-decoration: underline; text-decoration-color: #b9b9b1; text-underline-offset: 4px; list-style: none; }
.privacy-details summary::-webkit-details-marker { display: none; }
.privacy-details summary:hover { color: var(--ink); text-decoration-color: currentColor; }
.privacy-details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.privacy-details p { margin: 12px 0 0; }
.success-note { display: block; margin-top: 7px; color: var(--muted); font-size: .75rem; }
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 17px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  transition: background .2s ease;
}
.submit-button span { font-size: 1.05rem; font-weight: 400; }
.submit-button:hover { background: #434a3f; }
.message { padding: 15px; margin: 0 0 24px; border: 1px solid #c9d2c4; color: #31513b; font-size: .9rem; line-height: 1.5; }
.message.error { border-color: #d5b7ae; color: #773e34; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 540px) {
  .site { padding: 36px 18px; }
  .hero { transform: translateY(-3vh); }
  h1 { font-size: clamp(3.15rem, 13.1vw, 4.4rem); letter-spacing: -.056em; }
  .subtitle { margin-top: 17px; }
  .contact-link { margin-top: 24px; }
  .contact-dialog { padding: 28px 23px 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 16px; }
  .dialog-head { margin-bottom: 23px; }
  .form-footer { gap: 12px; }
  .privacy-details { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
