/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


body {
  margin: 0;
  font-family: 'Shantell Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #79391F;
}

/* top-level bar */
.nav-bar {
  height: 50px;
  /* remove big internal horizontal padding so centering works reliably */
  padding: 0;
  box-sizing: border-box;
  display: block;

  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;

}

/* the actual nav row that gets centered on the page */
.nav-bar nav {
  display: flex;
  justify-content: space-between; /* center nav items horizontally */
  align-items: center;     /* center vertically inside .nav-bar */
  gap: 50px;               /* spacing between links */
  max-width: 1200px;       /* keeps items from stretching too wide */
  margin: 0 auto;          /* center the max-width container in the viewport */
  padding: 0 30px;         /* inner padding without breaking centering */
  height: 100%;
}

/* group of links (if you use .nav-bar-right) */
.nav-bar-right {
  display: flex;
  gap: 50px;
  align-items: center;
}

.nav-bar-right a:hover {
  text-decoration: underline;
  scale: 1.05;
  transition: all 0.2s ease-in-out;
}

.nav-bar-right a,
.nav-bar nav a {
  text-decoration: none;
  color: inherit;
  font-size: 20px;
  font-weight: 500;
}

.cover-section {
  position: relative;
  overflow: hidden;
  height: 95vh;
}

.cover-section img {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(1.5px);
}

/* overlay centered content */
.cover-section .cover-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  padding: 1rem 2rem;
  width: min(1000px, calc(100% - 4rem));
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
  pointer-events: none; /* allows clicks through to underlying links if any */
}

.cover-section h1 {
  margin: 0 0 .5rem;
  font-size: 3.5rem;
  line-height: 1.15;
}

.cover-section p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.main-section {
  box-sizing: border-box;
  max-width: 900px;
  width: 100%;
  margin: 3rem auto;
}

.about p {
  font-size: 1.25rem;
  line-height: 1.6;
}

.about-deco {
  color: #185a0f;
}

.about-deco-red {
  color: red;
  font-weight: 600;
}

.dish-content {
  display: flex;
  
}
.dish h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dish p {
  font-size: 1.25rem;
  margin-top: 0px;
  
}

.dish img {
  width: 250px;
  margin-right: 20px;
  border-radius: 10px;
}

.dish a {
  font-size: 1.15rem;
  text-decoration: none;
  color: #e94403;
}



/* LAAB HTML */
.laab-page-image {
  width: 500px;
  border-radius: 10px;
  float: left;
  margin-right: 15px;
}

.about-laab {
  font-size: 1.25rem;
  line-height: 1.6;
}

.about-laab p {
  margin-top: 0px;
}

.laab-description {
  margin-top: 30px;
}

/* Responsive helpers & fluid sizing */
:root{
  --max-content: 1100px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --nav-gap: clamp(12px, 3vw, 50px);
}

/* make images generally responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* container spacing (keeps side gap and centers) */
.main-section {
  max-width: var(--max-content);
  padding: 2rem var(--gutter);
  margin: 3rem auto;
  box-sizing: border-box;
}

/* Cover: responsive crop and smaller heights on small screens */
.cover-section {
  position: relative;
  overflow: hidden;
  height: clamp(35vh, 55vh, 95vh);
}
.cover-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: none; /* remove or keep blur as needed */
}

/* center overlay content with responsive font sizes */
.cover-section .cover-content {
  width: min(1000px, calc(100% - 2 * var(--gutter)));
  padding: 1rem;
}
.cover-section h1{
  font-size: clamp(1.8rem, 5vw, 3.5rem);
}
.cover-section p{
  font-size: clamp(1rem, 2.1vw, 1.5rem);
}

/* Nav responsiveness: reduce gap and wrap links on small screens without changing design */
.nav-bar nav {
  gap: var(--nav-gap);
  flex-wrap: wrap;
  justify-content: center; /* ensure items remain centered when they wrap */
}

/* make nav smaller and tighter on narrow viewports */
@media (max-width: 900px) {
  .nav-bar nav {
    gap: 1rem;
    padding: 0 1rem;
  }
  .nav-bar-right a,
  .nav-bar nav a {
    font-size: 18px;
  }
}

/* Dish content: allow wrapping and spacing */
.dish-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}
/* give the text column flexible width and images a reasonable limit */
.dish img {
  width: clamp(160px, 28%, 300px);
  flex: 0 0 auto;
  border-radius: 10px;
  margin-right: 0;
}

/* LAAB — float fallback + clear on small screens */
.laab-page-image {
  float: left;
  width: clamp(180px, 40%, 500px);
  margin-right: 18px;
  margin-bottom: 12px;
}
.about-laab::after { /* clearfix */
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 700px) {
  .laab-page-image {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  .about-laab {
    padding: 0 0.5rem;
  }
}

/* Timeline / lists: keep left aligned and responsive padding */
.timeline {
  padding: 2rem var(--gutter);
  text-align: left;
}
.timeline ul {
  padding-left: clamp(20px, 8vw, 95px);
  margin: 0.5rem 0 0;
}

/* Footer: ensure full-bleed but content keeps side padding */
.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2.25rem var(--gutter) 1rem;
  box-sizing: border-box;
}

/* small screen tweaks */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .cover-section .cover-content { top: 48%; padding: .75rem 1rem; }
  .nav-bar nav { gap: 0.75rem; }
  .dish img { width: 100%; max-width: 320px; }
  .main-section { margin: 1.25rem auto; padding: 1rem; }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

