/*
Theme Name: Nordljus
Theme URI: https://wordpress.org/themes/nordljus/
Author: Nordljus Teman
Description: Ett ljust och luftigt tema för resebloggar och lokala guider.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nordljus
*/

:root {
  --ink: #1c2a36;
  --soft: #51606d;
  --faint: #8592a0;
  --line: #e4e9ee;
  --blue: #1f5f99;
  --yellow: #f2c230;
  --sky: #eef4f9;
  --sand: #faf7f0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 18px/1.7 "Source Serif Pro", Georgia, "Times New Roman", serif;
}
h1, h2, h3, .site-title, .menu, .footer-head, .card-meta, .crumbs, .btn, .tag, .city-facts dt {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--blue); }
a:hover { color: #154673; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: 2.6rem; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
p { margin: 0 0 1.1em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 9; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

.site-header { border-bottom: 3px solid var(--yellow); background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 18px; flex-wrap: wrap; }
.site-title { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.45rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-title small { font-weight: 400; font-size: .82rem; color: var(--faint); width: 100%; margin-left: 30px; margin-top: -8px; }
.flag-dot { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, var(--yellow) 0 35%, var(--blue) 36%); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.menu a { color: var(--ink); text-decoration: none; font-size: .98rem; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--blue); color: var(--blue); }

.site-main { padding-bottom: 60px; }

.welcome { background: var(--sky); padding: 64px 0 56px; }
.welcome-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.welcome .lead { font-size: 1.2rem; color: var(--soft); }
.welcome img { border-radius: 14px; }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: .95rem; }
.btn:hover { background: #154673; color: #fff; }

.section { padding-top: 54px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.section-head h2 { margin: 0 0 12px; }

.city-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.city-card { text-decoration: none; color: var(--ink); display: block; }
.city-card img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.city-card h3 { margin: .7em 0 .2em; font-size: 1.25rem; }
.city-card p { color: var(--soft); font-size: .98rem; margin: 0; }
.card-meta { color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-list h3 { margin: .2em 0 .3em; font-size: 1.3rem; }
.post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h3 a:hover { color: var(--blue); }
.post-list p { color: var(--soft); margin: 0; }

.page-top { padding: 52px 0 24px; }
.crumbs { font-size: .85rem; color: var(--faint); margin-bottom: 12px; }
.crumbs a { color: var(--faint); }
.page-top .lead { font-size: 1.18rem; color: var(--soft); }
.hero-img { border-radius: 14px; margin: 10px 0 34px; }

.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .5em; }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); color: var(--soft); font-style: italic; }
.tip { background: var(--sand); border-radius: 10px; padding: 16px 20px; margin: 1.5em 0; font-size: .98rem; }
.tip strong { color: var(--blue); }
.byline { color: var(--faint); font-size: .92rem; font-style: italic; }
.tag { display: inline-block; background: var(--sky); color: var(--blue); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 700; margin-right: 6px; text-decoration: none; }

.form-wrap { max-width: 600px; }
.form-wrap .field { margin-bottom: 16px; }
.form-wrap label { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-wrap input, .form-wrap textarea { width: 100%; border: 1px solid #c8d3dd; border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 1rem; }
.form-wrap textarea { min-height: 150px; }
.form-wrap button { background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 12px 22px; font-weight: 700; cursor: pointer; font-size: .95rem; }
.small-note { color: var(--faint); font-size: .88rem; margin-top: 12px; }

.notfound { padding: 90px 0 40px; text-align: center; }
.notfound h1 { font-size: 3.4rem; color: var(--blue); }

.site-footer { background: #13324e; color: #c9d6e2; margin-top: 50px; padding: 44px 0 20px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.footer-title { color: #fff; font-weight: 800; font-size: 1.2rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.footer-head { color: var(--yellow); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e6eef5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #28496a; margin-top: 26px; padding-top: 14px; font-size: .82rem; color: #93a8bc; }

@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .city-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  .city-cards, .footer-grid { grid-template-columns: 1fr; }
  .menu ul { gap: 14px; }
}
