/* billedearkivet.dk — common styles, linked from template/base.twig */

:root {
  --ink: #282315;
  --green: #18251a;
  --cream: #f8f0dc;
  --paper: #fff8e8;
  --rust: #9e3e1e;
  --muted: #786d56;
  --line: #dfd2b5;
  --serif: lato, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--serif);
}

a { color: inherit; }

.site-header {
  min-height: 70px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 32px;
  color: #f8f0dc;
  background: var(--green);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  font-size: 30px;
  line-height: 1;
  color: #c9bd8c;
}

.brand-name {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -.4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav a {
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .35px;
}

.nav a:first-child {
  text-decoration: underline;
  text-underline-offset: 5px;
  color: #d7c995;
}

.contribute {
  padding: 10px 13px;
  border: 1px solid #ad5933;
  border-radius: 4px;
  background: #873719;
  color: #fff3dc;
  font: 12px var(--serif);
  text-decoration: none;
  white-space: nowrap;
}

.nav-user {
  color: #d7c995;
  font-size: 12px;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* Push the auth status (and everything after it) to the right,
   so the nav stays left-aligned next to the brand */
.nav-login,
.nav-user {
  margin-left: auto;
}

.nav-login,
.nav-logout {
  color: #f8f0dc;
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .35px;
}

.nav-login:hover,
.nav-logout:hover { text-decoration: underline; text-underline-offset: 5px; }

.nav-logout {
  padding: 6px 10px;
  border: 1px solid #5a4a33;
  border-radius: 4px;
}

.topmenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 10px 5%;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.topmenu a {
  color: var(--rust);
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .3px;
}

.topmenu a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero {
  min-height: 290px;
  display: flex;
  align-items: center;
  padding: 34px 5%;
  color: #fff8e8;
  background:
    linear-gradient(90deg, rgba(14, 17, 12, .94) 0%, rgba(14, 17, 12, .78) 35%, rgba(14, 17, 12, .12) 75%),
    url("/images/main-street.jpg") center 52% / cover no-repeat,
    #5a5038;
}

.hero-copy { max-width: 390px; }

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.04;
  letter-spacing: -.8px;
}

.hero p {
  max-width: 310px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

.button {
  display: inline-block;
  padding: 11px 15px;
  border-radius: 4px;
  background: var(--rust);
  color: #fff7e5;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 2px 5px #0003;
}

.button span { margin-left: 8px; }

.recent {
  max-width: 1320px;
  margin: 0 auto;
  padding: 23px 5% 40px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.heading-flourish {
  margin-right: 8px;
  color: #ad8b44;
  font-size: 19px;
}

.view-all {
  color: #794024;
  font-size: 12px;
  text-underline-offset: 3px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.story-card {
  overflow: hidden;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 3px 8px rgba(54, 42, 17, .12);
}

.story-card img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  filter: sepia(.42) saturate(.75) contrast(1.04);
  border-radius: 5px;
  background: #b8aa86;
}

.story-card h3 {
  margin: 10px 2px 6px;
  font-size: 16px;
}

.story-meta,
.story-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px 7px;
  color: #5e543f;
  font-size: 11px;
}

.story-credit { margin-bottom: 2px; }

.avatar {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #c5b78e;
  color: #342d1d;
  font-size: 10px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 24px 5%;
  color: #f8f0dc;
  background: var(--green);
}

.site-footer .copyright {
  color: #b9ad89;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.site-footer a {
  color: #d7c995;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: .3px;
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 5%;
  }

  .brand { width: 50%; }
  .nav { gap: 17px; }
  .nav a { font-size: 10px; }
  .contribute { margin-left: auto; }

  .hero {
    min-height: 300px;
    background-position: center;
  }

  .story-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .site-header { justify-content: space-between; }
  .nav { order: 2; width: 100%; justify-content: space-between; }
  .contribute { position: absolute; top: 17px; right: 5%; }
  .brand-name { font-size: 18px; }
  .hero { min-height: 280px; padding: 28px 6%; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card img { height: 190px; }
  .recent { padding-inline: 6%; }
}
