/* ---- Sarabun ------------------------------------------------------------
   Declared as ONE family with real weight/style variants, so <strong> and
   <em> select the drawn Bold and Italic files instead of the browser
   synthetically slanting/emboldening the regular face. The previous rules
   registered SarabunRegular, SarabunBold and SarabunItalic as three separate
   families, all at weight 400, and nothing referenced them.

   Paths are absolute because this stylesheet serves pages at several depths
   (/admin/... among them), where a relative fonts/ path resolves against the
   page and 404s. Browsers fetch only the variants a page actually renders. */

@font-face {
  font-family: 'Sarabun';
  src: url('/fonts/Sarabun-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/fonts/Sarabun-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/fonts/Sarabun-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/fonts/Sarabun-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/fonts/Sarabun-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Bootstrap drives its own components from this variable, so setting it
   carries Sarabun through the page rather than only <body>. */
:root {
  --bs-body-font-family: 'Sarabun', system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--bs-body-font-family);
}

ul#index{

    padding-left: 0;
    list-style-type: none; 
}

.masthead {
	width: 100%;
 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
   min-height: 200px;
  background-image: url("https://fleetingambience.com/images/fleetingambience.jpg");
  /*background-size: cover;*/
  background-position: center;
  background-repeat: no-repeat;
    -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        
         -webkit-text-stroke: 1.5px white;
         
         
         
       
}

h1 {

    color: #978a9b !important; 
    margin-top: 40%; 

}

.lead {

    color: #978a9b !important; 
}


/* ---- Site navigation, mirrored from ikhider.com -------------------------
   Background sampled from the masthead image (fleetingambience.jpg) so the bar sits with
   the photograph rather than against it. White nav text on this gives a
   7.3:1 contrast ratio. */

.topnav {
  background-color: #5b535d;
  /* flow-root contains the floated links the way overflow:hidden did, but
     without clipping the Blog(s) dropdown where it extends past the bar. */
  display: flow-root;
  padding: 20px;
}

.topnav a {
  float: left;
  display: block;
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Colour stated separately so generic a:link / a:visited rules elsewhere
   cannot recolour the nav, while layout stays at .topnav a specificity. */
.topnav a:link,
.topnav a:visited {
  color: #fff;
}

.topnav a:hover {
  background-color: #fff;
  color: #000;
}

.topnav a.active {
  background-color: #000;
  color: #fff;
}

.topnav .icon {
  display: none;
}

.topnav .dropdown {
  float: left;
  /* positioned so the panel below anchors to this button */
  position: relative;
}

.topnav .dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: #fff;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

.topnav .dropdown:hover .dropbtn {
  background-color: #fff;
  color: #000;
}

.topnav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.topnav .dropdown-content a,
.topnav .dropdown-content a:link,
.topnav .dropdown-content a:visited {
  float: none;
  color: #000;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav .dropdown-content a:hover {
  background-color: #000;
  color: #fff;
}

.topnav .dropdown:hover .dropdown-content {
  display: block;
}

@media screen and (max-width: 600px) {
  /* Collapse to the menu icon. The dropdown is a div, so it needs hiding
     explicitly - a:not(:first-child) alone would leave it on screen. */
  .topnav a:not(:first-child),
  .topnav .dropdown {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .topnav.responsive .dropdown {
    display: block;
    float: none;
  }

  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

  /* .topnav.responsive is positioned, which would otherwise clip this. */
  .topnav.responsive .dropdown-content {
    position: static;
  }
}

/* ---- Hero -----------------------------------------------------------------
   Nav and masthead now share a single viewport, so the scroll cue pinned to
   the bottom of the masthead sits above the fold. Previously the masthead was
   its own 100vh sitting below a ~94px nav, which put its bottom edge - and
   anything anchored to it - 94px off screen. */

.hero-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.masthead {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  /* the scroll cue below is absolute and anchors to this */
  position: relative;
}

/* Scroll cue: the hero fills the screen, so nothing below it is visible on
   load. This hints there is more, and doubles as a jump link to the posts. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 96px;
  height: 96px;
  line-height: 96px;
  text-align: center;
  font-size: 56px;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  /* The X offset has to be repeated in every keyframe below, or the cue
     snaps to the left edge as soon as the animation takes over transform. */
  transform: translateX(-50%);
  animation: scroll-cue-bounce 2.2s ease-in-out infinite;
}

.scroll-cue:link,
.scroll-cue:visited {
  color: #fff;
}

.scroll-cue:hover,
.scroll-cue:focus {
  color: #fff;
  opacity: 0.7;
}

@keyframes scroll-cue-bounce {
  0%,
  25%,
  55%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-11px);
  }
  48% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Respect a reduced-motion preference: keep the cue, drop the bounce. */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---- Brand palette --------------------------------------------------------
   --fa-brand is the nav bar, the average colour of the masthead photograph.
   The photograph's actual chroma is dusk periwinkle (~230deg) and rose
   (~350deg); the nav reads as their desaturated average. --fa-link is that
   same family carried to enough chroma and depth to read as a link rather
   than as body text. Contrast on white: link 6.8:1, hover 9.9:1, meta 5.4:1,
   all clearing WCAG AA. */

