/* Aether & Aperture — Site-wide visual standard
   Learning page is the design reference for the site's colors, typography,
   header, page background, cards, and footer. Page-specific layouts remain
   page-specific; this file supplies the shared visual language. */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --page-bg: #e7f3ff;
  --header-bg: #d6cdff;
  --card-bg: #f6edf2;
  --border: #eaeaea;
  --text: #17151c;
  --muted: #34313a;
  --heading: #17151c;
  --separator: #d9d5dc;
  --site-header-height: 96px;

  /* Review cards always use the shared Learning-page card tone.
     Review type colors are reserved for the small type badges. */
  --review-card-bg: var(--card-bg);
  --review-camera-tag-bg: #e5e0ff;
  --review-camera-tag-text: #4c3ba2;
  --review-lens-tag-bg: #e0f2fe;
  --review-lens-tag-text: #0077b6;
  --review-tripod-tag-bg: #f8eaea;
  --review-tripod-tag-text: #7a1f1f;
  --review-monopod-tag-bg: #eee8f7;
  --review-monopod-tag-text: #6b4e9b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page-bg);
  color: var(--text);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

/* Readability and keyboard access: strong contrast, generous leading, visible focus. */
:where(p, li, label, input, select, textarea, button) { line-height: 1.65; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #33216f; outline-offset: 3px;
}
::selection { background: #d6cdff; color: #17151c; }
img { max-width: 100%; }
a { color: inherit; }

/* Shared header / navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 26px; min-height: 96px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.site-logo-title { margin: 0; padding: 0; display: flex; align-items: center; }
.site-logo-link { display: flex; align-items: center; width: min(19vw, 250px); }
.site-logo { display: block; width: min(19vw, 250px); height: auto; max-height: 76px; object-fit: contain; border: 0; }
.site-nav { display: flex; gap: clamp(12px, 1.6vw, 23px); align-items: center; }
.site-nav a,
.help-dropdown a,
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: "Lora", Georgia, serif;
}
.site-nav a { font-weight: 500; font-size: 17px; }
.site-nav a.current,
.site-nav a.active,
.mobile-nav a.current,
.mobile-nav a.active { font-weight: 700; }
.help-container { position: relative; display: inline-block; }
.help-link { padding-bottom: 15px; }
.help-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 150px;
  padding: 5px 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,.1);
  z-index: 1001;
}
.help-dropdown a { display: block; padding: 10px 15px; font-size: 14px; font-weight: 500; }
.help-dropdown a:hover { background: #eae5ea; }
.help-container:hover .help-dropdown { display: block; }
.mobile-menu-button {
  display: none;
  padding: 9px 11px;
  border: 1px solid #c9c1d2;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: 600 22px/1 "Work Sans", Arial, sans-serif;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 20px 16px;
  background: var(--header-bg);
  border-bottom: 1px solid #cfc7d8;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 13px 8px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-weight: 500;
  font-size: 17px;
}
.mobile-help { display: flex; justify-content: space-between; align-items: center; }
.mobile-help-link { flex: 1; }
.mobile-help-toggle {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  color: var(--text);
  font: 18px/1 "Work Sans", Arial, sans-serif;
  cursor: pointer;
}
.mobile-help-submenu { display: none; padding-left: 14px; }
.mobile-help-submenu.open { display: block; }
.mobile-help-submenu a { font-weight: 500; }

/* Shared page structure */
.site-main,
main {
  max-width: 1100px;
  /* Reserve the measured fixed-header height inside the content area. */
  margin: 0 auto;
  padding: calc(30px + var(--site-header-height)) 30px 30px;
  background: var(--page-bg);
}
.site-main h2,
.page-title {
  margin: 0 0 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  color: var(--heading);
  font: 600 30px/1.25 "Lora", Georgia, serif;
}
.intro {
  max-width: 850px;
  margin: 0 0 28px;
  color: #303039;
  font: 18px/1.8 "Work Sans", Arial, sans-serif;
}

/* Learning is the card-color reference for the entire site. */
.site-card,
.coming-soon-card,
.news-card,
.review-card,
.qa-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,.02);
}
.coming-soon-card { padding: 45px 30px; text-align: center; }
.coming-soon-card h3 {
  margin: 0 0 15px;
  color: #111;
  font: 600 28px/1.3 "Lora", Georgia, serif;
}
.coming-soon-card p {
  max-width: 700px;
  margin: 0 auto;
  color: #34313a;
  font: 17px/1.6 "Work Sans", Arial, sans-serif;
}

