/* casalog.se: "warm paper" (design 3a). Ink on sand-toned paper, rounded cards and pills, thin warm
   lines, one red for what is clicked, Archivo ExtraBold headings. */

@font-face { font-family: Archivo; font-weight: 400; font-display: swap; src: url(/assets/archivo-regular.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(/assets/archivo-bold.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(/assets/archivo-extrabold.woff2) format("woff2"); }

:root {
  --ground: #F7F3EE;
  --surface: #EFE8DF;
  --card: #FFFDF9;
  --ink: #2B2723;
  --soft: #6F6860;
  --line: #E3DBD0;
  --wash: #F1EBE3;
  --sand: #C9B49A;
  --accent: #C8361F;
  --accent-deep: #A92C18;
  --rule: 1px solid var(--line);
  --r: 14px;
  --shadow: 0 10px 30px rgba(80, 60, 40, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 Archivo, -apple-system, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
strong { font-weight: 700; }

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 2; }
.skip:focus { left: 0; }

/* Header: the mark and the name, the store on the right. */
.top { border-bottom: var(--rule); background: var(--ground); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.mark { width: 2rem; height: 2rem; flex: none; }
.top-store { font-weight: 700; color: var(--ink); text-decoration: none; border: 1px solid var(--sand); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.95rem; white-space: nowrap; }
.top-store:hover { background: var(--wash); color: var(--ink); }
@media (max-width: 30rem) { .top-store { display: none; } }

/* Hero: the heading and the lead, with a screen of the app. */
.hero { border-bottom: var(--rule); }
.hero-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; padding-top: 4rem; padding-bottom: 4rem; } }
.hero h1 { margin-bottom: 1.25rem; hyphens: auto; overflow-wrap: break-word; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; max-width: 38rem; margin: 0 0 1.75rem; }
.hint { color: var(--soft); font-size: 0.95rem; margin: 0.75rem 0 0; max-width: 38rem; }
.crumbs { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 1rem; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* The store button: white on the red, large and bold enough to read on it. */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 16rem; background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; padding: 1rem 1.4rem; border-radius: 999px; }
.button::after { content: "→"; font-weight: 400; }
.button:hover { background: var(--accent-deep); color: #fff; }

/* A screen of the app: a rounded phone-sized frame on a sand panel. */
.phone { margin: 0; justify-self: center; width: min(19rem, 78vw); position: relative; }
.phone::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--surface); border-radius: 28px; }
.phone img { position: relative; border: 1px solid var(--line); border-radius: 22px; background: var(--card); width: 100%; box-shadow: var(--shadow); }
.shot { width: min(16rem, 70vw); margin: 2.5rem auto 3.5rem; }
@media (min-width: 62rem) { .content .shot { float: right; clear: right; margin: 0.5rem 0 2.5rem 3rem; } }

/* Body text: one column for reading, the screens beside it on wide screens. */
.content { padding-top: 3rem; padding-bottom: 3.5rem; }
.content::after { content: ""; display: block; clear: both; }
.content > h2, .content > h3, .content > p, .content > ul { max-width: 40rem; }
.content h2 { margin: 2.75rem 0 1rem; padding-top: 1rem; border-top: var(--rule); }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 2rem 0 0.5rem; }
.content p { margin: 0 0 1rem; }
.content ul { margin: 0 0 1.25rem; padding: 0; list-style: none; border-top: var(--rule); }
.content li { padding: 0.6rem 0 0.6rem 1.5rem; border-bottom: var(--rule); position: relative; }
.content li::before { content: ""; position: absolute; left: 0.1rem; top: 1.1rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sand); }
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.5rem; }

/* What CasaLog does: rounded cards, each numbered in a sand circle. */
.features { border-top: var(--rule); padding: 3rem 0 3.5rem; }
.features h2 { margin-bottom: 1.75rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; height: 100%; padding: 1.25rem 1.35rem 1.5rem; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card:hover { border-color: var(--sand); color: var(--ink); }
.card:hover h3 { text-decoration: underline; }
.card-num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--wash); color: var(--ink); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--soft); font-size: 0.98rem; }

/* The call to get the app: a sand panel with rounded corners. */
.cta { padding: 0 0 3.5rem; }
.cta > .wrap, .buyer-band > .wrap { background: var(--surface); border-radius: calc(var(--r) * 1.6); padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 40rem) { .cta > .wrap, .buyer-band > .wrap { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (max-width: 75rem) { .cta > .wrap, .buyer-band > .wrap { margin-left: 0.75rem; margin-right: 0.75rem; } }
.cta > .wrap { padding-top: 2.75rem; padding-bottom: 3rem; }
.cta h2 { margin-bottom: 1rem; }
.cta p { max-width: 44rem; font-size: 1.15rem; margin: 0 0 1.75rem; }
.cta .hint { color: var(--soft); }

/* Footer: what it does, help and the languages, each by its own name. */
.foot { border-top: var(--rule); padding: 2.5rem 0 2rem; font-size: 0.98rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .foot-grid { grid-template-columns: 1.3fr 1.2fr 1fr 0.8fr; } }
.foot h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 0.6rem; margin-bottom: 0.6rem; border-bottom: var(--rule); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 0.2rem 0; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot a[aria-current] { font-weight: 800; }
.foot a[aria-current]::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); margin-right: 0.45rem; }
.foot-brand p { color: var(--soft); max-width: 20rem; margin: 0.75rem 0 0; }
.fine { color: var(--soft); font-size: 0.85rem; margin-top: 2rem; padding-top: 1rem; border-top: var(--rule); }

/* On the Swedish home page: the buyer test, before buying a home. */
.buyer-band { border-bottom: 0; background: transparent; padding: 1.5rem 0 1rem; }
.buyer-grid { display: grid; gap: 1.25rem; padding-top: 2.5rem; padding-bottom: 2.75rem; }
@media (min-width: 52rem) { .buyer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }
.buyer-band .lead { margin-bottom: 1.25rem; }
.buyer-guides { padding-bottom: 2.5rem; }
.buyer-guides h3 { margin-bottom: 0.75rem; }
.buyer-guides ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem 2rem; }
@media (min-width: 52rem) { .buyer-guides ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buyer-guides a { font-weight: 700; }