:root {
  --fa-brand: #5b535d;
  --fa-link: #63527a;
  --fa-link-hover: #4a3c5c;
  --fa-meta: #6f6874;
  --fa-rule: rgba(91, 83, 93, 0.22);
  --fa-tint: rgba(99, 82, 122, 0.08);
}

/* ---- Links ----------------------------------------------------------------
   Bootstrap's default is #0d6efd, which had nothing to do with this site. */

a,
a:link,
a:visited {
  color: var(--fa-link);
}

a:hover,
a:focus {
  color: var(--fa-link-hover);
}

/* The nav and the scroll cue set their own colours and must not inherit these. */
.topnav a,
.topnav a:link,
.topnav a:visited,
.scroll-cue,
.scroll-cue:link,
.scroll-cue:visited,
.site-footer a {
  color: #fff;
}

.topnav .dropdown-content a,
.topnav .dropdown-content a:link,
.topnav .dropdown-content a:visited {
  color: #000;
}

/* ---- Entries --------------------------------------------------------------
   Real spacing and a hairline rule between posts, replacing the <br><br><br>
   that used to separate them. */

ul#index > li {
  margin: 0 0 4.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--fa-rule);
}

ul#index > li:last-child {
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.entry-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.entry-title a,
.entry-title a:link,
.entry-title a:visited {
  color: var(--fa-link);
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
  color: var(--fa-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Date and categories --------------------------------------------------
   One quiet meta row: the date, then the categories as tags. Previously this
   was the literal word "Categories:" above a bulleted list inside a <p>. */

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.5rem;
  font-size: 0.86rem;
  color: var(--fa-meta);
}

.entry-meta time {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-tags li {
  padding: 0.15rem 0.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--fa-link);
  background-color: var(--fa-tint);
  border: 1px solid var(--fa-rule);
  border-radius: 999px;
}

.entry-body {
  line-height: 1.65;
}

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

.entry-body p {
  margin-bottom: 1.1em;
}

/* ---- Pagination -----------------------------------------------------------
   Bootstrap's page links default to its blue; bring them into the palette. */

.pagination .page-link {
  color: var(--fa-link);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  color: var(--fa-link-hover);
  background-color: var(--fa-tint);
  border-color: var(--fa-rule);
}

/* ---- Footer ---------------------------------------------------------------
   Mirrors ikhider.com's social bar, in the nav colour so the page closes on
   the same note it opens with. */

.site-footer {
  margin-top: 3rem;
  padding: 22px 14px;
  width: 100%;
  background-color: var(--fa-brand);
  color: #fff;
  text-align: center;
}

.site-footer .social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.site-footer .social img {
  width: 30px;
  height: 30px;
  display: block;
  /* The source SVGs are dark - they sit on white over on ikhider.com. On this
     brand-coloured bar they need to be white, like the nav text. */
  filter: brightness(0) invert(1);
}

.site-footer .social a {
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.site-footer .social a:hover,
.site-footer .social a:focus {
  opacity: 1;
  transform: translateY(-2px);
}

/* Breathing room between the hero and the first post, which was sitting
   hard against the bottom of the masthead. */
.container > main {
  display: block;
  padding-top: 3.25rem;
}

/* Hover states, re-asserted AFTER the white/black guards above.
   :link, :visited and :hover all carry the same specificity, so whichever is
   declared last wins. The guards were landing later and repainting the hover
   text to match its own background - white on white in the bar, black on
   black in the dropdown - making the label vanish under the cursor. */

.topnav a:hover,
.topnav a:focus {
  color: #000;
  background-color: #fff;
}

.topnav .dropdown-content a:hover,
.topnav .dropdown-content a:focus {
  color: #fff;
  background-color: #000;
}

/* ---- Contact form ---------------------------------------------------------
   Same card language as the entries, in the brand palette. */

.contact-card {
  max-width: 620px;
  margin: 0 auto 3rem;
}

.contact-title {
  margin: 0 0 0.4rem;
  color: var(--fa-link);
}

.contact-intro {
  margin: 0 0 1.75rem;
  color: var(--fa-meta);
  line-height: 1.6;
}

.contact-form .field {
  margin-bottom: 1.15rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fa-meta);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: #222;
  background-color: #fff;
  border: 1px solid var(--fa-rule);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fa-link);
  box-shadow: 0 0 0 0.18rem var(--fa-tint);
}

