/* ==========================================================================
   Homepage — aliyadaniels.ca/
   Loaded after global.css.
   ========================================================================== */

:root {
  /* brand palette comes from global.css */
  --ink-soft: #5B5352;
  --rule: rgba(60, 52, 51, 0.24);

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { height: auto; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.06; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; }

.btn {
  display: inline-block;
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.7rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--tangerine); color: var(--graphite); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }

/* Hero: one calm, generous composition */
.hero { position: relative; padding-block: clamp(16px, 3vw, 40px) clamp(72px, 10vw, 128px); overflow: clip; }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  column-gap: clamp(36px, 7vw, 112px);
  align-items: center;
}
.intro .tagline { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; }
.actions { margin-top: 32px; }
.intro .summary { margin-top: 26px; display: grid; gap: 16px; max-width: 46ch; font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.16rem); line-height: 1.65; }

.art { position: relative; width: 100%; aspect-ratio: 1 / 1.16; }
.art > * { position: absolute; }
.a-block { left: 16%; top: 7%; width: 80%; height: 88%; background: var(--soft-blue); }
.a-blush { left: 3%; top: 26%; width: 44%; height: 62%; background: var(--cream); z-index: 0; }
.a-block { z-index: 1; background: var(--soft-blue) url(../images/home/texture-blue.jpg) center/cover; }
.a-burst { z-index: 4; left: 5%; top: 5%; width: 12%; opacity: .85; pointer-events: none; }
h1 em, .list h2 em {
  background: linear-gradient(transparent 64%, rgba(208, 176, 161, 0.34) 64%, rgba(208, 176, 161, 0.34) 93%, transparent 93%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: 0.06em;
}
.work .row:hover .name { color: var(--tangerine); }
.ph { overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* fine film grain over photos, for an organic, printed feel */
.grain { position: absolute; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.a-blush::after, .a-block::after { opacity: .5; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; mix-blend-mode: multiply; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.a-arch { left: 24%; top: 0; width: 62%; aspect-ratio: 4 / 5.3; border-radius: 999px 999px 0 0; z-index: 2; }
.a-arch img { object-position: 50% 38%; }
.a-circle { left: 0; bottom: 3%; width: 36%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--bone); z-index: 3; }
.a-circle img { object-position: 45% 50%; filter: contrast(1.02); }
.a-flame { z-index: 4; right: -3%; bottom: 8%; width: 21%; pointer-events: none; }
.a-spiral { z-index: 4; left: 80%; top: 2%; width: 15%; pointer-events: none; opacity: .9; }

/* Work with Aliya */
.work { padding-bottom: clamp(40px, 5vw, 64px); }
.work .wrap { max-width: 900px; }
.work-title { display: block; margin-bottom: 14px; font-size: 1rem; }
.work li { border-top: 1px solid var(--rule); }
.work li:last-child { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding-block: 22px; text-decoration: none; }
.row .name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.12; }
.badge { display: inline-block; vertical-align: middle; margin-left: 14px; transform: translateY(-4px); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tangerine); border: 1px solid var(--tangerine); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.row .desc { grid-column: 1; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.45; }
.row .go { grid-column: 2; grid-row: 1 / span 2; font-family: var(--mono); font-size: 1.55rem; line-height: 1; transition: transform 0.2s ease, color 0.2s ease; }
a.row:hover .go { transform: translateX(6px); color: var(--tangerine); }
a.row:hover .name { font-style: italic; }
.tag { grid-column: 2; grid-row: 1 / span 2; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--graphite); border-radius: 999px; padding: 6px 12px; white-space: nowrap; display: inline-block; transition: border-color 0.2s ease, color 0.2s ease; }
a.row:hover .tag { border-color: var(--tangerine); color: var(--tangerine); }

/* Kind words */
.kind { position: relative; overflow: clip; padding-block: clamp(4px, 1vw, 12px) clamp(56px, 8vw, 104px); }
.kind .wrap { max-width: 900px; position: relative; }
.kind .mark { z-index: 0; }
.kind .m-dot { width: 3%; aspect-ratio: 1; border-radius: 50%; background: var(--tangerine); left: -3%; top: -6%; }
.kind blockquote, .kind figcaption, .kind .label { position: relative; z-index: 1; }
.kind blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.36; text-wrap: pretty; }
.kind figcaption { margin-top: 22px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.kind figcaption .who { color: var(--graphite); }

/* Email list */
.list { background: var(--soft-blue) url(../images/home/texture-blue.jpg) center/cover; padding-block: clamp(56px, 8vw, 104px); }
.list .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.list h2 { margin-bottom: 18px; }
.list p.blurb { max-width: 42ch; }
form.signup { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.field input { width: 100%; font: inherit; color: var(--graphite); background: var(--bone); border: 1px solid var(--graphite); border-radius: 0; padding: 0.95rem 1rem; }
.field input::placeholder { color: #7a7271; }
.signup .fine { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; line-height: 1.6; }
.status { min-height: 1.6em; font-family: var(--mono); font-size: 0.78rem; line-height: 1.5; }

/* Flodesk signup embed — restyled to match the site.
   Flodesk injects its own CSS; the #join prefix out-ranks it. */
#join [data-ff-el="root"] { background: transparent; }
#join [data-ff-el="root"] [class$="__container"] { background: transparent; max-width: none; margin: 0; }
#join [data-ff-el="root"] [class$="__form"] { padding: 0; text-align: left; font-family: var(--sans); color: var(--graphite); line-height: 1.5; }
#join [data-ff-el="root"] [class$="__title"] { display: none; }
#join [data-ff-el="root"] [class$="__subtitle"] { margin: 0 0 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); text-align: left; }
#join [data-ff-el="root"] .fd-form-content,
#join [data-ff-el="root"] [class$="__fields"] { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 14px; margin: 0; max-width: none; }
#join [data-ff-el="root"] .fd-form-group { margin: 0; max-width: none; min-width: 0; }
#join [data-ff-el="root"] .fd-form-control {
  height: auto; font-family: var(--sans); font-size: 1rem; line-height: 1.5; letter-spacing: 0;
  color: var(--graphite); background: var(--bone); border: 1px solid var(--graphite); border-radius: 0; padding: 0.95rem 1rem;
}
#join [data-ff-el="root"] .fd-form-control:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }
#join [data-ff-el="root"] .fd-form-label {
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; letter-spacing: 0;
  color: #7a7271; padding: 0.95rem 1rem; border: 1px solid transparent;
}
#join [data-ff-el="root"] [class$="__footer"] { margin: 4px 0 0; text-align: left; }
#join [data-ff-el="root"] [class*="__button"] {
  width: auto; display: inline-block;
  background: var(--graphite); color: var(--bone); border: 0; border-radius: 999px;
  font-family: var(--wide); font-stretch: 125%; font-weight: 600; font-size: 0.78rem; line-height: 1.2;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 1.05rem 1.7rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#join [data-ff-el="root"] [class*="__button"]:hover { background: var(--tangerine); color: var(--graphite); }
#join [data-ff-el="root"] [class*="__button"]:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }
#join [data-ff-el="root"] [class$="__success-message"] { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--graphite); text-align: left; }
#join [data-ff-el="root"] .fd-form-error { font-family: var(--mono); font-size: 0.78rem; }

footer { background: var(--graphite) url(../images/home/texture-graphite.jpg) center/cover; color: var(--bone); padding-block: 44px 38px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
footer .emblem { width: 34px; filter: brightness(0) invert(1); opacity: 0.9; }
footer .who { display: flex; align-items: center; gap: 18px; }
footer .who span, footer a { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
footer a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
footer a:hover { color: var(--blush); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .art { max-width: 460px; width: 92%; margin-inline: auto; }
  .list .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .row .go { transition: none; } }
