/* díon.ie — limewash editorial. No build step, no framework, no cookies.
   Palette drawn from the Burren cottage photo: limewash white, ink slate,
   Atlantic teal (nod to the old DaisyUI "cmyk" cyan). */

/* ---------- font: Fraunces (self-hosted variable, latin) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/fraunces-var.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --bg: #f7f3ec;
  --bg-raised: #fffdf8;
  --ink: #20262b;
  --ink-soft: #5c6671;
  --line: #e4ddcf;
  --accent: #0c7489;
  --accent-deep: #0a5e70;
  --footer-bg: #161b1f;
  --footer-ink: #efe9dd;
  --footer-soft: #97a1ab;
  --shadow: 0 1px 2px rgb(32 38 43 / .06), 0 12px 32px -12px rgb(32 38 43 / .18);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191d;
    --bg-raised: #1b2126;
    --ink: #e9e4d9;
    --ink-soft: #9aa4ae;
    --line: #2a3239;
    --accent: #56b7c3;
    --accent-deep: #7accd6;
    --footer-bg: #101418;
    --footer-ink: #e9e4d9;
    --footer-soft: #7e8893;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: style;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark .roof-logo {
  /* the original dion.ie red shingled-roof mark (images/roof.svg, 504:386) */
  width: 1.55em;
  height: auto;
  flex: none;
  align-self: center;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-size: .95rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-deep); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* header laid over the hero photo */
.home .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
}
.home .wordmark, .home .site-nav a { color: #fff; text-shadow: 0 1px 12px rgb(10 14 16 / .45); }
.home .site-nav a:hover { color: #fff; text-decoration: underline; }
.home .wordmark .roof-logo { filter: drop-shadow(0 1px 10px rgb(10 14 16 / .5)); }

/* ---------- hero (landing) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgb(10 14 16 / .78) 0%,
    rgb(10 14 16 / .35) 45%,
    rgb(10 14 16 / .12) 75%,
    rgb(10 14 16 / .22) 100%);
}
.hero-copy {
  padding: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 9vh, 6.5rem);
  max-width: 60rem;
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.5rem, 7.5vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: #fff;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 420;
  color: #aee3ea;
}
/* staggered page-load rise */
.rise { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2, .7, .3, 1) forwards; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- shared page body (contact, legal, 404) ---------- */
.page {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}
.page-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: clamp(2rem, 6vw, 4rem) 0 1rem;
}

/* legal prose */
.prose { max-width: 66ch; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.6rem 0 .6rem;
}
.prose p { margin: .85rem 0; }
.prose .updated {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.prose .callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  padding: .9rem 1.2rem;
  border-radius: 0 10px 10px 0;
}

/* ---------- contact ---------- */
.contact-wrap {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  align-items: start;
  margin-top: 1.5rem;
}
@media (max-width: 44rem) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .45rem;
}
.field textarea, .field input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .85rem;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field textarea:focus-visible, .field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.9rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
@media (prefers-color-scheme: dark) { .btn { color: #10181a; } }
#form-status { margin: 1rem 0 0; font-size: .95rem; }
#form-status.ok { color: var(--accent-deep); }
#form-status.error { color: #b3261e; }
@media (prefers-color-scheme: dark) { #form-status.error { color: #ff9a8d; } }
.contact-aside p { margin: .5rem 0 1rem; color: var(--ink-soft); }
.contact-aside .direct {
  font-family: var(--serif);
  font-size: 1.15rem;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 60svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .5rem;
}
.notfound .big {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 1;
  margin: 0;
  color: var(--accent);
}
.notfound p { margin: .25rem 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 2.5rem;
}
.site-footer .roofline {
  width: 3.25rem;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 5rem;
  margin-bottom: 2.25rem;
}
.footer-cols h2 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--footer-soft);
  margin: 0 0 .75rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-cols a { color: var(--footer-ink); text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.site-footer .copyright {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--footer-soft);
  margin: 0;
}
