/* FotosWiki.net — recreated static stylesheet
   Faithful modernization of the original 2012-2021 layout:
   centered 1200px shell, header with logo strip, left category menu,
   white content column, photo-tile grids. */

:root {
  --bg: #e8e6e0;
  --panel: #ffffff;
  --ink: #333333;
  --ink-soft: #666666;
  --line: #dfdfdf;
  --brand: #2a6496;
  --brand-dark: #1d4568;
  --accent: #c9a227;
  --tile-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.015) 0 2px, transparent 2px 6px);
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(#ffffff, #f2f0ea);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 10px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--brand-dark);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { text-decoration: none; color: var(--brand); }
.logo .cam {
  width: 30px; height: 30px;
  margin-right: 8px;
  align-self: center;
  flex: none;
}
.logo em { font-style: normal; color: var(--accent); }
.logo small {
  font-family: Verdana, sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  margin-left: 10px;
  letter-spacing: 0;
  font-weight: 400;
}

.site-title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
  font-style: italic;
}

.header-spacer { flex: 1; }

.breadcrumbs {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-top: 1px solid #eceae4;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "\00BB"; margin: 0 6px; color: #b5b2aa; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0 30px;
  align-items: start;
}

/* ---------- Left menu ---------- */
.menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.menu h2 {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(var(--brand), var(--brand-dark));
}
.menu ul { list-style: none; margin: 0; padding: 6px 0; }
.menu a {
  display: block;
  padding: 7px 14px;
  color: var(--ink);
  border-left: 3px solid transparent;
}
.menu a:hover, .menu a:focus {
  background: #f4f8fb;
  border-left-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}
.menu a[aria-current="true"] {
  background: #eef4f9;
  border-left-color: var(--accent);
  font-weight: 700;
  color: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(var(--brand), var(--brand-dark));
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

/* ---------- Content ---------- */
.content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 26px 30px;
  min-width: 0;
}

.content h1, .content > h2.page-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-family: Georgia, serif;
  color: var(--brand-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.section-bar {
  margin: 26px 0 14px;
  padding: 8px 14px;
  background: repeating-linear-gradient(-55deg, #f4f2ec 0 6px, #edebe4 6px 12px);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.section-bar a { color: var(--brand-dark); }

.article-body p { margin: 0 0 14px; text-align: justify; }

.lead-figure {
  float: right;
  margin: 0 0 14px 18px;
  max-width: 300px;
}
.lead-figure img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--tile-shadow);
}
.lead-figure figcaption { font-size: 11px; color: var(--ink-soft); padding-top: 4px; }

.category-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #eef4f9;
  border: 1px solid #d3e2ee;
  color: var(--brand-dark);
  border-radius: 3px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

/* ---------- Photo tile grids ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0;
}
.tile {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #f7f6f2;
  box-shadow: var(--tile-shadow);
}
.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
a.tile:hover img { transform: scale(1.04); }
.tile .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* home/blog summary blocks */
.block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 14px 0;
}
.block-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--tile-shadow);
}
.block-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.block-card .t {
  display: block;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13px;
}

/* category listing rows */
.listing { margin: 10px 0; }
.listing-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--line);
}
.listing-row:last-child { border-bottom: 0; }
.listing-row img {
  width: 150px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.listing-row h3 { margin: 0 0 6px; font-size: 16px; }
.listing-row p { margin: 0; color: var(--ink-soft); }

/* ---------- Photo page ---------- */
.photo-meta {
  background: #f8f7f3;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 12px;
}
.photo-meta p { margin: 4px 0; }
.photo-frame { text-align: center; margin: 18px 0; }
.photo-frame img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.photo-actions { text-align: center; margin: 12px 0 4px; }
.btn {
  display: inline-block;
  padding: 8px 18px;
  margin: 0 6px 8px;
  background: linear-gradient(var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn.secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
}

.res-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.res-list a, .res-list span {
  display: inline-block;
  padding: 5px 12px;
  background: #f1efe9;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  color: var(--ink);
}
.note { font-size: 12px; color: var(--ink-soft); }

/* related links */
.related-list { list-style: square; padding-left: 22px; }
.related-list li { margin: 4px 0; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 24px 0 4px;
}
.pagination a, .pagination span {
  min-width: 34px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
}
.pagination .current {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
  font-weight: 700;
}

/* ---------- Blog rows ---------- */
.blog-article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.blog-article:last-of-type { border-bottom: 0; }
.blog-article h2 { margin: 0 0 10px; font-size: 19px; font-family: Georgia, serif; }
.blog-article .thumb {
  float: right;
  margin: 0 0 12px 16px;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; max-width: 460px; }
.form-grid label { font-weight: 700; font-size: 12px; display: block; margin-bottom: 4px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid #c9c6bd;
  border-radius: 3px;
  background: #fff;
}
.form-msg { display: none; padding: 10px 14px; border-radius: 4px; margin-top: 12px; font-size: 12px; }
.form-msg.ok { display: block; background: #e7f4e4; border: 1px solid #b4d9ac; color: #2f6627; }
.form-msg.err { display: block; background: #fbeaea; border: 1px solid #e3b3b3; color: #8f2525; }

/* ---------- User / wall ---------- */
.user-grid { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 22px; }
.user-card { text-align: center; }
.user-card img.avatar {
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.wall-post {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: #fdfdfb;
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 14px;
  align-items: start;
}
.wall-post img { border-radius: 3px; border: 1px solid var(--line); }
.wall-post .date { font-size: 11px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2f2d28;
  color: #cfcdc5;
  margin-top: 10px;
  font-size: 12px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 10px 30px;
}
.site-footer a { color: #e8e2ce; }
.site-footer .logo { font-size: 22px; color: #fff; }
.site-footer .logo em { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-content: start; margin: 0; padding: 0; list-style: none; }
.footer-legal {
  border-top: 1px solid #46443d;
  padding: 12px 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .menu nav { display: none; }
  .menu nav.open { display: block; }
  .menu { border: 0; background: transparent; }
  .menu nav { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; }
  .tile-grid, .block-grid { grid-template-columns: repeat(2, 1fr); }
  .user-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .content { padding: 16px 14px 22px; }
  .tile-grid, .block-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .listing-row { grid-template-columns: 110px minmax(0,1fr); gap: 10px; }
  .listing-row img { width: 110px; }
  .lead-figure { float: none; margin: 0 auto 14px; }
  .blog-article .thumb { float: none; width: 100%; margin: 0 0 10px; }
  .logo { font-size: 24px; }
  .logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tile img { transition: none; }
}