/* News */
.news-main { min-height: 60vh; }
.news-filters,
.review-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.news-filter-label,
.review-filter-label { color: #34313a; font: 600 13px "Work Sans", Arial, sans-serif; }
#news-tag-filter,
#news-source-filter,
#reviews-tag-filter,
#reviews-source-filter,
#news-update-status,
#news-filter-count,
#reviews-update-status,
#reviews-filter-count {
  color: #45414b;
  font: 14px "Work Sans", Arial, sans-serif;
}
#news-update-status,
#reviews-update-status { margin-top: -15px; margin-bottom: 16px; }
.automated-news-feed,
.automated-review-feed {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}
#feed-loader,
#review-feed-loader { color: #393640; font-style: italic; }
.news-date-separator,
.review-date-separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 2px;
  color: #34313a;
  font: 600 13px/1.2 "Work Sans", Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.news-date-separator::before,
.news-date-separator::after,
.review-date-separator::before,
.review-date-separator::after {
  content: "";
  height: 1px;
  background: var(--separator);
  flex: 1;
}
.news-date-separator span,
.review-date-separator span { white-space: nowrap; }

/* News card layout — shared colors, original content structure retained. */
.news-card {
  margin-bottom: 20px;
  padding: 20px;
  overflow: hidden;
}
.news-card-content { display: flex; align-items: flex-start; gap: 22px; }
.news-card.thumb-right .news-card-content { flex-direction: row-reverse; }
.news-thumbnail-wrap { flex: 0 0 210px; width: 210px; }
.news-thumbnail {
  display: block;
  width: 210px;
  height: 140px;
  object-fit: cover;
  border-radius: 7px;
  background: #eee;
}
.news-card-copy { flex: 1 1 auto; min-width: 0; }
.news-source-badge,
.review-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font: 600 12px "Work Sans", Arial, sans-serif;
}
.news-source-badge { margin-bottom: 10px; }
.news-date,
.review-date { margin-bottom: 8px; color: #45414b; font: 14px "Work Sans", Arial, sans-serif; }
.news-title,
.review-title {
  margin: 0 0 10px;
  color: var(--heading);
  font: 600 21px/1.35 "Lora", Georgia, serif;
}
.news-title a,
.review-title a { color: var(--heading); text-decoration: none; }
.news-description,
.review-description { margin: 0; color: #34313a; font: 15px/1.55 "Work Sans", Arial, sans-serif; }
.news-story-link,
.review-story-link { margin-top: 12px; }
.news-story-link a,
.review-story-link a { text-decoration: none; font: 600 13px "Work Sans", Arial, sans-serif; }

/* News source accents */
.news-source-camera { background: #e5e0ff; color: #4c3ba2; }
.news-source-sony { background: #e0f2fe; color: #0077b6; }
.news-source-nikon { background: #fef9ec; color: #a06b00; }
.news-source-apple { background: #f5f5f7; color: #111; }
.news-source-google { background: #edf4ff; color: #4285f4; }
.news-source-samsung { background: #e8eaff; color: #1428a0; }
.news-source-om { background: #eee8f7; color: #6b4e9b; }
.news-source-fujifilm { background: #f8eaea; color: #7a1f1f; }
.news-source-default { background: #eee; color: #393640; }

/* Reviews — preserves the Reviews page's preferred image/card layout. */
.review-card {
  background: var(--review-card-bg);
  margin-bottom: 20px;
  padding: 20px;
  overflow: hidden;
}
.review-card-content { display: flex; align-items: flex-start; gap: 22px; }
.review-card.thumb-right .review-card-content { flex-direction: row-reverse; }
.review-thumbnail-wrap { flex: 0 0 auto; width: auto; max-width: 320px; }
.review-thumbnail {
  display: block;
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 320px;
  border-radius: 7px;
  background: #eee;
  object-fit: contain;
}
.review-card-copy { flex: 1 1 auto; min-width: 0; }
.review-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.review-source-badge { background: #eee !important; color: #393640 !important; }
.review-badge.review-type-camera { background: var(--review-camera-tag-bg); color: var(--review-camera-tag-text); }
.review-badge.review-type-lens { background: var(--review-lens-tag-bg); color: var(--review-lens-tag-text); }
.review-badge.review-type-tripod { background: var(--review-tripod-tag-bg); color: var(--review-tripod-tag-text); }
.review-badge.review-type-monopod { background: var(--review-monopod-tag-bg); color: var(--review-monopod-tag-text); }
.review-card.review-type-camera .review-story-link a { color: #4c3ba2; }
.review-card.review-type-lens .review-story-link a { color: #0077b6; }
.review-card.review-type-tripod .review-story-link a { color: #7a1f1f; }
.review-card.review-type-monopod .review-story-link a { color: #6b4e9b; }

/* Glossary — same site card treatment, with its established image/text layout. */
.letter-section {
  width: 100%;
  margin: 38px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  scroll-margin-top: calc(var(--site-header-height) + 15px);
}
.letter-section::before,
.letter-section::after { content: ""; height: 1px; background: var(--separator); flex: 1; }
.letter-section h2 {
  margin: 0;
  min-width: 42px;
  padding: 0;
  border: 0;
  text-align: center;
  color: #333;
  font: 700 20px/1 "Lora", Georgia, serif;
}
.qa-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  margin: 0 0 16px;
}
.qa-card > .qa-copy { order: 1; flex: 1 1 auto; min-width: 0; }
.qa-card > .qa-thumb { order: 2; flex: 0 0 150px; width: 150px; height: 105px; margin: 0; }
.qa-thumb {
  border: 1px solid #ded9e5;
  border-radius: 7px;
  overflow: hidden;
  background: #f3f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qa-card h3 {
  margin: 0 0 9px;
  color: var(--heading);
  font: 600 21px/1.35 "Lora", Georgia, serif;
}
.qa-card h3::before { content: "Q. "; color: #5a4b9b; }
.qa-card p { margin: 0; color: #34313a; font: 15px/1.7 "Work Sans", Arial, sans-serif; }
.answer-label,
.term { font-weight: 700; }
.formula {
  display: inline-block;
  padding: 5px 8px;
  background: #f4f1f8;
  border: 1px solid #e1dce7;
  border-radius: 5px;
  font-family: "Lora", Georgia, serif;
}
.scale { display: flex; gap: 5px; align-items: end; margin-top: 15px; height: 85px; }
.scale span {
  flex: 1;
  background: #e8e3ef;
  border-radius: 3px 3px 0 0;
  text-align: center;
  padding-top: 6px;
  color: #34313a;
  font: 11px "Work Sans", Arial, sans-serif;
}
.scale span:nth-child(1){height:28px}
.scale span:nth-child(2){height:38px}
.scale span:nth-child(3){height:49px}
.scale span:nth-child(4){height:61px}
.scale span:nth-child(5){height:75px}
.placeholder-note { margin: -8px 0 18px; color: #45414b; font: 15px/1.6 "Work Sans", Arial, sans-serif; }

/* Footer */
.site-footer,
.translation-footer {
  padding: 22px 30px 30px;
  background: var(--page-bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer p,
.footer-copyright { margin: 0; color: #393640; font: 14px "Work Sans", Arial, sans-serif; }
.image-license-citation { margin-top: 8px !important; color: #45414b !important; font-size: 14px !important; }
.image-license-citation cite { font-style: italic; }
.translation-footer label { display: block; margin-bottom: 8px; color: #34313a; font: 600 13px "Work Sans", Arial, sans-serif; }
.footer-copyright { margin-top: 16px; }

@media (max-width: 980px) {
  :root { --site-header-height: 72px; }
  .site-header { padding: 10px 16px; }
  .site-logo-link, .site-logo { width: auto; }
  .site-logo { height: 52px; max-height: 60px; }
  .site-nav.desktop-nav { display: none; }
  .mobile-menu-button { display: block; }
  .mobile-nav { padding-left: 16px; padding-right: 16px; }
  .site-main, main { margin: 0 auto; padding: calc(18px + var(--site-header-height)) 18px 18px; }
  .site-main h2, .page-title { font-size: 25px; }
  .intro { font-size: 17px; line-height: 1.75; }
  .coming-soon-card { padding: 35px 20px; }
  .news-card, .review-card, .qa-card { padding: 15px; }
  .news-card-content,
  .news-card.thumb-right .news-card-content,
  .review-card-content,
  .review-card.thumb-right .review-card-content { flex-direction: column; gap: 14px; }
  .news-thumbnail-wrap, .news-thumbnail { width: 100%; max-width: none; }
  .news-thumbnail { height: 190px; }
  .review-thumbnail-wrap, .review-thumbnail { width: 100%; max-width: 320px; }
  .review-thumbnail { max-height: 320px; }
  .automated-news-feed, .automated-review-feed { gap: 12px; }
  .news-date-separator, .review-date-separator { gap: 9px; font-size: 11px; }
  .qa-card { gap: 14px; }
  .qa-card > .qa-copy { order: 1; }
  .qa-card > .qa-thumb { order: 2; width: 100%; height: 180px; flex: 0 0 auto; }
  .letter-section { margin-top: 30px; }
  .translation-footer, .site-footer { padding: 20px 16px 26px; }
}

.news-thumbnail-wrap.is-hidden { display: none; }

/* Simple content cards used by About and Contact. */
.page-content-card { padding: 30px; }
.page-content-card h3 {
  margin: 0 0 16px;
  color: var(--heading);
  font: 600 24px/1.35 "Lora", Georgia, serif;
}
.page-content-card p {
  margin: 0 0 16px;
  color: #303039;
  font: 18px/1.8 "Work Sans", Arial, sans-serif;
}
.page-content-card p:last-child { margin-bottom: 0; }
.page-content-card a { color: #4c3ba2; }
@media (max-width: 760px) {
  .page-content-card { padding: 22px 18px; }
  .page-content-card h3 { font-size: 21px; }
}

/* Comfortable reading widths and control sizing on small screens. */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-main, main { padding-left: 16px; padding-right: 16px; }
  .site-main h2, .page-title { font-size: 28px; line-height: 1.3; }
  .page-content-card p { font-size: 17px; line-height: 1.8; }
  button, input, select, textarea { font-size: 16px; }
}


/* Readability pass: About, News, and Reviews */
.news-description, .review-description {
  color: #17151c;
  font: 400 18px/1.75 "Work Sans", Arial, sans-serif;
  letter-spacing: 0;
}
.news-title, .review-title {
  font: 700 23px/1.4 "Lora", Georgia, serif;
  letter-spacing: 0;
}
.news-date, .review-date {
  color: #292631;
  font: 500 15px/1.5 "Work Sans", Arial, sans-serif;
}
.news-source-badge, .review-badge {
  font: 600 14px/1.4 "Work Sans", Arial, sans-serif;
}
.news-story-link a, .review-story-link a {
  font: 700 16px/1.5 "Work Sans", Arial, sans-serif;
  text-underline-offset: 3px;
}
.news-filter-label, .review-filter-label {
  color: #17151c;
  font: 700 16px/1.5 "Work Sans", Arial, sans-serif;
}
.news-source-option, .review-source-option {
  color: #17151c;
  font: 500 16px/1.6 "Work Sans", Arial, sans-serif;
  padding: 10px 14px;
}
.news-date-separator, .review-date-separator {
  color: #292631;
  font: 700 14px/1.5 "Work Sans", Arial, sans-serif;
}
@media (max-width: 700px) {
  .news-card, .review-card { padding: 16px; }
  .news-description, .review-description { font-size: 17px; line-height: 1.75; }
  .news-title, .review-title { font-size: 21px; }
}