.contact-send {
  padding: 0.7rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--fa-link);
  border: 1px solid var(--fa-link);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.contact-send:hover,
.contact-send:focus {
  background-color: var(--fa-link-hover);
  border-color: var(--fa-link-hover);
}

.contact-send[disabled] {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--fa-rule);
  background-color: var(--fa-tint);
  color: var(--fa-link);
}

.form-status.is-success {
  color: #1d5b32;
  background-color: rgba(29, 91, 50, 0.08);
  border-color: rgba(29, 91, 50, 0.3);
}

.form-status.is-error {
  color: #8a2b2b;
  background-color: rgba(138, 43, 43, 0.07);
  border-color: rgba(138, 43, 43, 0.3);
}

/* ---- Hero text placement --------------------------------------------------
   The base styles carry `h1 { margin-top: 40% }`. A percentage margin resolves
   against the container's WIDTH, so on a wide or short viewport - tablets in
   landscape especially - that pushed the title hundreds of pixels down, into
   the scroll cue pinned at the bottom. Centre the hero text the way Strange
   Ambience does instead, and keep a gap the cue can live in. */

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 7rem;
  box-sizing: border-box;
}

.masthead h1 {
  margin-top: 0;
}

.masthead .lead {
  margin-bottom: 0;
}

/* ---- Tag links, search, page headings ------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The pill itself is now the link. */
.entry-tags li a,
.entry-tags li a:link,
.entry-tags li a:visited {
  color: var(--fa-link);
  text-decoration: none;
}

.entry-tags li:hover,
.entry-tags li:focus-within {
  background-color: var(--fa-link);
  border-color: var(--fa-link);
}

.entry-tags li:hover a,
.entry-tags li:focus-within a {
  color: #fff;
}

.page-heading {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  color: var(--fa-link);
}

.result-summary {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--fa-meta);
}

/* Search box on its own page */
.search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
}

.search-form input[type="search"] {
  flex: 1 1 260px;
  max-width: 420px;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--fa-rule);
  border-radius: 6px;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--fa-link);
  box-shadow: 0 0 0 0.18rem var(--fa-tint);
}

.search-form button {
  padding: 0.55rem 1.2rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background-color: var(--fa-link);
  border: 1px solid var(--fa-link);
  border-radius: 6px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: var(--fa-link-hover);
  border-color: var(--fa-link-hover);
}

/* Search box in the nav bar */
.topnav .nav-search {
  float: right;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 10px 16px;
}

.topnav .nav-search input[type="search"] {
  width: 150px;
  padding: 0.35rem 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.topnav .nav-search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.topnav .nav-search input[type="search"]:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.topnav .nav-search button {
  padding: 0.35rem 0.6rem;
  color: #fff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
}

.topnav .nav-search button:hover {
  color: #000;
  background-color: #fff;
}

@media screen and (max-width: 600px) {
  /* Collapsed nav: hide the box until the menu is opened, like the links. */
  .topnav .nav-search {
    display: none;
  }

  .topnav.responsive .nav-search {
    display: flex;
    float: none;
    padding: 10px 16px 16px;
  }

  .topnav.responsive .nav-search input[type="search"] {
    flex: 1 1 auto;
    width: auto;
  }
}

/* ---- Compact hero for results pages ---------------------------------------
   Search and category pages carry a short masthead so the results are visible
   without scrolling past a full-viewport image. */

.hero-wrap--compact {
  height: auto;
}

.hero-wrap--compact .masthead {
  min-height: 34vh;
  padding: 2.5rem 1rem;
}

.hero-wrap--compact .masthead h1 {
  font-size: 2rem;
}

/* ---- Post content spacing -------------------------------------------------
   Posts mix standalone lightbox images, Bootstrap .row galleries and text
   wrapped in <article>, with nothing separating them. Space the top-level
   blocks apart, and give gallery rows a gap so the photographs stop butting
   into each other and into the prose. */

.entry-body > * {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.entry-body > *:first-child {
  margin-top: 0;
}

.entry-body > *:last-child {
  margin-bottom: 0;
}

.entry-body article {
  display: block;
}

.entry-body p {
  margin: 0 0 1.45em;
  line-height: 1.7;
}

.entry-body p:last-child {
  margin-bottom: 0;
}

.entry-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Gallery rows: vertical gap between wrapped columns, and a little air under
   each image so stacked rows never touch. */
.entry-body .row {
  row-gap: 1.5rem;
}

.entry-body .row > a {
  display: block;
  margin-bottom: 0.5rem;
}

/* Categories now close each entry rather than heading it, so they need their
   own separation from the content above. */
.entry-tags--footer {
  margin-top: 1.75rem;
}
